[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] adding options to the minted environment of exported source bloc
From: |
Alan Schmitt |
Subject: |
Re: [O] adding options to the minted environment of exported source blocks in latex |
Date: |
Sun, 09 Feb 2014 11:16:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
Hi Nicolas,
Nicolas Goaziou <address@hidden> writes:
> At the moment, there is no Org way to add arbitrary options to listings
> or minted on a per block basis.
>
> There are basically two ways to implement this. Either we add
> an :options keyword and stuff options there:
>
> #+attr_latex: :options a=b,c=d
> #+begin_src ...
>
> Another option is to turn options into keywords:
>
> #+attr_latex: :a b :c d
> #+begin_src ...
>
> The latter is more elegant, but it requires to know about every
> minted/listings options.
>
> It is also possible to do something in-between, i.e., tell Org about
> a few selected keywords and stuff the others into :options. This is what
> is done for images. Org knows about :height and :width and uses :options
> for everything else.
The latter would be great. The option I'm considering does not exist in
minted, I add it in my preamble.
Best,
Alan