[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Override the default class name with a new one.
From: |
Feng Shu |
Subject: |
Re: [O] [PATCH] Override the default class name with a new one. |
Date: |
Fri, 14 Jun 2013 18:42:02 +0800 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.2 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Rasmus <address@hidden> writes:
>
>> Feng Shu <address@hidden> writes:
>>
>>> #+LATEX_CLASS: article
>>> #+LATEX_CLASS_NAME: ctexart
>>
>> I'm not sure this is the right approach. . . I can certainly see the
>> value of generating classes on the fly, though. But somehow the
>> proposed syntax just seems to counter-intuitive. I'm not sure how to
>> overcome this, but perhaps it would be better to allow for an argument
>> to LATEX_CLASS, e.g.
>>
>> (*) #+LATEX_CLASS: myclass :class-name ctexart.
>>
>
> That was what popped into my head as well - I didn't much care for the
> OP's approach. Now that I've thought about it some more, I'm not sure I
> like this one much better...
>
>> as e.g. the INCLUDE command. Of course (*) is somewhat different from
>> how stuff like this is usually handled, cf. e.g. LATEX_CLASS_OPTIONS.
>>
> ...but this sounds a bit more promising: maybe LATEX_CLASS_OPTIONS can
> be eliminated in favor of LATEX_CLASS with arguments:
>
> #+LATEX_CLASS: key :class-name foo :class-options a4paper,12pt
May be we should add this feature too:
#+LaTEX_CLASS: key :class-name foo :class-options+ twoside
#+LaTEX_CLASS: key :class-name foo :class-options- twoside
>
> where "key" selects from org-latex-classes (and is optional, default
> "article"), class-name is optional and defaults to key (or article if
> key is absent).
--
Re: [O] [PATCH] Override the default class name with a new one., Nicolas Goaziou, 2013/06/14