From: Robert Klein <roklein@roklein.de>
To: emacs-orgmode@gnu.org
Subject: Note/hint on latex export of listings w/ lstlistings
Date: Thu, 09 Jan 2014 21:12:48 +0100 [thread overview]
Message-ID: <52CF02C0.3040307@roklein.de> (raw)
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 other threads:[~2014-01-09 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52CF02C0.3040307@roklein.de \
--to=roklein@roklein.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.