[texhax] Recommendations on source code printing with highlighting and tabs
jesseperla at gmail.com
Fri Jul 10 17:07:50 CEST 2009
I need to display source code (mostly C++, but a little matlab and
XML) for research papers and tutorials, but am having trouble getting
it to look as good as software books
Question 1) With lstlisting or verbatimtab, is there any way to
highlight lines of code? I want to have a chunk of code and highlight
relevant lines somehow (ideally with a background color for it, etc.
but I am flexible).
Question 2) What are the lstset settings people use with lstlisting to
make C++ or others look 'nice'?
Question 3) I tried both 'lstlisting' and 'verbatimtab'. Are there
any other ones I should be aware of?
Thanks for your help,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the texhax