5 May 2012 20:00
Unable to get syntax highlight with new code directive in LaTeX
Juan Luis Cano Rodríguez <juanlu001 <at> gmail.com>
2012-05-05 18:00:06 GMT
2012-05-05 18:00:06 GMT
Hello everyone, I just read the other day the release notes of the 0.9 version and decided to test the new code directive and role [1].
My problem is that, though I have Pygments installed and the code seems to be well parsed, I can't get it colored when I export to LaTeX using rst2latex.
If I export to HTML, I can then do
pygmentize -f html -S trac > style.css
add the stylesheet to the generated .html file and there I have the colors. On the other hand, I cannot figure out how to do this with LaTeX.
I stumbled upon an old document on the sandbox mentioning rst2html-pygments and rst2latex-pygments [2], which seems to be exactly what I want, but these scripts are not included in the main distribution.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
RSS Feed