emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Math formatting in HTML export - The Org Manual
Date: Tue, 14 Oct 2014 13:51:06 -0400	[thread overview]
Message-ID: <87mw8y8rqt.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: CAD-VTcFP=5g6ZjxNEsx1vJn20rN89cguTDodcUk_o=6w2RHygQ@mail.gmail.com

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> Thanks Eric.
>
> I have tested this solution that works with imagemagick and html export. I have added these lines in my init.el :
>
> ; Include the latex-exporter
> (require 'ox-latex)
> ;; Add minted to the defaults packages to include when exporting.
> ;(add-to-list 'org-latex-packages-alist '("" "minted"))
> ;; Tell the latex export to use the minted package for source
> ;; code coloration.
> (setq org-latex-listings 'minted)
> ;; Let the exporter use the -shell-escape option to let latex
> ;; execute external programs.
> ;; This obviously and can be dangerous to activate!
> (setq org-latex-pdf-process
>       '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
>
> and it works.
>
> But now it does not work in my Gnus if I want to include some png
> images of proofs... I have to deleted these "dangerous lines"...
>
> I do not understand why I need minted and shell-escape...
>

I don't know why you need minted (I have not followed the conversation),
but to use minted you *need* -shell-escape: minted requires running an
external program (pygments), but tex does not like doing that for
security reasons - the -shell-escape option gives tex permission to run
such an external program.

Nick

  reply	other threads:[~2014-10-14 17:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12  8:17 Math formatting in HTML export - The Org Manual Joseph Vidal-Rosset
2014-10-13  0:45 ` Grant Rettke
2014-10-13  7:45   ` Joseph Vidal-Rosset
2014-10-13 11:45     ` Eric S Fraga
2014-10-13 15:50       ` Joseph Vidal-Rosset
2014-10-14  7:25         ` Eric S Fraga
2014-10-14 17:23           ` Joseph Vidal-Rosset
2014-10-14 17:51             ` Nick Dokos [this message]
2014-10-15  5:54               ` Joseph Vidal-Rosset
2014-10-14 19:09             ` Eric S Fraga
2014-10-15  5:59               ` Joseph Vidal-Rosset
2014-10-15  7:21                 ` Eric S Fraga

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=87mw8y8rqt.fsf@alphaville.bos.redhat.com \
    --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).