LaTex formatter commands clash with other packages

Issue #185 resolved
Former user created an issue

The generated 'C'-prefixed LaTeX commands to format source code can, in some cases, collide with the commands of other packages. Since the get_style_defs of the HTML formatter lets you supply a style prefix, I figured that would be a sane behavior here, too. I'm uploading a patch to make the 'arg' argument to get_style_defs be used as the LaTeX command prefix, should someone (like me) need to avoid such collisions. Thanks for Pygments!

Reported by Jonathan Daugherty

Comments (4)

  1. Log in to comment