* Note/hint on latex export of listings w/ lstlistings
@ 2014-01-09 20:12 Robert Klein
0 siblings, 0 replies; only message in thread
From: Robert Klein @ 2014-01-09 20:12 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-09 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 20:12 Note/hint on latex export of listings w/ lstlistings Robert Klein
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.