ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jon Crump <jjcrump@uw.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \note and \footnote
Date: Thu, 23 Dec 2010 13:17:35 -0800	[thread overview]
Message-ID: <AANLkTikCw2P3KhXiNkMuU3PsqVGLn6vNquLeaGph2a9m@mail.gmail.com> (raw)
In-Reply-To: <7B8BD966-D408-40C8-886B-6518FD3A9403@uni-bonn.de>

On Thu, Dec 23, 2010 at 12:58 PM, Thomas A. Schmitz
<thomas.schmitz@uni-bonn.de> 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 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

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 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
___________________________________________________________________________________


  reply	other threads:[~2010-12-23 21:17 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
2010-12-23 21:17       ` Jon Crump [this message]
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=AANLkTikCw2P3KhXiNkMuU3PsqVGLn6vNquLeaGph2a9m@mail.gmail.com \
    --to=jjcrump@uw.edu \
    --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).