Escaping chars # and % by the LaTeX formatter

Issue #505 resolved
Former user created an issue

The characters # and % are special to LaTeX and should be escaped by the LaTeX formatter in order to be correctly typeset.

Currently this is an issue only when the highlighted code snippet is used outside of the Verbatim environment, which is exactly what I am doing in the new pygmentex LaTeX package I am writing to allow highlighting of source code snippets which are written directly in a LaTeX document.

Reported by romildo

Comments (2)

  1. Log in to comment