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 23:13:51 +0800 Message-ID: <87ehc4u3m8.fsf@news.tumashu-localhost.org> References: <87hah2wn8y.fsf@news.tumashu-localhost.org> <87k3lw24rv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnVio-0006cM-Nj for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 11:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnVin-0005l0-8r for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 11:15:26 -0400 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:41406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnVin-0005ko-2x for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 11:15:25 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so663989pbc.7 for ; Fri, 14 Jun 2013 08:15:24 -0700 (PDT) In-Reply-To: <87k3lw24rv.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 14 Jun 2013 15:36:20 +0200") 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: orgmode Nicolas Goaziou writes: > Hello, > > Feng Shu writes: > >> #+LATEX_CLASS: article >> >> %%output: >> >> \documentclass[11pt]{article} >> >> ... >> >> -------------------------------------- >> >> #+LATEX_CLASS: article >> #+LATEX_CLASS_NAME: ctexart >> >> %%output: >> >> \documentclass[11pt]{ctexart} >> >> .... > > Thanks for your patch. > > Though, it adds another keyword and another defcustom without providing > any new functionality. I understand it is a shortcut, but the cons, IMO, > outweigh the pros : adding a new class to `org-latex-classes' is a bit > more tedious, but needs to be done only once. > > Therefore, unless you convince me this feature brings something new, or > clearly eases a process, I'll stand on my ground. Not all the org-mode users are expert of lisp and not all of the org-mode users are well in English, so finding the variable `org-latex-classes can customize latex class and adding a lisp block to it may be not a easy things for many users. So I expect org-mode can properly export latex without any configure, but it is impossible for the complexity of tex system. So reusing exist `org-latex-classes items will become a valuable thing, it should be implement. My patch is not best way to implement and it can be deny, but the problem can't be ignore. 1. we can add a function `(defun org-latex-add-deriverd-class (class exist-class) ...) to menupulate `org-latex-classes 2. My patch's approach. 3. others. > > > Regards, --