At 08:06 PM 4/2/2002 +0200, Giuseppe Bilotta wrote:
>Tuesday, April 02, 2002 Henning Hraban Ramm wrote:
>
>HHR> Ahoi!
>
>HHR> Someone asked after footnotes for margin notes on TeX-D-L.
>HHR> I asserted such would be possible with ConTeXt... ;-/
>HHR> ("Write 100 times: I must not boast!")
>
>HHR> Just
>HHR> \inmargin{Das\footnote{Randnote} steht im Rand.}
>HHR> gives a "missing number".
>
>HHR> Is there a simple way?
>
>Not tested: try with local footnotes.
interestingly a simple test failed because of nested margin notes (footnote
numbers by default go into the margin too), after patching:
\def\maakmargetekstblok#1#2#3#4#5#6%
{#4\relax
\bgroup
\forgetall % added, else problems with 'cen
\mindermeldingen
\hsize#1\relax
\doifnumberelse\margetekstnummer % new
{\ifcase\margetekstnummer\relax
\def\margetekstnummer{#2}%
\fi}
{}%
\doifnumberelse .....
and add the footnote handlers in:
\def\dodoinmarge[#1][#2][#3][#4][#5]#6%
{\ignorespaces
\bgroup\postponefootnotes % group is (somehow) needed
\doifinsetelse{\v!laag}{#4}
{\lowinmargintrue}
{\lowinmarginfalse}%
\processaction
[#1]
[ \v!links=>#2{#6},
\v!rechts=>#3{#6},
\s!unknown=>\ifdubbelzijdig
\doifcommonelse{+,-}{#4}
{\doinmargereverse#2#3{#6}}
{\doinmargenormal#2#3{#6}}%
\else
#2{#6}%
\fi]%
\rawpagereference{\s!mar}{#5}%
\flushfootnotes\egroup % don't forget the group
\ignorespaces}
in page-mar.tex, you can indeed get footnotes in margins (although i don't
know how this behaves in complex pages).
\inleft{test \footnote{test}} \input tufte
now, if you do sick things like:
\dorecurse{100}{test test \inleft{test \footnote{test}} test\par}
and don't want footnotes to be split over pages, say:
\setupfootnotes[split=verystrict]
Seems to work ok.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
fall-back web server:
www.pragma-ade.nl
-------------------------------------------------------------------------