From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: How to use texi2dvi for export to LaTeX? Date: Thu, 16 Aug 2012 22:15:59 +0200 Message-ID: <87vcgiioe8.fsf@Rainer.invalid> References: <87vcgi62rs.fsf@sklar.v.cablecom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T26UU-0003ee-O1 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 16:16:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T26UT-0006zV-Fb for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 16:16:26 -0400 Received: from plane.gmane.org ([80.91.229.3]:37622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T26UT-0006zM-8a for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 16:16:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T26UQ-0006R2-NM for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 22:16:22 +0200 Received: from pd9eb47de.dip.t-dialin.net ([217.235.71.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 22:16:22 +0200 Received: from Stromeko by pd9eb47de.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 22:16:22 +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 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