ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: Henning Hraban Ramm <angerweit@gmx.net>, ntg-context@ntg.nl
Subject: Re: footnotes for marginals?
Date: Wed, 03 Apr 2002 13:42:06 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020403131153.03708810@server-1> (raw)
In-Reply-To: <1155176574.20020402200640@bigfoot.com>

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


      reply	other threads:[~2002-04-03 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02 17:38 Henning Hraban Ramm
2002-04-02 18:06 ` Giuseppe Bilotta
2002-04-03 11:42   ` Hans Hagen [this message]

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=5.1.0.14.1.20020403131153.03708810@server-1 \
    --to=pragma@wxs.nl \
    --cc=angerweit@gmx.net \
    --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).