Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-13 Thread Olivier Schwander
Le 06 Oct 2010 21:39, Matthew Leifer a écrit: That is odd. texi2dvi should default to using regular latex. You usually have to pass a -p option or use the alias texi2pdf in order to use pdflatex. It might be that you have a LATEX environment variable set. In any case, you can alter this

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-06 Thread Sébastien Vauban
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,

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-06 Thread Bruno Tavernier
Just tried the texi2dvi command that is nice, one problem though, it only makes use of pdflatex. In certain situations, I like to use latex+ps2pdf (some journals ask for .eps image file) or xelatex when mixing several fonts and writing in UTF-8 is mandatory, for example French + Japanese,

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-06 Thread Matthew Leifer
That is odd. texi2dvi should default to using regular latex. You usually have to pass a -p option or use the alias texi2pdf in order to use pdflatex. It might be that you have a LATEX environment variable set. In any case, you can alter this behaviour by setting the LATEX environment variable,

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-06 Thread Scot Becker
How about introducing a #+LATEX_CMD: option in org-mode? (and default to pdflatex) Yes, please! I use xelatex almost exclusively since it has unicode support for non-latin scripts. And increasingly, some will presumably want to use LuaTeX, which I'm told is slated to replace pdflatex in the

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-06 Thread Bruno Tavernier
Hey Matthew, Thanks for the pointers. I toyed with it a bit but that wasn't very successful. That is odd. texi2dvi should default to using regular latex. You usually have to pass a -p option or use the alias texi2pdf in order to use pdflatex. It does default to latex, what I meant was that

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Sébastien Vauban
Hi Carsten, Carsten Dominik wrote: Thanks for the patch! I would certainly have a better way to process these files. Could you make your latest sentence more explicit? 1. Can we run bibtex only if we have an indication that it might be needed? Maybe by looking at the output of the first

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Matthew Leifer
Hi, I don't know if you are aware, but there is a utility called texi2dvi that figures out how many times LaTeX, bibtex, etc. need to be run and automatically runs them the correct number of times for you. It also has an option -p that uses pdflatex and generates pdf instead of dvi. In my

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Carsten Dominik
On Oct 5, 2010, at 2:46 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: Thanks for the patch! I would certainly have a better way to process these files. I would certainly *like very much to have your* better way to process it. Sorry about that confusing sentence...

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Indraneel Majumdar
texi2dvi is also on my minimal MikTex system, I'd certainly love a patch that uses it instead of a shell script (although I also have cygwin too).. On 2010-10-05 20:00, Matthew Leifer wrote: Hi, I don't know if you are aware, but there is a utility called texi2dvi that figures out how many

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Achim Gratz
Matthew Leifer mslei...@gmail.com writes: I don't know if you are aware, but there is a utility called texi2dvi that figures out how many times LaTeX, bibtex, etc. need to be run and automatically runs them the correct number of times for you. [...] You know, I've been using LaTeX for so long,

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Achim Gratz
Commit 59ba4125 lisp/org-latex.el raises warning during byte-compile: In org-export-as-pdf: org-latex.el:882:28:Warning: assignment to free variable `errors' org-latex.el:882:47:Warning: reference to free variable `errors' Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Carsten Dominik
On Oct 5, 2010, at 8:55 PM, Achim Gratz wrote: Commit 59ba4125 lisp/org-latex.el raises warning during byte-compile: In org-export-as-pdf: org-latex.el:882:28:Warning: assignment to free variable `errors' org-latex.el:882:47:Warning: reference to free variable `errors' Fixed, thanks. -

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-04 Thread Carsten Dominik
Hi Sebastian, Thanks for the patch! I would certainly have a better way to process these files. My questions: 1. Can we run bibtex only if we have an indication that it might be needed? Maybe by looking at the output of the first LaTeX run? Hmm, maybe this would not work if only the

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-04 Thread Scot Becker
As soon as I can, I'll give the patch a test using XeLaTeX as well. It'd be great to have this feature also be able to run xelatex instead of pdflatex to support that toolchain as well (for its better UTF-8 support and OpenType font integration). I expect this to be easy, because as far as I can

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-01 Thread Thomas S. Dye
On Sep 30, 2010, at 6:55 AM, Sébastien Vauban wrote: Hi Nick, Nick Dokos wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Noorul Islam K M wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I've been taught of a weird observation: the page number indicated in the TOC of

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-01 Thread Nick Dokos
Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Nick, Nick Dokos wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Noorul Islam K M wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I've been taught of a weird observation: the page number indicated in the

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-01 Thread Sébastien Vauban
Hi Nick and Thomas, Thomas S. Dye wrote: On Sep 30, 2010, at 6:55 AM, Sébastien Vauban wrote: Nick Dokos wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Noorul Islam K M wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I've been taught of a weird observation: the page

[Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-09-30 Thread Sébastien Vauban
Hi Nick, Nick Dokos wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Noorul Islam K M wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I've been taught of a weird observation: the page number indicated in the TOC of a PDFLaTeX output is wrong by one page... Quoting