From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \note and \footnote
Date: Thu, 23 Dec 2010 21:58:25 +0100 [thread overview]
Message-ID: <7B8BD966-D408-40C8-886B-6518FD3A9403@uni-bonn.de> (raw)
In-Reply-To: <AANLkTinH38bU-h=6kLsV3z-1-EcGDNWsc=a3HJLcerG5@mail.gmail.com>
On Dec 23, 2010, at 9:47 PM, Jon Crump wrote:
> Attached is a minimal working example, along with the pdf output I got running:
> context --environment=doublefoot.tex doublefoot.xml
Why do you use the intermediate step of creating a macro? I think this does what you want:
\startxmlsetups xml:ref
\xmldoifelse{#1}{parent::div[@type='arText']}
{\footnote[\xmlatt{#1}{target}]
{\xmlfirst{#1}
{root::/body/text/div[@type='fnotes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',2)]}
}
}
{\note[\xmlatt{#1}{target}]}
\xmlflush{#1}
\stopxmlsetups
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-12-23 20:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 20:11 Jon Crump
2010-12-23 20:36 ` Yury G. Kudryashov
2010-12-23 20:47 ` Jon Crump
2010-12-23 20:58 ` Thomas A. Schmitz [this message]
2010-12-23 21:17 ` Jon Crump
2010-12-23 21:20 ` Thomas A. Schmitz
2010-12-23 21:34 ` Jon Crump
2010-12-23 21:41 ` Thomas A. Schmitz
2010-12-23 21:47 ` Jon Crump
2010-12-23 22:03 ` Jon Crump
2010-12-23 21:42 ` Jon Crump
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=7B8BD966-D408-40C8-886B-6518FD3A9403@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.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).