ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \note and \footnote
@ 2010-12-23 20:11 Jon Crump
  2010-12-23 20:36 ` Yury G. Kudryashov
  0 siblings, 1 reply; 11+ messages in thread
From: Jon Crump @ 2010-12-23 20:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-12-23 22:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-23 20:11 \note and \footnote 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
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

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).