1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Page Macros Page Streams}
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30\registerctxluafile{pagestr}{autosuffix}
31
32\unprotect
33
34\mutable\lettonothing\currentoutputstream
35
36\newif \ifinoutputstream
37\newtoks \everyenableoutputstream
38
39\appendtoks
40 \page_otr_command_flush_side_floats
41\to \everyenableoutputstream
42
43\permanent\protected\def\initializeoutputstreams
44 {\clf_initializestream
45 \enforced\glet\initializeoutputstreams\relax}
46
47\permanent\protected\def\enableoutputstream[#1]
48 {\initializeoutputstreams
49 \expand\everyenableoutputstream
50 \inoutputstreamtrue
51 \xdef\currentoutputstream{#1}
52 \clf_enablestream{#1}
53 \prevdepth\zeropoint}
54
55\permanent\protected\def\disableoutputstream
56 {\inoutputstreamfalse
57 \glet\currentoutputstream\s!default
58 \clf_disablestream}
59
60\permanent\protected\def\startoutputstream[#1]
61 {\begingroup
62 \initializeoutputstreams
63 \expand\everyenableoutputstream
64 \inoutputstreamtrue
65 \xdef\currentoutputstream{#1}
66 \clf_startstream{#1}}
67
68\permanent\protected\def\stopoutputstream
69 {\clf_stopstream
70 \endgroup}
71
72\permanent\protected\def\startoutputsubstream[#1]
73 {\globalpushmacro\currentoutputstream
74 \enableoutputstream[#1]}
75
76\permanent\protected\def\stopoutputsubstream
77 {\globalpopmacro\currentoutputstream
78 \enableoutputstream[\currentoutputstream]}
79
80\permanent \protected\def\flushoutputstream [#1]{\clf_flushstream{#1}}
81\permanent \protected\def\outputstreambox [#1]{\vbox{\clf_flushstream{#1}}}
82\permanent \protected\def\outputstreamcopy [#1]{\vbox{\clf_flushstreamcopy{#1}}}
83\permanent \protected\def\outputstreamunvbox [#1]{\clf_flushstream{#1}}
84\permanent \protected\def\outputstreamunvcopy[#1]{\clf_flushstreamcopy{#1}}
85\permanent \protected\def\synchronizestreams [#1]{\clf_synchronizestream{#1}}
86\permanent\tolerant\protected\def\pushoutputstream [#1]{\clf_pushstream{#1}}
87
88\protect \endinput
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129 |