Hi,

How would I escape certain characters from the template output so they don't interfere with LaTeX?

I have tt code that looks like this:

.
.
.
[% END #IF %]
  [%-item.title-%]&& [%-item.accountno-%]\hline
[%- IF item.CatagoryTitle != loop.next.CatagoryTitle %]
.
.
.

item.title may contain ' or other characters which LaTeX is sensitive to in it. I'd like to pass item.title (and possibly other fields) through a regex that can escape all latex characters. any ideas?

I'm sure i saw some doco on the TT web site about using regexps, but I can't seem to find it now.

Jason


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to