From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Weylandt Subject: Re: PATCH -- allow user to set minted style Date: Fri, 4 Apr 2014 15:32:55 -0400 Message-ID: References: <130448E3-E9CF-4414-9447-8FEDE6C53224@gmail.com> <87d2gx7x14.fsf@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW9rY-0001SH-AO for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WW9rL-0000mS-LY for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:33:16 -0400 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:54144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW9rL-0000mJ-IN for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:33:03 -0400 Received: by mail-qa0-f50.google.com with SMTP id o15so3526710qap.37 for ; Fri, 04 Apr 2014 12:33:03 -0700 (PDT) In-Reply-To: <87d2gx7x14.fsf@gmail.com> 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@gnu.org" On Apr 4, 2014, at 14:46, Nicolas Goaziou wrote: > Hello, >=20 > Michael Weylandt writes: >=20 >> This requires a different mechanism than org-latex-minted-options >> since it's a global/preamble option. >=20 > Since it's a global/preamble option, you can include it in your header, > buffer wise, or with `org-latex-classes', or with > `org-latex-packages-alist'... Taking the choices in reverse: - The minted style isn't passed as a package option so I'm not sure how org-= latex-packages-alist helps. =20 - Yes, I have been putting it in the headers of my custom classes, but it ha= s to follow \usepackage{minted} or I get a LaTeX error, so I wind up loading= minted even when not using it. Having it as a variable also makes it easier= to change the style.=20 -I'm not sure what you mean by bufferwise -Yes, #+LATEX_HEADER_EXTRA works but there's still the problem of failing if= you don't use minted for that particular export. I think the right analogy if with hyperref/hypersetup, which does have suppo= rt of this style in Org.=20 Michael=