From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6239 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: xml again Date: Sat, 24 Nov 2001 17:46:14 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <01112417461400.00957@levana> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035396777 8765 80.91.224.250 (23 Oct 2002 18:12:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:12:57 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6239 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6239 Hi! I am currently using the xml stuff (again). It is so great!!! But there is one little problem: I have a line like this in my xml file: [...] [...] and my tex-file looks like this: -------------------------------- \setupexternalfigures[directory=/Volumes/Share/pub/tn/] \defineoverlay[original][\overlaybutton{originaldest}] \def\mytechnote{% \useexternaldocument[\XMLpar{technote}{refname}{}] [\XMLpar{technote}{longname}{}] \definereference[originaldest][\XMLpar{technote}{refname}{}::] \framed[background=original,strut=no,offset=overlay]{% \externalfigure[\XMLpar{technote}{shortname}{}]% [page=1,height=\textheight]}} \defineXMLcommand [technote] \mytechnote \starttext \processXMLfilegrouped {filename.xml} \stoptext ------------------------------------ and TeX gives me an error: ! Missing \endcsname inserted. \unhbox \leavevmode ->\unhbox \voidb@x \_->\leavevmode \kern .06em \vbox {\hrule width.3em} \XML:ent:tex-underscore ...tterunderscore \else \_ \fi \XML:var:technote:refname ->tn1051_ conic_splines \XMLpar ...csname \@@XMLvariable :#1:#2\endcsname \else #3\fi ... l.51 ...ines.pdf" refname="tn1051_conic_splines"/> it helps when I change things in xtags-ini.tex [...] .unexpanded.gdef.enableXML* [...] .catcode`._=.@@other* [...] * .catcode`._=.@@active .def_B&tex-underscore;E* [...] and recreate the format. So it works for me, but I do not know if this is the preferred way to go. Patrick, who is enjoying ConTeXt on his new iBook with MacOS X :-)