From: Rob Ermers <r.ermers@hccnet.nl>
Subject: Re: m-letter.tex -- backslash interpretation error
Date: Mon, 10 Jan 2005 20:34:45 +0100 [thread overview]
Message-ID: <41E2D8D5.7040100@hccnet.nl> (raw)
In-Reply-To: <41E2C4B9.7040406@wxs.nl>
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
Hans,
Thanks for your quick reply. I adapted the file, according to your
suggestion. The letter now comes out right! Thank you for that. I
immediately tried an items list, which also works!
Still, if there is any \ code in the xml file, it does not seem to work.
Changing \"e to ë in Drie\"eenheid makes the ë disappear.
<contact ...>
...
<p>Laan der Drie\"eenheid</p>
...
</contact>
comes out as:
...
Laan der Drie“”eenheid
...
I also found out that \usemodule[m-letter] works much better than
\usemodule[letter], which is not evident from the way is Context set up.
Thanks again,
Robert
[-- Attachment #2: brief-test.tex --]
[-- Type: text/plain, Size: 1747 bytes --]
%starttext \setups [letter:place] \stoptext \endinput
\setupoutput[pdftex]
%\tracelayerstrue
%\usemodule[xtag-ini]
\usemodule[corres]
\usemodule[m-letter]
\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
\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
\startsetups[letter:content]
\input brief-inhoud-test.tex
\stopsetups
\startsetups[letter:place:content]
\bgroup \disableXML \endgraf \setups[letter:content] \endgraf \egroup
\stopsetups
\XMLprocesscontacts[test-data.xml]
\starttext
%\setups[letter:place]
\stoptext
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2005-01-10 19:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 18:35 XML question regarding special characters Zeljko Vrba
2005-01-07 19:23 ` Adam Lindsay
2005-01-09 14:06 ` m-letter.tex -- backslash interpretation error Rob Ermers
2005-01-09 20:04 ` h h extern
2005-01-10 17:10 ` Rob Ermers
2005-01-10 18:08 ` Hans Hagen
2005-01-10 19:34 ` Rob Ermers [this message]
2005-01-11 10:15 ` Hans Hagen
2005-01-11 7:48 ` Christopher Creutzig
2005-01-11 9:52 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41E2D8D5.7040100@hccnet.nl \
--to=r.ermers@hccnet.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).