ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* More on XML and citations
@ 2006-04-04 21:09 Johannes Graumann
  2006-04-04 21:43 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Graumann @ 2006-04-04 21:09 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: More on XML and citations
@ 2006-04-05  2:08 Johannes Graumann
  2006-04-05  6:55 ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Graumann @ 2006-04-05  2:08 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 292 bytes --]

Hans Hagen wrote:

> however, best is not to mix tex this way with xml
Hmmmm ... will heed that advice then ... as a remedy: Taco, how would I
define a new 'cite' alternative along the lines
of 'authoryear'/'authoryears' that would result in 'Author et. al., 2004'?

Thanks for any hint, Joh

[-- Attachment #1.2: Type: application/pgp-signature, Size: 829 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-04-06 21:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 21:09 More on XML and citations Johannes Graumann
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

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).