From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [PATCH] Compiling multiple times the LaTeX output Date: Wed, 06 Oct 2010 10:21:31 +0200 Message-ID: <87k4lvbuk4.fsf@mundaneum.com> References: <87zkv0pqyi.fsf@mundaneum.com> <87r5gcshnf.fsf@noorul.maa.corp.collab.net> <874od7uzsa.fsf_-_@mundaneum.com> <30671.1285861145@gamaville.dokosmarshall.org> <87vd5njhm8.fsf@mundaneum.com> <87lj6h1ukw.fsf@mundaneum.com> <87sk0kyfgw.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Carsten, Carsten Dominik wrote: > I have just pushed a fix which will use texi2dvi when available. The echo > area will now also give an indication of the kinds of errors that happened > during the final pdflatex run. Thanks to Matthew for the info about texi2dvi! > This is a big improvement, thanks to Sebastian for kicking off this > discussion, and to all who contributed. You're welcome. It was needed for me as well... > Please test the new processing and let me know if there are problems. Tested on the document for which I experienced the troubles in the first pl= ace (because my TOC was more than one page long). Works perfect! Only one comment, after reading your code in org-latex.el: if there is no texi2dvi executable, please run pdflatex 3 times, as this is the right numb= er to get the TOC in sync' with the document, when it's more than one page long (at least, in my above case, with a couple of org-babel sql source blocks). --8<---------------cut here---------------start------------->8--- Changes in HEAD Modified lisp/org-latex.el diff --git a/lisp/org-latex.el b/lisp/org-latex.el index c87071c..74d27b5 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -459,6 +459,7 @@ allowed. The default we use here encompasses both." (if (executable-find "texi2dvi") '("texi2dvi -p -b -c -V %f") '("pdflatex -interaction nonstopmode -output-directory %o %f" + "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f")) "Commands to process a LaTeX file to a PDF file. This is a list of strings, each of them will be given to the shell --8<---------------cut here---------------end--------------->8--- Thanks. Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode