page-not.mkiv /size: 1777 b    last modification: 2020-07-01 14:35
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
% \def\checkbegincolumnfootnotes % should happen inside otr
26
% {\ifcase\c_strc_notes_page_location
27
% \erasenotebackup
28
% \else
29
% \flushnotes
30
% \savenotecontent
31
% \fi
32
% \savenotedata}
33 34
% \def\checkendcolumnfootnotes
35
% {\restorenotedata
36
% \ifcase\c_strc_notes_page_location\else
37
% \restorenotecontent
38
% \fi}
39 40
\let
\checksinglecolumnfootnotes
\relax
41 42
\newdimen
\totalinsertionheight
43 44
\unexpanded
\def
\settotalinsertionheight
45
{
\calculatetotalnoteheight
46
\totalinsertionheight
\dimexpr
47
\totalnoteheight
48
+
\page_insert_insertion_height
\s!topfloat
49
+
\page_insert_insertion_height
\s!bottomfloat
50
\relax
}
51 52
% hm
53 54
\def
\checkbegincolumnfootnotes
% should happen inside otr
55
{
\ifcase
\c_strc_notes_page_location
56
\erasenotebackup
57
\else
58
\flushnotes
59
\savenotecontent
60
\fi
61
\savenotedata
}
62 63
\def
\checkendcolumnfootnotes
64
{
\restorenotedata
65
\ifinsidecolumns
66
\ifcase
\c_strc_notes_page_location
\else
67
\restorenotecontent
68
\fi
69
\fi
}
70 71
\protect
\endinput
72