|
From: David G. <go...@us...> - 2002-09-24 02:38:08
|
Richard Jones wrote: > Can't you search the DOM for the footnote body, based on the reference? In fact, all footnotes are kept track of while processing the document. ``document.footnotes``, ``document.footnote_refs``, ``document.autofootnotes``, etc. Take a look at docutils/nodes.py, ``class document``, for details. Use the "--dump-internals" command-line option to see what's stored where. > If not, can you maybe have a simple transform that runs pre-writer that > replaces footnote ref/footnote with a single footnote node? I believe the difficulty in TeX is that a footnote is assumed to have only one reference. I.e., you can't say [1]_ and then say [1]_ again somewhere else. I'll leave it to those with real TeX knowledge (i.e., not me!) to figure out a solution. -- David Goodger <go...@us...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |