page-not.mkiv /size: 1394 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=page-nnt,
3%D        version=2002.04.16,
4%D          title=\CONTEXT\ Page Macros,
5%D       subtitle=Footnotes,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Page Macros / Footnotes}
15
16%D This is an old mechanism that will be replaced as soon as the multicolumn
17%D code is redone.
18
19%D We've moved some footnote handling to a separate page module. The macros below
20%D are used in the single and multi column page handlers and permit mixed usage of
21%D column and page notes.
22
23\unprotect
24
25\newdimen\totalinsertionheight
26
27\unexpanded\def\settotalinsertionheight
28  {\calculatetotalnoteheight
29   \totalinsertionheight\dimexpr
30     \totalnoteheight
31    +\page_insert_insertion_height\s!topfloat
32    +\page_insert_insertion_height\s!bottomfloat
33   \relax}
34
35% hm
36
37\def\checkbegincolumnfootnotes % should happen inside otr
38  {\ifcase\c_strc_notes_page_location
39     \erasenotebackup
40   \else
41     \flushnotes
42     \savenotecontent
43   \fi
44   \savenotedata}
45
46\def\checkendcolumnfootnotes
47  {\restorenotedata
48   \ifinsidecolumns
49     \ifcase\c_strc_notes_page_location\else
50       \restorenotecontent
51     \fi
52   \fi}
53
54\protect \endinput
55