Compiling multiple times the LaTeX output
commit3d13b8e687e5f50c6bb7974bf19f3654f414e47a
authorSébastien Vauban <wxhgmqzgwmuf@spammotel.com>
Wed, 6 Oct 2010 13:21:31 +0000 (6 13:21 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 8 Oct 2010 10:31:19 +0000 (8 12:31 +0200)
tree38faaf29563526535c6801db33060fd45c2b9155
parent4a8b676d285853a567b201aaf249a6ef4ccdb227
Compiling multiple times the LaTeX output

* lisp/org-latex.el (org-latex-to-pdf-process): Add a third pdflatex run.

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 place
(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 number
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

--8<---------------cut here---------------end--------------->8---

Thanks.

Best regards,
  Seb
lisp/org-latex.el