emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Torsten Wagner <torsten.wagner@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Change options of source code blocks "on-the-fly" for the later Latex export?
Date: Wed, 9 Nov 2011 01:09:27 +0900	[thread overview]
Message-ID: <CAPaq-gMSGnzTx+=uAgGPzEEZ-R9vZiBRnA4Lov8zjinRvK30fQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2011-11-08 16:09 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPaq-gMSGnzTx+=uAgGPzEEZ-R9vZiBRnA4Lov8zjinRvK30fQ@mail.gmail.com' \
    --to=torsten.wagner@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).