From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Change options of source code blocks "on-the-fly" for the later Latex export? Date: Wed, 9 Nov 2011 01:09:27 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNoEw-00043n-QF for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 11:09:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNoEr-0000hP-5s for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 11:09:34 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:53921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNoEr-0000hI-0j for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 11:09:29 -0500 Received: by gyg10 with SMTP id 10so859730gyg.0 for ; Tue, 08 Nov 2011 08:09:27 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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