From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64804 Path: news.gmane.org!not-for-mail From: Jon Crump Newsgroups: gmane.comp.tex.context Subject: Re: \note and \footnote Date: Thu, 23 Dec 2010 13:17:35 -0800 Message-ID: References: <7B8BD966-D408-40C8-886B-6518FD3A9403@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293139075 9924 80.91.229.12 (23 Dec 2010 21:17:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 21:17:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 23 22:17:50 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVsXk-0002BL-6k for gctc-ntg-context-518@m.gmane.org; Thu, 23 Dec 2010 22:17:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8B30CA986; Thu, 23 Dec 2010 22:17:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Cacx-jCChgKL; Thu, 23 Dec 2010 22:17:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 697E8CA97B; Thu, 23 Dec 2010 22:17:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2679CA97B for ; Thu, 23 Dec 2010 22:17:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z3eefgrythz5 for ; Thu, 23 Dec 2010 22:17:39 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 11406CA949 for ; Thu, 23 Dec 2010 22:17:39 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBNLHavD016457 for ; Thu, 23 Dec 2010 22:17:37 +0100 Original-Received: by qwa26 with SMTP id 26so6501649qwa.14 for ; Thu, 23 Dec 2010 13:17:35 -0800 (PST) Original-Received: by 10.229.222.13 with SMTP id ie13mr7567327qcb.227.1293139055831; Thu, 23 Dec 2010 13:17:35 -0800 (PST) Original-Received: by 10.229.239.11 with HTTP; Thu, 23 Dec 2010 13:17:35 -0800 (PST) In-Reply-To: <7B8BD966-D408-40C8-886B-6518FD3A9403@uni-bonn.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DKJhAiK - 407a756544b8 - 20101223 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:64804 Archived-At: On Thu, Dec 23, 2010 at 12:58 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 9:47 PM, Jon Crump wrote: > >> Attached is a minimal working example, along with the pdf output I got r= unning: >> context --environment=3Ddoublefoot.tex doublefoot.xml > > Why do you use the intermediate step of creating a macro? I think this do= es what you want: > > > \startxmlsetups xml:ref > =A0 =A0 =A0 =A0\xmldoifelse{#1}{parent::div[@type=3D'arText']} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{\footnote[\xmlatt{#1}{target}] > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{\xmlfirst{#1} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{root::/bo= dy/text/div[@type=3D'fnotes']/note[@xml:id=3D=3Dstring.sub('\xmlatt{#1}{tar= get}',2)]} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{\note[\xmlatt{#1}{target}]} > =A0 =A0 =A0 =A0\xmlflush{#1} > \stopxmlsetups > > Thomas Thanks Thomas, My thought, ill-informed perhaps, was simply for clarity: to make it clear that I'm using the same value in both \note[] and \footnote[]. In any case, sadly, using what you suggest still gets me the same result. Jon ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________