emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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:06:17 -0500	[thread overview]
Message-ID: <14688.1325261177@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:

> Hello all,
> 
> 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?
> 

I remember flailing about to get everything to work with minted and I
now find out that I did not take notes of what worked :-( However,
looking at my customizations, I find that I have included -shell-escape
in two places:

o org-mode specific: org-latex-to-pdf-process - my setting is the
  default of calling pdflatex three times, so I added the -shell-escape
  option to each of the three elements in that list. If you are using
  texi2dvi, you'll have to do something different: not sure whether you
  can pass it as an option, or whether you will need to modify the script
  itself.

o auctex specific: TeX-expand-list - I customized an entry in that list to read

,----
|  ...
|  ("%(mode)"
|   (lambda nil
|     (if TeX-interactive-mode "" " --shell-escape -interaction=nonstopmode")))
|  ...
`----

AFAIK, those are the only changes needed.

Nick

  reply	other threads:[~2011-12-30 16:06 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 [this message]
2011-12-30 16:37 ` 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=14688.1325261177@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).