From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [PATCH][ox-latex] support for latexmk Date: Fri, 21 Jun 2013 18:10:12 +0200 Message-ID: <87y5a3v40r.fsf@pank.eu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq3v5-0007JB-Oy for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:10:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq3v4-0004FK-MZ for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:10:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:52375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq3v4-0004FF-FU for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:10:38 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uq3uu-0001WG-BC for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 18:10:28 +0200 Received: from business-213-023-238-209.static.arcor-ip.net ([213.23.238.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 18:10:28 +0200 Received: from rasmus by business-213-023-238-209.static.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 18:10:28 +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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This patch allows latexmk as an option to `org-latex-pdf-process'. I've added the -g option, as I sometimes have experienced that latexmk otherwise doesn't run often enough. –Rasmus -- May contains speling mistake --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Let-latexmk-be-an-option-to-org-latex-pdf-process.patch >From e03411adaf5c45dfb60d84016f77e75739f9c642 Mon Sep 17 00:00:00 2001 From: rasmus Date: Fri, 21 Jun 2013 17:57:32 +0200 Subject: [PATCH] Let =`latexmk'= be an option to =`org-latex-pdf-process'=. * ox-latex.el (org-latex-pdf-process): let =`latexmk'= be a preconfigured choice and change the wording of the docstring. TINYCHANGE --- lisp/ox-latex.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 9172cd7..25b80fb 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -784,8 +784,12 @@ the infamous egrep/locale bug: http://lists.gnu.org/archive/html/bug-texinfo/2010-03/msg00031.html -then `texi2dvi' is the superior choice. Org does offer it as one -of the customize options. +then `texi2dvi' is the superior choice as it automates the LaTeX +build process by calling the \"correct\" combinations of +auxiliary programs. Org does offer `texi2dvi' as one of the +customize options. Alternatively, `rubber' and `latexmk' also +provide similar functionality. The latter supports `biber' out +of the box. Alternatively, this may be a Lisp function that does the processing, so you could use this to apply the machinery of @@ -823,6 +827,8 @@ file name as its single argument." ("texi2dvi -p -b -c -V %f")) (const :tag "rubber" ("rubber -d --into %o %f")) + (const :tag "latexmk" + ("latexmk -g -pdf %f")) (function))) (defcustom org-latex-logfiles-extensions -- 1.8.3.1 --=-=-=--