[NTG-context] More on XML and citations

Johannes Graumann johannes_graumann at web.de
Tue Apr 4 23:09:03 CEST 2006

Hello again,

I have a matching rule for cite commands that look as follows:
<cite id="hunt:86" opt="authoryear"/>

The rule is this (kudoos to Taco):

Sometimes I would like to have the '(Hunt et. al., 1986)' produced by above
combination to look like '(see e.g. Hunt et. al., 1986)'. Taco pointed out
in response to a question to list that I could do that by handing
a 'left={(see e.g. }' to the cite command, however I fail to be able to do
that. A XML node like this 
<cite id="hunt:86" opt="authoryear,left={(see e.g.}"/>
results on compilation with above rule in the following error:
! Missing \endcsname inserted.
<to be read again>
\XML:ent:tex-leftbrace ...ace \else \leftargument
<argument> ...r,left=\getXMLentity {tex-leftbrace}
                                                  see e.g.\getXMLentity

\expanded ...\long \xdef \@@expanded {\noexpand #1
\docite ...on [\csname @@pv#2compress\endcsname ]}
                                                   [ \v!yes

\XML:ele:cite/ ...}{opt}{}][\XMLpar {cite}{id}{}]}
l.112 ...nt:86" opt="authoryear,left={see e.g.}"/>
                                                  ) changed the field

Can anybody help me out with this?

Thanks, Joh

More information about the ntg-context mailing list