News Archive
PhpRiot Newsletter
Your Email Address:

More information

Highlight source code lines in LaTeX

Note: This article was originally published at Planet PHP on 4 September 2010.
Planet PHP
I love LaTeX for any kind of text writing (actually typesetting), simply because it creates so nice looking and consistent layouts. And, of course, because I can write it in my favorite text editor. We use LaTeX especially for presentation slides at Qafoo, since the beamer package provides such a convenient environment. Combined with listings package, presenting source code snippets with nice syntax highlighting has never been easier. However, there was one problem we did not solve, yet, until some days ago: Highlighting certain source code lines of a listing on different slides.