1. Jesper Noehr
  2. pygments3
  3. Issues
Issue #185 resolved

LaTex formatter commands clash with other packages

Anonymous 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 cygnus@cprogrammer.org

Comments (4)

  1. Log in to comment