emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to use texi2dvi for export to LaTeX?


From: Achim Gratz
Subject: Re: [O] How to use texi2dvi for export to LaTeX?
Date: Thu, 16 Aug 2012 22:15:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Marius Hofert writes:
> I found http://orgmode.org/worg/org-dependencies.html and proceeded as 
> described
> there to set up texi2dvi for LaTeX export. I don't have the egrep bug 
> mentioned,
> so all I had to do was:
>
> 1) put this in ~/.emacs:
>    (setq org-latex-to-pdf-process "texi2dvi -p %f"); use texi2dvi; see
>    http://orgmode.org/worg/org-dependencies.html

This is missing a `'(…)´ around the string.  But you should rather use
customize to change that variable, which should be a list of strings
(just on in your case).  Org-latex needs to have been loaded before the
variable can be customized, however.

> 2) put this in ~/.profile:
>    PDFLATEX="pdflatex --shell-escape"
>    export PDFLATEX

You might not want to do this either.  The canonical way to set the
environment for a single command is to define it right there with the
invocation of the command.

 (setq org-latex-to-pdf-process "PDFLATEX=\"pdflatex --shell-escape\" texi2dvi 
-p %f")

Or if your system still had the locale bug even

 (setq org-latex-to-pdf-process "LC_ALL=C PDFLATEX=\"pdflatex --shell-escape\" 
texi2dvi -p %f")


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




reply via email to

[Prev in Thread] Current Thread [Next in Thread]