emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] minted for latex source code export


From: Sebastian Rose
Subject: Re: [Orgmode] minted for latex source code export
Date: Sat, 07 Aug 2010 14:26:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Dan Davison <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]