From: Richard Stanton <stanton@haas.berkeley.edu>
To: Puneeth Chaganti <punchagan@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Blank equation when exported to HTML using dvipng
Date: Sun, 27 May 2012 23:00:17 -0700 [thread overview]
Message-ID: <40C7B1BFC291ED4E9D10436D07736A334704954805@EXMAIL7.haas.uc.berkeley.edu> (raw)
In-Reply-To: <CALnw1fQHCHqH5JBdqbTTwvRq9AR8dL2OHPwbpwug1J4iuBW6=A@mail.gmail.com>
> From: Puneeth Chaganti [mailto:punchagan@gmail.com]
> Sent: Sunday, May 27, 2012 10:48 PM
> To: Richard Stanton
> Subject: Re: [O] Blank equation when exported to HTML using dvipng
>
> On Mon, May 28, 2012 at 11:13 AM, Richard Stanton
> <stanton@haas.berkeley.edu> wrote:
> > Here's a very simple ORG file:
> >
> > --------
> >
> > #+OPTIONS: LaTeX:dvipng
> >
> > * Test file
> > \begin{equation}
> > x=\sqrt{b}
> > \end{equation}
> >
> > ----------
> >
> > When I export this to HTML (Org-mode version 7.8.11 (release_7.8.11-12-
> gc55405 @ c:/emacs/site-lisp/org-mode/lisp/)), the equation comes out
> blank.
> >
> > The HTML file contains the following code:
> >
> > <img src="ltxpng/test_660c6efb146974e9d77e2de45f258385867ef389.png"
> > alt="\begin{equation} x=\sqrt{b} \end{equation}"/>
> >
> > However, directory ltxpng is empty.
> >
> > I'm running Emacs 24.0.97 under Windows Vista with MikTeX 2.09 installed
> and PATH set so that I can call pdflatex, dvipng, etc. from the command line
> just fine.
> >
> > Any thoughts about what might be going wrong?
>
> Do you get any error messages? Do you have dvipng installed?
>
> --
> Puneeth
The *Messages* buffer shows the following:
Exporting...
Loading reftex...done
Creating LaTeX image 1
Failed to create dvi file from c:/Users/stanton/AppData/Local/Temp/orgtex5660EuC.tex
Exporting...
image ltxpng/test_660c6efb146974e9d77e2de45f258385867ef389.png t
Saving file c:/projects/texintro/web/test.html...
Wrote c:/projects/texintro/web/test.html
HTML export done, pushed to kill ring and clipboard
Investigating further, the log file associated with the tex file listed above shows the following:
Package ifplatform Warning:
shell escape is disabled, so I can only detect \ifwindows.
)
\minted@bgbox=\box31
\minted@code=\write4
\@float@every@listing=\toks22
\c@listing=\count106
)
! Package minted Error: You must invoke LaTeX with the -shell-escape flag.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.7 \usepackage
[latin1]{inputenc}
?
! Emergency stop.
...
l.7 \usepackage
[latin1]{inputenc}
Pass the -shell-escape flag to LaTeX. Refer to the minted.sty documentation for
more information.
So now I can see what the problem is, but how do I tell org-mode to call latex with the -shell-escape flag?
next prev parent reply other threads:[~2012-05-28 6:01 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 [this message]
2012-05-28 14:08 ` Nick Dokos
2012-05-28 20:52 ` Richard Stanton
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40C7B1BFC291ED4E9D10436D07736A334704954805@EXMAIL7.haas.uc.berkeley.edu \
--to=stanton@haas.berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=punchagan@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).