My Problem is that, I want to build a letter generator, which first builds a latex-file from user input, and then compiles this via latex to PDF.
The template contains multiple lines like this:
Use Template.Delims to set the delimiters to some non conflicting text.
}} are just the default values, this method allows to select other delimiters.
Alternative method: In you template, where you want latex's
}, you can insert some safe text instead, like say
)# and then make a "global" replacement on the output from the template. Yet setting delimiters is far easier IMO and quite probably more performant, if that matters.