From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: More specific LaTeX output classes Date: Fri, 02 Dec 2011 18:40:51 -0500 Message-ID: <15989.1322869251@alphaville.americas.hpqcorp.net> References: <21A5E1E970CD46459ECBE86D6CC4B28C52E23E0F@spexch01.WindLogics.local> <87zkfaiqpn.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWcit-0005Wz-5U for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 18:40:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWcir-000496-V4 for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 18:40:55 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:48934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWcir-00048y-Ou for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 18:40:53 -0500 In-Reply-To: Message from Niels Giesen of "Fri, 02 Dec 2011 22:55:16 +0100." <87zkfaiqpn.fsf@gmail.com> 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: Niels Giesen Cc: nicholas.dokos@hp.com, "emacs-orgmode@gnu.org" , Ken Williams Niels Giesen wrote: > Ken Williams writes: > > > [...] > > > Would it be possible for the export process to define various classes > > that default to being exactly like 'verbatim', but could be > > customized? After that, a next step might be to provide nice defaults > > that do things like syntax-highlighting (through the 'minted' package, > > perhaps), or at least add a visual marker distinguishing between input > > & output. > > > > Or of course it's possible some of this is already implemented and I've missed it. =) > > Yes it is: > > #+begin_src emacs-lisp > (setq org-export-latex-listings 'minted) > (add-to-list 'org-export-latex-packages-alist '("" "minted") > #+end_src > NB: there's a closing paren missing in the add-to-list line. > See also `org-export-latex-listings-langs' for a mapping of Emacs modes > to languages known to pygmentize. > > Also see > > C-h v org-export-latex-listings RET > > for more information (e.g. about the --shell-escape option you'll have > to pass to the LaTeX process). > Thanks for this (and the pointers that you - and others? - have provided previously): it finally motivated me to try out minted. One problem I ran into was that the version of minted.sty that I have uses "which -s" to find pygmentize, ``which'' complains about -s and the run fails. I ended up editing minted.sty to get rid of the -s and everything works smoothly. The version I have says \ProvidesPackage{minted}[2010/01/27 v1.6 Yet another Pygments shim for LaTeX] I checked CTAN and the most recent version is 1.7: that has excised the -s. Nick