In my init.el, I have (setq org-latex-to-pdf-process '("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 calling latex, not pdflatex, so I don't think this option has an effect. > -----Original Message----- > From: nicholas.do...@hp.com [mailto:nicholas.do...@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 > > Richard Stanton <stan...@haas.berkeley.edu> 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".