From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: About the Org documentation for minted Date: Thu, 05 Jan 2012 02:14:43 -0500 Message-ID: <14864.1325747683@alphaville.dokosmarshall.org> References: <87mxa2yfdp.fsf@iro.umontreal.ca> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RihXF-0000bF-KK for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 02:14:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RihXE-0002f5-1g for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 02:14:49 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:40949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RihXD-0002ev-P7 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 02:14:47 -0500 In-Reply-To: Message from pinard@iro.umontreal.ca (=?us-ascii?Q?=3D=3Futf-?= =?us-ascii?Q?8=3FQ=3FFran=3DC3=3DA7ois=3F=3D?= Pinard) of "Wed\, 04 Jan 2012 22\:53\:06 EST." <87mxa2yfdp.fsf@iro.umontreal.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7?= =?us-ascii?Q?ois=3F=3D?= Pinard Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Fran=C3=A7ois Pinard 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. =20 > 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." >=20 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. >=20 > 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. >=20 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.