hey,
you could just run thru a replace method...ala
apply the screwy characters to an array...and then
reiterate thru that array and do the subs...ala..
screwy=['a','b','c']
FOREACH item_s = screwy
item.title.replace('$item_s','/$item_s')
or somesuch..I am SURE someone will post a MUCH
cleaner/easier way...
--- Jason Lewis <[EMAIL PROTECTED]> wrote:
> 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
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates