Johan Nilssons Lifestream

Proper way to use to_latex with both textstyle math and escaped text elsewhere

Several folks have asked similar questions, but not specifically this one. I want to have latex textstyle math code ($\somemacro$) in the table header, for example, but also needs normal to_latex() escapes elsewhere in the table. In my particular case, I had some '%' chars running around the table cells, which are latex specials, of course. So, LaTeX chokes on such a table regardless of whether or not I use the escape=False option.

Is there a best-practice for this case?

Is there a way to escape the escape just for some parts, for example?

via Stack Overflow

blog comments powered by Disqus
Get the source for phplifestream at Github