From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: adding options to the minted environment of exported source blocks in latex Date: Sun, 09 Feb 2014 11:16:05 +0100 Message-ID: References: <87lhxmzm78.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCRQt-0005kf-UE for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 05:16:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCRQm-00067F-IH for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 05:16:15 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:40112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCRQm-000678-BF for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 05:16:08 -0500 In-Reply-To: <87lhxmzm78.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 07 Feb 2014 21:45:15 +0100") 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: Nicolas Goaziou Cc: emacs-orgmode Hi Nicolas, Nicolas Goaziou 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