Hi,

if you want to export e.g. config file snippets using src blocks,
you can

(add-to-list 'org-latex-listings-langs
             '(text " "))

in your configuration.


You have to take care to put a blank between the double quotes (" "
instead of "") or you can't run the export through (pdf)latex.


The reason is, the function org-latex--make-option-string returns
"language" for empty double quotes, resulting in e.g.:

\lstset{language,numbers=none}


A blank between the double quotes causes org-latex--make-option-string
to return "language= " and results in a latex-compilable:

\lstset{language= ,numbers=none}


This is nice to know, when you're documenting configurations or
configuration files.

Best regards
Robert




Reply via email to