Bill Kranec
unread,Mar 12, 2013, 2:31:40 PM3/12/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mako-d...@googlegroups.com
Like the subject states, I'm trying to use Mako to generate some LaTeX code, in particular, I'd like to format some tabular data, like so
% for time in times:
${time} & & \\ \hline
% endfor
The problem is that '\\' is interpreted as a single escaped backslash, and '\' is printed in the result, which LaTeX doesn't like. I'm not sure if this is due to Mako or how Python reads strings.
Is there any way that I can tell Mako to read the template as a raw string? I know that I can use '\\\' to print a literal double backslash, but I would like to keep the template code as similar to the original TeX code as possible.
Thanks for your help!
Bill