Hi Nicolas, Nicolas Goaziou <n.goaz...@gmail.com> 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