From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Blank equation when exported to HTML using dvipng Date: Mon, 28 May 2012 10:08:20 -0400 Message-ID: <29726.1338214100@alphaville> References: <40C7B1BFC291ED4E9D10436D07736A334704954804@EXMAIL7.haas.uc.berkeley.edu> <40C7B1BFC291ED4E9D10436D07736A334704954805@EXMAIL7.haas.uc.berkeley.edu> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ0cW-0007qE-Iw for emacs-orgmode@gnu.org; Mon, 28 May 2012 10:08:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZ0cU-0004Bo-9c for emacs-orgmode@gnu.org; Mon, 28 May 2012 10:08:28 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:3801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ0cU-0004BK-58 for emacs-orgmode@gnu.org; Mon, 28 May 2012 10:08:26 -0400 In-Reply-To: Message from Richard Stanton of "Sun, 27 May 2012 23:00:17 PDT." <40C7B1BFC291ED4E9D10436D07736A334704954805@EXMAIL7.haas.uc.berkeley.edu> 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: Richard Stanton Cc: "emacs-orgmode@gnu.org" Richard Stanton wrote: > ... > > So now I can see what the problem is, but how do I tell org-mode to > call latex with the -shell-escape flag? > You can customize org-latex-to-pdf-process (or org-e-latex-pdf-process[fn:1] if you are using the new exporter). In my case, I have ,---- | org-latex-to-pdf-process is a variable defined in `org-latex.el'. | Its value is ("texi2dvi --pdf %f") | Original value was | ("pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f") `---- but texi2dvi probably does not exist on windows (and you still have to patch it even on linux). Just add --shell-escape after every pdflatex (or whatever command is invoked on windows). Nick Footnotes: [fn:1] NB: different spelling in the two cases - not only the added "e-" but also the missing "-to".