From: Simson G. <si...@cs...> - 2005-06-26 12:00:54
|
> From: Andre Wobst <wo...@us...> > To: pyx...@li... > Subject: Re: [PyX-user] percent sign > > Hi Simson, > > On 25.06.05, Simson Garfinkel wrote: > >> The percent sign is the LaTeX comment character, so you will need to >> escape it, as "\%" >> Of course, the "\" is an escape character for Python, so you will >> probably have to use "\\%" >> In some cases, you may find it necessary to use "\\\\%" >> > > Interesting! What's the minimal example for that? ;-) Whenever you need to take two trips through the pre-processor. I frequently write programs that output programs. So if you have a program that outputs a PyX program, you'll need four \'s. It can also happen if you want to have a program that generates an HTML page that is then turned into another program (by scraping). |