From: Nick Dokos <nicholas.dokos@hp.com>
To: Ista Zahn <istazahn@gmail.com>
Cc: nicholas.dokos@hp.com, Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: Re: latex command for org-preview-latex-fragment
Date: Fri, 30 Dec 2011 11:37:36 -0500 [thread overview]
Message-ID: <15707.1325263056@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Ista Zahn <istazahn@gmail.com> of "Fri, 30 Dec 2011 10:24:07 EST." <1545147.q01IgFFdgX@arch-desktop>
Ista Zahn <istazahn@gmail.com> wrote:
> I'm having troubel getting org-preview-latex-fragment to work when using
> minted for exported code highlighting. Checking the log files in
> /tmp/orgtex<...>.log I find that tex fails with the error message "Package
> minted Error: You must invoke LaTeX with the -shell-escape flag". OK, that's
> helpful, except that I can't figure out where/how to change the tex command
> called by org-preview-latex-fragment. Is this configurable in org-mode
> settings? Or does it depend on some option in the auctex or preview packages?
>
You might have to do one more thing: if you are going through dvipng,
in org-create-formula-image, there is an explicit call to latex that
might be the one causing you problems. There is no way to deal with this
other than by modifying the function, so if that's indeed what causes your
problem, you should probably submit a bug report.
The call is around line 16927 in org.el and looks like this:
,----
| (condition-case nil
| (progn
| (cd tmpdir)
| (call-process "latex" nil nil nil texfile))
| (error nil))
`----
I think you'd need to modify it to say:
...
(call-process "latex" nil nil nil "-shell-escape" texfile))
...
instead.
Nick
prev parent reply other threads:[~2011-12-30 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-30 15:24 latex command for org-preview-latex-fragment Ista Zahn
2011-12-30 16:06 ` Nick Dokos
2011-12-30 16:37 ` Nick Dokos [this message]
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=15707.1325263056@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=Emacs-orgmode@gnu.org \
--cc=istazahn@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).