From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [PATCH] Override the default class name with a new one. Date: Fri, 14 Jun 2013 18:42:02 +0800 Message-ID: <87li6dc6th.fsf@news.tumashu-localhost.org> References: <87hah2wn8y.fsf@news.tumashu-localhost.org> <8761xhftwi.fsf@news.tumashu-localhost.org> <87d2rp8370.fsf@pank.home> <87k3lxxbqe.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnRyi-0000wd-VR for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 07:15:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnRyb-0004tT-Vy for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 07:15:36 -0400 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:34005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnRyb-0004tE-Nk for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 07:15:29 -0400 Received: by mail-pb0-f43.google.com with SMTP id md12so475627pbc.2 for ; Fri, 14 Jun 2013 04:15:28 -0700 (PDT) Received: from tumashu ([110.97.80.149]) by mx.google.com with ESMTPSA id ib9sm1902065pbc.43.2013.06.14.04.15.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Jun 2013 04:15:27 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UnRSE-0006kt-JN for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 18:42:02 +0800 In-Reply-To: <87k3lxxbqe.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Fri, 14 Jun 2013 05:50:17 -0400") 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: emacs-orgmode@gnu.org Nick Dokos writes: > Rasmus writes: > >> Feng Shu 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). --