From: Jon Crump <jjcrump@uw.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \note and \footnote
Date: Thu, 23 Dec 2010 12:11:41 -0800 [thread overview]
Message-ID: <AANLkTinpYno15vy2cWG-nxFSWr7-7dw3Red8BQWj0yjC@mail.gmail.com> (raw)
All,
Something elementary, I'm sure, that I'm not understanding. I'm trying
to achieve parallel footnotes in arab/english texts, ie. each footnote
in the Arabic text has a corresponding footnote in the English text.
Both should point to the same footnote text. Like this:
<body>
<text>
<div type='arText'>
<lb /> some arab <ref target="#N01">text</ref>
<lb /> more arab <ref target="#N02">text</ref>
</div>
<div type='enText'>
<lb /> some english <ref target="#N01">text</ref>
<lb /> more english <ref target="#N02">text</ref>
</div>
<div type='fnotes'>
<note xml:id="N01">text for note ONE</note>
<note xml:id="N02">text for note TWO</note>
</div>
</text>
</body>
I thought to use TeX's \note[ref], but the following doesn't seem to work.
\startxmlsetups xml:ref
\define\thisRefName{\xmlatt{#1}{target}}
\xmldoifelse{#1}{parent::div[@type='arText']}
{\footnote[\thisRefName]{\xmlfirst{#1}{root::/body/text/div[@type='fnotes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',2)]}}}
{\note[\thisRefName]}
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:div:fnotes
\placefootnotes
\stopxmlsetups
I just get ?? for the reference markers in the English text. Any clues
as to what I'm doing wrong; or, is there a better way altogether to
approach this?
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
___________________________________________________________________________________
next reply other threads:[~2010-12-23 20:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 20:11 Jon Crump [this message]
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
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=AANLkTinpYno15vy2cWG-nxFSWr7-7dw3Red8BQWj0yjC@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).