Alex Ross wrote:
Anyway, the grammar thinks that you're LaTeX code is a regular expression. My suggestion would be to remove the "r" from before your doc-string. Is there a particular reason you are using them?
This code is from a co-developer who has been getting into automatic conversion of docstrings to Latex files. I'm not sure if the "r" is a flag for the package he's using or it's just superfluous, but will try removing it. Thanks for the suggestion.
Anand
ah, if you are going to compile those strings your going to have to leave the "r" in there.
a string literal prefixed with an "r" is a so-called raw string. It causes python to interpret those 's as literal backlashes, as opposed to interpreting it as the start of a character escape. If you take out the r's, his LaTeX doc conversion package is going to break. Not good.