* Change options of source code blocks "on-the-fly" for the later Latex export?
@ 2011-11-08 16:09 Torsten Wagner
0 siblings, 0 replies; only message in thread
From: Torsten Wagner @ 2011-11-08 16:09 UTC (permalink / raw
To: Org Mode Mailing List
Hi,
I just trying minted and source code blocks do get nice formatted
fontified output in LaTeX export
#+source: test
#+begin_src c :exports code
/*
Test
*/
int x = 10;
#+end_src
works fine. However, sometimes I would like to use different starting
numbers for the line-numbers. The minted package supports this by an
LaTeX-Environment option
e.g., \begin{minted}[firstnumber = 5]
How can I get firstnumber = 5 from org-mode into LaTeX. Since I would
have to change this several times within a file I would prefer an
rather easy method (rather then redefining the standard export
settings via org-export-latex-minted-options over and over again).
Other environments have access to certain options available via
#+ATTR_LaTeX: but this seems not to work for source code. I could use
plain LaTeX instead but would loose the ability to work and execute
the source code blocks.
Maybe its very easy to do, however, its rather late in this part of
the world and I can't see any solution at the moment.
Thanks a lot
Torsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-08 16:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 16:09 Change options of source code blocks "on-the-fly" for the later Latex export? Torsten Wagner
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.