From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: LaTeX exporter Date: Mon, 6 Oct 2014 21:49:57 +0200 Message-ID: References: <87y4st6lai.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b4187735e66070504c66473 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbEIV-0005T7-L9 for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 15:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbEIU-0001cc-CJ for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 15:50:19 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:47684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbEIU-0001cS-6y for emacs-orgmode@gnu.org; Mon, 06 Oct 2014 15:50:18 -0400 Received: by mail-ob0-f169.google.com with SMTP id m8so4579518obr.0 for ; Mon, 06 Oct 2014 12:50:17 -0700 (PDT) In-Reply-To: <87y4st6lai.fsf@nicolasgoaziou.fr> 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: Fabrice Popineau , "emacs-orgmode@gnu.org" --047d7b4187735e66070504c66473 Content-Type: text/plain; charset=UTF-8 Hi, Maybe I wasn't clear enough. I was thinking about an option specific of the latex exporter to expand the document class options : \documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass} default_option_i being taken from the org-latex-classes entry for the current class. Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe my suggestion is superfluous. Regards, 2014-10-06 21:38 GMT+02:00 Nicolas Goaziou : > Hello, > > Fabrice Popineau writes: > > > The org-latex-classes variable handles a couple of parameters like > > DEFAULT-PACKAGES, PACKAGES and EXTRA. > > > > I thing that this variable could also benefit from an EXTRA_OPTIONS > > parameter. > > This could allow to have a default set of options for the curent class, > but > > to locally > > add a couple of options you may not always want. > > > > What do you think ? > > The OPTIONS keyword hasn't much to do with latex classes. It is handled > at a very different level (i.e., "ox.el"). IMO, it would be confusing to > mix them. > > I think you want a couple of dedicated SETUPFILE keywords. > > > Regards, > > -- > Nicolas Goaziou > --047d7b4187735e66070504c66473 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Maybe I wasn't clear enou= gh.
I was thinking about an option specific of the latex exporter to ex= pand the document class options :

\documentclass[d= efault_option_1, default_option_2, EXTRA_OPTIONS]{myclass}

default_option_i being taken from the org-latex-classes entry for = the current class.

Actually, LATEX_CLASS_OPTIONS o= verrides the whole set of options, so maybe my suggestion is superfluous.

Regards,

=
2014-10-06 21:38 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
= Hello,

Fabrice Popineau <fabrice.= popineau@gmail.com> writes:

> The org-latex-classes variable handles a couple of parameters like
> DEFAULT-PACKAGES, PACKAGES and EXTRA.
>
> I thing that this variable could also benefit from an EXTRA_OPTIONS > parameter.
> This could allow to have a default set of options for the curent class= , but
> to locally
> add a couple of options you may not always want.
>
> What do you think ?

The OPTIONS keyword hasn't much to do with latex classes. I= t is handled
at a very different level (i.e., "ox.el"). IMO, it would be confu= sing to
mix them.

I think you want a couple of dedicated SETUPFILE keywords.


Regards,

--
Nicolas Goaziou

--047d7b4187735e66070504c66473--