From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Hofert Subject: How to use texi2dvi for export to LaTeX? Date: Thu, 16 Aug 2012 21:43:51 +0200 Message-ID: <87vcgi62rs.fsf@sklar.v.cablecom.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T25z1-0005zX-N5 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:43:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T25z0-0004tx-H1 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:43:55 -0400 Received: from edge20.ethz.ch ([82.130.99.26]:18243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T25z0-0004tU-BH for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 15:43:54 -0400 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 org-mode Hi, 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 2) put this in ~/.profile: PDFLATEX="pdflatex --shell-escape" export PDFLATEX texi2dvi is installed on my system (Ubuntu 12.04; Emacs 24; MacBook Air 4,1) and works. However, if I export an org-mode file via 'C-c C-e p' to LaTeX, I obtain an error. *Messages* shows: ,---- | call-interactively: Wrong type argument: listp, "texi2dvi -p %f" `---- Why? Something I'm wondering: Doesn't %f stand for the base file name with ending .ps? Shouldn't it be texi2dvi -p %t? Trying this led to the same error, though. Cheers, Marius