From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Blank equation when exported to HTML using dvipng Date: Mon, 28 May 2012 13:52:23 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A334704954834@EXMAIL7.haas.uc.berkeley.edu> References: <40C7B1BFC291ED4E9D10436D07736A334704954804@EXMAIL7.haas.uc.berkeley.edu> <40C7B1BFC291ED4E9D10436D07736A334704954805@EXMAIL7.haas.uc.berkeley.edu> <29726.1338214100@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ6vo-0000ck-H3 for emacs-orgmode@gnu.org; Mon, 28 May 2012 16:52:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZ6vm-0001XD-BM for emacs-orgmode@gnu.org; Mon, 28 May 2012 16:52:48 -0400 Received: from gateway-a.haas.berkeley.edu ([128.32.222.29]:31582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ6vm-0001Wg-4u for emacs-orgmode@gnu.org; Mon, 28 May 2012 16:52:46 -0400 In-Reply-To: <29726.1338214100@alphaville> Content-Language: en-US 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: "nicholas.dokos@hp.com" Cc: "emacs-orgmode@gnu.org" In my init.el, I have (setq org-latex-to-pdf-process=20 '("pdflatex -shell-escape -interaction nonstopmode -output-directory = %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory = %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory = %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory = %o %f")) The problem is that when I export to HTML with the dvipng option, it's call= ing latex, not pdflatex, so I don't think this option has an effect. > -----Original Message----- > From: nicholas.dokos@hp.com [mailto:nicholas.dokos@hp.com] > Sent: Monday, May 28, 2012 7:08 AM > To: Richard Stanton > Cc: Puneeth Chaganti; emacs-orgmode@gnu.org > Subject: Re: [O] Blank equation when exported to HTML using dvipng >=20 > Richard Stanton wrote: >=20 > > ... > > > > So now I can see what the problem is, but how do I tell org-mode to > > call latex with the -shell-escape flag? > > >=20 > 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 >=20 > ,---- > | 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") > `---- >=20 > but texi2dvi probably does not exist on windows (and you still have to pa= tch > it even on linux). Just add --shell-escape after every pdflatex (or whate= ver > command is invoked on windows). >=20 > Nick >=20 > Footnotes: >=20 > [fn:1] NB: different spelling in the two cases - not only the added "e-" = but > also the missing "-to".