blob: 7bb9824307c376d718c012427d8204eb9bd59d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
%D \module
%D [ file=page-nnt,
%D version=2002.04.16,
%D title=\CONTEXT\ Page Macros,
%D subtitle=Footnotes,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\writestatus{loading}{ConTeXt Page Macros / Footnotes}
%D Terrible hacks: we need to share save/restore
%D We've moved some footnote handling to a separate page
%D module. The macros below are used in the single and multi
%D column page handlers and permit mixed usage of column and
%D page notes.
\unprotect
\def\checkbegincolumnfootnotes % should happen inside otr
{\ifcase\clevernotes
\erasenotebackup
\else
\doflushnotes
\savenotecontent
\fi
\savenotedata
\checknotes}
\def\checkendcolumnfootnotes
{\restorenotedata % maybe better just \checknotes
\ifcase\clevernotes\else
\restorenotecontent
\fi}
\def\checksinglecolumnfootnotes
{\checknotes} % njet : \restorenotedata
\newdimen\totalinsertionheight
\def\settotalinsertionheight
{\calculatetotalnoteheight
\totalinsertionheight\totalnoteheight
\addinsertionheight\topins\to\totalinsertionheight
\addinsertionheight\botins\to\totalinsertionheight}
% hm
\def\checkbegincolumnfootnotes % should happen inside otr
{\ifcase\clevernotes
\erasenotebackup
\else
\doflushnotes
\savenotecontent
\fi
\savenotedata
\checknotes}
\def\checkendcolumnfootnotes
{\restorenotedata
\ifinsidecolumns
\ifcase\clevernotes\else
\restorenotecontent
\fi
\fi}
\protect \endinput
|