Dear List,

    I am new to TT and LaTeX but decided to use the combination to 
automatically create PDF documents from Perl. (Other choices were either 
too primitive, e.g. not allowing tables, or too complex, e.g. requiring
me to position text blocks on the page myself.)

I have a simple question that was not - as far as I could see - discussed 
on this list before:

How do I properly escape stuff for LaTeX?

For example, a variable I am inserting through [% varname %] may contain 
the German Umlaut "ΓΌ" which would have to be written as "u for LaTeX,
or it may contain braces etc. which mess up the LaTeX parser.

Am I supposed to walk the data hash I pass to TT and escape every string I 
find, or is there a better way? Escaping the input data would seem the
wrong thing to do, because that would break the option of using, say, 
another template for HTML or CSV output of the same data.

I beg your pardon if this is a stupid question, but the answer does not
(yet) seem obvious to me, and the LaTeX filter seems to be rarely used
so I could not find anything on the Web.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail [EMAIL PROTECTED]

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

Reply via email to