From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7508 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: footnotes for marginals? Date: Wed, 03 Apr 2002 13:42:06 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020403131153.03708810@server-1> References: <200204021738.g32HcUK01651@nathir.fiee.lan> <200204021738.g32HcUK01651@nathir.fiee.lan> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397965 19769 80.91.224.250 (23 Oct 2002 18:32:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:32:45 +0000 (UTC) Cc: Henning Hraban Ramm , ntg-context@ntg.nl Original-To: Giuseppe Bilotta In-Reply-To: <1155176574.20020402200640@bigfoot.com> Xref: main.gmane.org gmane.comp.tex.context:7508 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7508 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------