From acd3962f4cdbe84b44b552ddb660f97d109beb2a Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 8 Sep 2018 13:16:20 +0200 Subject: [PATCH] [Org] Some default settings for the listings package --- site-lisp/db-org.el | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 9c668b0..d8e0825 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -889,8 +889,21 @@ This is done only if the value of this variable is not null." ,(concat "\\documentclass{scrartcl}\n" "[DEFAULT-PACKAGES]" "[PACKAGES]" - ;; XXX: this needs some additional - ;; settings for the listings package + " +\\lstset{ + basewidth=0.5em, + keywordstyle=\\bfseries, + basicstyle=\\sffamily, + mathescape=true, + texcl=true, + commentstyle={\\itshape}, + columns=fullflexible, + frame=tb, + showspaces=false, + showtabs=false, + showstringspaces=false, +} +" "[EXTRA]\n") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")