From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Math formatting in HTML export - The Org Manual Date: Tue, 14 Oct 2014 13:51:06 -0400 Message-ID: <87mw8y8rqt.fsf@alphaville.bos.redhat.com> References: <878ukktcpz.fsf@pinto.chemeng.ucl.ac.uk> <8738asarzm.fsf@gmail.com> <87mw8zm7th.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe6Fv-0005j5-3M for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 13:51:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe6Fk-0007JH-Eg for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 13:51:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:42190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe6Fk-0007J0-7p for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 13:51:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xe6Fi-0001GA-Ku for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 19:51:18 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2014 19:51:18 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2014 19:51:18 +0200 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: emacs-orgmode@gnu.org Joseph Vidal-Rosset 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