From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: minted for latex source code export Date: Sat, 07 Aug 2010 14:26:28 +0200 Message-ID: <87pqxu7gnf.fsf@gmx.de> References: <87zkwzn9tw.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50902 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9cD-0001kF-Cb for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 13:24:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhiTg-00032b-6d for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 08:26:18 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:34921 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OhiTf-00032X-Oa for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 08:26:16 -0400 In-Reply-To: <87zkwzn9tw.fsf@stats.ox.ac.uk> (Dan Davison's message of "Fri, 06 Aug 2010 09:34:51 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs org-mode mailing list Dan Davison writes: > Seb's nice listings code led me to come across this[1] blog post, > describing the latex package "minted"[2]. I've made a first-pass > implementation of org-mode latex export using minted. This didn't take > too long because I copied the original work Eric Schulte did on > listings. I think that minted may be an improvement over using listings > for exporting code from org-mode. > > This pdf shows an example of export from org-mode > > http://www.princeton.edu/~ddavison/software/org-minted/minted.pdf > > My patch is below and in branch "minted" at > http://github.com/dandavison/org-devel. > > minted does coloured syntax highlighting in ~150 languages. Unlike with > the latex listings package, no extra configuration is required to set up > the colors and fonts for different language elements. There are other > nice features such as displaying latex code in code comments, support > for unicode in the code, and (apparently) greater sophistication of the > syntax highlighters than the listings package. It uses a python library > pygments[3] to do the syntax highlighting, so imposes a requirement on > org users. Hm --- the listings package comes with TexLive so no extra installation is neccessary on many systems. And you can define your own languages. But no configuration of the documents is nice, too :) Sebastian