From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=. Date: Wed, 03 Jul 2013 22:01:47 +0800 Message-ID: <87d2qzd9o4.fsf@gmail.com> References: <87k3l8q4vx.fsf@gmail.com> <20130702235111.GA26489@kuru.dyndns-at-home.com> <878v1o2mdr.fsf@gmail.com> <20130703083139.GB26489@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNd7-00089J-Nb for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 10:01:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuNd6-0008TA-5X for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 10:01:57 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:33814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNd5-0008T2-V1 for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 10:01:56 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz11so263912pad.2 for ; Wed, 03 Jul 2013 07:01:55 -0700 (PDT) Received: from smtp.gmail.com ([2001:c08:2600::713]) by mx.google.com with ESMTPSA id hu6sm25552129pbc.28.2013.07.03.07.01.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Jul 2013 07:01:53 -0700 (PDT) In-Reply-To: <20130703083139.GB26489@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Wed, 3 Jul 2013 10:31:39 +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: emacs-orgmode@gnu.org Suvayu Ali writes: > On Wed, Jul 03, 2013 at 02:22:40PM +0800, Feng Shu wrote: >> Suvayu Ali writes: >> >> > On Wed, Jul 03, 2013 at 07:09:35AM +0800, feng shu wrote: >> >> Customize `org-latex-pdf-process isn't very convenient. >> >> Is it possible add a feature like: #+LATEX_PDF_PROCESS: latexmk >> >> or add #OPTIONS: ;latex_pdf_process latexmk >> > >> > If you don't mind my chiming in, the standard way to customise Emacs >> > behaviour (across all modes, not just Org) is through >> > customize-variable. Org cannot keep on introducing new keywords just >> > because of convenience. >> >> I don't think so, Convenience is very important in most situation. we can >> introduce new keywords just for convenience! #+LATEX_CLASS is a good example, >> If we don't want convencience. we can just customize `org-latex-default-class > > There is a big difference between the two variables. Consider this: > org-latex-classes depends per document (most likely you wand different > documents for different things, hence maybe you also want different > classes), however you want to choose your LaTeX backend once (at most it > varies from project to project). But again, if you use one build system > for a project you are most likely using the same build system in other > projects too. The only difference I can see is when you have something > like make for projects, but simply LaTeX for a simple document/notes. > In that case, I would say Bastien's suggestion to use file local > variables is best suited. At one point I used something like this > headline at the end of few Org files: > > * COMMENT local setup :ARCHIVE: > > # Local Variables: > # org-latex-to-pdf-process: ("xelatex -interaction nonstopmode > -output-directory %o %f" "xelatex -interaction nonstopmode > -output-directory %o %f" "xelatex -interaction nonstopmode > -output-directory %o %f") > # End: Powerful Tips, I like! Maybe it should be include into org document. > > Hope this helps, --