* About the Org documentation for minted
@ 2012-01-05 3:53 François Pinard
2012-01-05 4:33 ` François Pinard
2012-01-05 7:14 ` Nick Dokos
0 siblings, 2 replies; 3+ messages in thread
From: François Pinard @ 2012-01-05 3:53 UTC (permalink / raw)
To: emacs-orgmode
Hi again!
In org-latex.el, function org-export-as-pdf is said to "automatically
add -shell-escape when needed", and apparently it does.
The org-export-latex-listings variable says: "In addition, it is
necessary to install pygments (http://pygments.org), and to configure
the variable `org-latex-to-pdf-process' so that the -shell-escape option
is passed to pdflatex."
The last part of this statement is likely superfluous because of
org-export-as-pdf, isn't it? If yes, let me suggest it is removed, so
we are relieved from configuring the edition of org-latex-to-pdf-process
in our ~/.emacs files.
If I remove that edition and leave org-latex-to-pdf-process in ~/.emacs,
command "C-c C-e d" still gives a fontified, colored source code in the
genrated PDF.
François
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About the Org documentation for minted
2012-01-05 3:53 About the Org documentation for minted François Pinard
@ 2012-01-05 4:33 ` François Pinard
2012-01-05 7:14 ` Nick Dokos
1 sibling, 0 replies; 3+ messages in thread
From: François Pinard @ 2012-01-05 4:33 UTC (permalink / raw)
To: emacs-orgmode
pinard@iro.umontreal.ca (François Pinard) writes:
Sorry, a typo:
> If I remove that edition and leave org-latex-to-pdf-process in
> ~/.emacs, [...]
I meant "leave org-latex-to-pdf alone, out of ~/.emacs",
> command "C-c C-e d" still gives a fontified, colored source code in
> the genrated PDF.
François
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About the Org documentation for minted
2012-01-05 3:53 About the Org documentation for minted François Pinard
2012-01-05 4:33 ` François Pinard
@ 2012-01-05 7:14 ` Nick Dokos
1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2012-01-05 7:14 UTC (permalink / raw)
To: =?utf-8?Q?Fran=C3=A7ois?= Pinard; +Cc: nicholas.dokos, emacs-orgmode
François Pinard <pinard@iro.umontreal.ca> wrote:
> In org-latex.el, function org-export-as-pdf is said to "automatically
> add -shell-escape when needed", and apparently it does.
>
Well, that's what it says, but the "when needed" part is not true:
org-export-as-pdf only deals with minted, but there are other packages
that need the shell escape option to be added to the pdflatex
command. If you \usepackage{auto-pst-pdf} e.g., you'd need the shell
escape but org-export-as-pdf would not automatically add it.
> The org-export-latex-listings variable says: "In addition, it is
> necessary to install pygments (http://pygments.org), and to configure
> the variable `org-latex-to-pdf-process' so that the -shell-escape option
> is passed to pdflatex."
>
Maybe it should be fixed to say that if you use minted, then org will add
the shell escape option automatically.
> The last part of this statement is likely superfluous because of
> org-export-as-pdf, isn't it? If yes, let me suggest it is removed, so
> we are relieved from configuring the edition of org-latex-to-pdf-process
> in our ~/.emacs files.
>
> If I remove that edition and leave org-latex-to-pdf-process in ~/.emacs,
> command "C-c C-e d" still gives a fontified, colored source code in the
> genrated PDF.
>
Personally, I'd rather have it in my face that I'm doing something that
could be a security problem, than have org do it behind my back: if I
choose to override the default, it should be my decision (and the
consequences would then be my responsibility). So I'd advocate getting
rid of the automatic shell-escape and beef up the documentation
instead. But I'm probably in a tiny minority here.
Nick
PS. The relevant commit is 3ed5915f01ac5647db5f2204dc695519653b1190
and there is probably discussion on the ML about it, but I haven't gone
back to review it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-05 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 3:53 About the Org documentation for minted François Pinard
2012-01-05 4:33 ` François Pinard
2012-01-05 7:14 ` Nick Dokos
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).