From: Johannes Graumann <johannes_graumann@web.de>
Subject: More on XML and citations
Date: Tue, 04 Apr 2006 14:09:03 -0700 [thread overview]
Message-ID: <e0unek$4ds$1@sea.gmane.org> (raw)
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):
\defineXMLargument
[cite]
{\expanded{\cite[\XMLpar{cite}{opt}{}][\XMLpar{cite}{id}{}]}}
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>
\leftargument
\XML:ent:tex-leftbrace ...ace \else \leftargument
\fi
<argument> ...r,left=\getXMLentity {tex-leftbrace}
see e.g.\getXMLentity
{tex...
\expanded ...\long \xdef \@@expanded {\noexpand #1
}\@@expanded
\docite ...on [\csname @@pv#2compress\endcsname ]}
[ \v!yes
=>\bibcitecompre...
\XML:ele:cite/ ...}{opt}{}][\XMLpar {cite}{id}{}]}
{}
l.112 ...nt:86" opt="authoryear,left={see e.g.}"/>
) changed the field
dramat...
Can anybody help me out with this?
Thanks, Joh
next reply other threads:[~2006-04-04 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-04 21:09 Johannes Graumann [this message]
2006-04-04 21:43 ` Hans Hagen
2006-04-05 2:08 Johannes Graumann
2006-04-05 6:55 ` Taco Hoekwater
2006-04-05 16:50 ` Johannes Graumann
2006-04-06 9:21 ` Taco Hoekwater
2006-04-06 17:36 ` Johannes Graumann
2006-04-06 19:30 ` Taco Hoekwater
2006-04-06 21:23 ` 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='e0unek$4ds$1@sea.gmane.org' \
--to=johannes_graumann@web.de \
--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).