From: Richard Stanton <stanton@haas.berkeley.edu>
To: "nicholas.dokos@hp.com" <nicholas.dokos@hp.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Blank equation when exported to HTML using dvipng
Date: Mon, 28 May 2012 13:52:23 -0700 [thread overview]
Message-ID: <40C7B1BFC291ED4E9D10436D07736A334704954834@EXMAIL7.haas.uc.berkeley.edu> (raw)
In-Reply-To: <29726.1338214100@alphaville>
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.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
>
> Richard Stanton <stanton@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".
next prev parent reply other threads:[~2012-05-28 20:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 5:43 Blank equation when exported to HTML using dvipng Richard Stanton
[not found] ` <CALnw1fQHCHqH5JBdqbTTwvRq9AR8dL2OHPwbpwug1J4iuBW6=A@mail.gmail.com>
2012-05-28 6:00 ` Richard Stanton
2012-05-28 14:08 ` Nick Dokos
2012-05-28 20:52 ` Richard Stanton [this message]
2012-05-28 23:12 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40C7B1BFC291ED4E9D10436D07736A334704954834@EXMAIL7.haas.uc.berkeley.edu \
--to=stanton@haas.berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.