From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26784 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: More on XML and citations Date: Tue, 04 Apr 2006 14:09:03 -0700 Organization: Die Guten Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144185280 5121 80.91.229.2 (4 Apr 2006 21:14:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2006 21:14:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 04 23:14:39 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQsrC-0000ou-B6 for gctc-ntg-context-518@m.gmane.org; Tue, 04 Apr 2006 23:14:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1AD53127B0; Tue, 4 Apr 2006 23:14:34 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29419-10; Tue, 4 Apr 2006 23:14:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B9D4127B2; Tue, 4 Apr 2006 23:12:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4731127B2 for ; Tue, 4 Apr 2006 23:12:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29419-09 for ; Tue, 4 Apr 2006 23:12:47 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id AAABB127B0 for ; Tue, 4 Apr 2006 23:12:20 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FQsor-0000OS-92 for ntg-context@ntg.nl; Tue, 04 Apr 2006 23:12:09 +0200 Original-Received: from iluvatar.caltech.edu ([131.215.35.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Apr 2006 23:12:09 +0200 Original-Received: from johannes_graumann by iluvatar.caltech.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Apr 2006 23:12:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iluvatar.caltech.edu User-Agent: KNode/0.10.2 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26784 Archived-At: Hello again, I have a matching rule for cite commands that look as follows: 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 results on compilation with above rule in the following error: ! Missing \endcsname inserted. \leftargument \XML:ent:tex-leftbrace ...ace \else \leftargument \fi ...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