Hans, thanks for your reaction! Here is the minimal example: 1. brief-test.tex is the letter. 2. brief-inhoud-test is the letter content. 3. test-data.xml contains some addresses The problem is that any backslash in the letter content is changed into `` in the pdf file. In the "reference" I also put a backslash (after the item "concerns"), but this one survives. To get that result I use: \startsetups[letter:content] \input brief-inhoud-test.tex \stopsetups If I use \startbuffer[texletter] \input brief-inhoud-test.tex \stopbuffer the content is not loaded into the letter at all; the result is then ``input brief-inhoud-test.tex instead of the content of the file. The encoding problem with \ is described in one of your manuals, but I really don't know where to repair it. A second problem is that the first address slides down to the content much more than it should. I tried to circumvent that by inserting a dummy address. Thanks in advance, Robert Ermers h h extern wrote:
Rob Ermers wrote:
Dear Friends,
It seems I am really having a problem. The backslash in my import document yields “.
\startsetups[letter:content] \input brieftekst \stopsetups
My document (brieftext.tex) among other things contains the following string:
ge\"interesseerde, which yields --> ge“”interesseerde
I am unable to use any normal code in my text, which is very problematic!
... a minimal example ...
looks like an encoding mismatch or so
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hierbij deel ik u mede dat we hier erg effici\"ent werken en niet ge\"interesseerd zijn in ge\"evolueerde dieselmotoren. %starttext \setups [letter:place] \stoptext \endinput \setupoutput[pdftex] %\tracelayerstrue %\usemodule[xtag-ini] \usemodule[corres] \usemodule[letter-re] \mainlanguage[nl] \setupbodyfont[ss] %\setvariables[letter:head][graphic=briefpapier-mo-p.010.pdf] \definelayer [letternext] [state=next, % graphic=briefpapier-mo-p.011.pdf, width=\paperwidth, height=\paperheight] \setvariables [letter:reference] [line=2, noflines-min=2, noflines-max=5, noflines=\getvariable{letter:reference}{noflines-max} ] \setvariables [letter:style] [opening=formal, closing=formal] %\setvariables % [letter:data] % [opening=, % initials=, % prefix=, % suffix=, % informalname=, % formalname=] % noflines=10] \setvariables[letter:address][line=6, hoffset=100mm,width=70mm] %\startsetups[contact:handle] %\XMLflush{address} \endgraf %\stopsetups %\startbuffer[texletter] %\input brieftekst-pol-jan2005 %\stopbuffer \startsetups[letter:content] \input brief-inhoud-test.tex \stopsetups \setvariables [letter:data] [address=\XMLflush{address}, %prefix=\XMLflush{prefix}, %initials=\XMLflush{initials}, %formalname=\XMLflush{formalname}, %informalname=\XMLflush{informalname} %content={\getbuffer[texletter]}, %,content=\getbuffer concerns=Ge\"interesseerd?, date=10 januari 2005, author=Dr. R.J.H.M. Ermers ] \setvariables[contacts][selection=n, file=test-data.xml] \startsetups[contact:handle] \setups[letter:place] \stopsetups \XMLprocesscontacts[test-data.xml] \starttext %\setups[letter:place] \stoptext