emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: LaTeX minted --shell-escape error after updating to 8.0.3
Date: Sun, 26 May 2013 02:44:08 -0400	[thread overview]
Message-ID: <87obbyme9z.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CAG+C5isqSO88bGr6Fx0fWQ8Nvuk19uBiC6JRVHBmA2b3VooY4w@mail.gmail.com

Senthil Kumar M <senthil.debian@gmail.com> writes:


> I updated org-mode to 8.0.3 (release_8.0.3-156-g847637). I got the
> following error while using the LaTeX export, before the update all
> was well and the PDF file was produced fine.
>
> "Process completed with errors: [LaTeX error] [package error]
>
> *Org PDF LaTeX Output* shows:
>
> ...
> ...
>
> Package ifplatform Warning:
>     shell escape is disabled, so I can only detect \ifwindows.
>
> ))
>
> ! 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.21 \usemintedstyle
>                     {autumn}
>
> ! Package minted Error: You must have `pygmentize' installed to use this packag
> e.
>
> See the minted package documentation for explanation.
> Type  H <return>  for immediate help.
> ...
> ...
>
>
> I have not changed any settings in my .emacs file (i.e.: (setq
> org-export-latex-listings 'minted) is unchanged) and I never faced any
> problems related to the `--shell-escape' before the update. pygmentize
> is present in /usr/bin/ and it too worked perfectly before the update.
>

Well, you must have done something before to get around this problem.
My guess would be that you have customized the old
org-latex-to-pdf-process variable. The problem is that in 8.x, the
variable has been renamed to org-latex-pdf-process, so you need to do
to the new variable what you did to the old. E.g. the default setting
of this variable is three pdflatex calls:

,----
| ("pdflatex -interaction nonstopmode -output-directory %o %f"
|  "pdflatex -interaction nonstopmode -output-directory %o %f"
|  "pdflatex -interaction nonstopmode -output-directory %o %f")
`----

You'd need to add --shell-escape to each one.

-- 
Nick

  reply	other threads:[~2013-05-26  6:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26  1:53 LaTeX minted --shell-escape error after updating to 8.0.3 Senthil Kumar M
2013-05-26  6:44 ` Nick Dokos [this message]
2013-05-27 19:31   ` Senthil Kumar M
2013-05-27 20:17     ` Nick Dokos
2013-05-27 20:40       ` Suvayu Ali
2013-05-27 20:46       ` Senthil Kumar M
2013-05-27 22:16         ` 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=87obbyme9z.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).