I am writing a book using Sphinx, and would like highlighting of individual lines of Python code samples to work in PDF format like it does in HTML format.
Bram Geron on the Sphinx-dev list was kind enough to advise me that adding line highlighting support to the latex formatter in pygments was the way to solve this problem: https://groups.google.com/forum/#!topic/sphinx-dev/GSLzhsYsdyU
I'm proposing to add
hl_color options to
LatexFormatter, similar to what was done for ImageFormatter in this ticket: https://bitbucket.org/birkenfeld/pygments-main/issues/457/highlight-line-in-imageformatter
Help and advice welcome!