ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <pg@levana.de>
Subject: xml again
Date: Sat, 24 Nov 2001 17:46:14 +0100	[thread overview]
Message-ID: <01112417461400.00957@levana> (raw)

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:
[...]

<technote longname="/Volumes/Share/pub/tn/tn1051_conic_splines" 
   shortname="tn1051_conic_splines.pdf" refname="tn1051_conic_splines"/>
[...]

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.
<to be read again> 
                   \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 :-)


             reply	other threads:[~2001-11-24 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-24 16:46 Patrick Gundlach [this message]
2001-11-26  9:12 ` Taco Hoekwater
2001-11-26 14:22 ` 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=01112417461400.00957@levana \
    --to=pg@levana.de \
    /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).