core-def.mkxl /size: 3997 b    last modification: 2021-10-28 13:51
1
%D \module
2
%D [ file=core-def,
3
%D version=2002.05.07,
4
%D title=\CONTEXT\ Core Macros,
5
%D subtitle=Defaults,
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
Core
Macros
/
Defaults
}
15 16
%D Here we collect settings that cannot be done earlier due to
17
%D depedencies. More code will moved to this module later.
18 19
\unprotect
20 21
\usesymbols
[
mis
,
nav
]
% no longer mvs preloaded
22 23
\setupsymbolset
[
navigation
1
]
24 25
\setupinteraction
[
\c!symbolset
=
navigation
1
]
26 27
% what a mess
28 29
\everypar
\emptytoks
30
\neverypar
\emptytoks
31 32
\appendtoks
33
% \flushnotes
34
\page_otr_command_synchronize_side_floats
% an otr specific command
35
\checkindentation
36
\showparagraphnumber
37
\restoreinterlinepenalty
38
% \flushmargincontents
39
% \flushcommentanchors
40
\flushnotes
41
% \synchronizenotes
42
% \OTRSETshowstatus
43
\registerparoptions
44
% \flushsyncpositions
45
\flushpostponednodedata
46
\typo_delimited_repeat
47
\spac_paragraphs_flush_intro
48
\typo_initial_handle
49
\typo_firstline_handle
50
%
51
\spac_paragraph_wrap
52
\spac_paragraph_freeze
53
\to
\everypar
54 55
\appendtoks
56
\flushnotes
57
\to
\everydisplay
58 59
% \appendtoks
60
% \adjustsidefloatdisplaylines
61
% \to \everydisplay
62 63
% \appendtoks
64
% \flushpostponednodedata
65
% \to \neverypar
66 67
% \appendtoks
68
% \flushsyncpositions
69
% \to \everyheadstart
70 71
% \appendtoks
72
% \flushsyncresets
73
% \to \everyendoftextbody
74 75
\appendtoks
76
\ignorespaces
77
\to
\everybeginofpar
78 79
\appendtoks
80
\removeunwantedspaces
81
% \strut % option ?
82
% \flushsyncresets
83
% \setlastlinewidth % gone, will be done in lua
84
\endgraf
85
\to
\everyendofpar
86 87
% initialization order:
88 89
\ifdefined
\font_preloads_at_every_job
\else
\let
\font_preloads_at_every_job
\relax
\fi
90
\ifdefined
\font_preloads_at_start_text
\else
\let
\font_preloads_at_start_text
\relax
\fi
91
\ifdefined
\font_preloads_at_stop_text
\else
\let
\font_preloads_at_stop_text
\relax
\fi
92 93
\appendtoks
94
\font_preloads_at_start_text
95
\to
\everystarttext
96 97
\appendtoks
98
\font_preloads_at_stop_text
99
\to
\everystoptext
100 101
% We made \loadoptionfile obsolete: we pass options via the command line to
102
% luatex now and handle them directly instead of via a file. This also makes
103
% the next obsolete:
104
%
105
% \directsetup{*runtime:options}
106
% \directsetup{*runtime:modules}
107 108
\appendtoks
109
\showcontextbanner
110
%\initializenewlinechar
111
\calculatecurrenttime
112
\syst_files_load
113
% for the moment here (before doc env)
114
\setupoutput
[
pdf
]
%
115
% \setupoutput[lua]%
116
%
117
\clf_setdocumentcommandline
118
\clf_setdocumentctxfile
119
\clf_setdocumentfilenames
120
\font_preloads_at_every_job
121
\settopskip
% brrr
122
\initializemainlanguage
123
\initializepagebackgrounds
124
\initializepagecounters
125
\clf_setdocumentmodes
126
\clf_setdocumentmodules
127
\clf_setdocumentenvironments
128
\to
\everyjob
129 130
\appendtoks
131
\ifarrangingpages
\poparrangedpages
\fi
132
\to
\everybye
133 134
\prependtoks
135
\resetallattributes
136
\to
\everybeforeoutput
137 138
\appendtoks
139
\the
\everybackendshipout
140
\to
\everyshipout
141 142
\prependtoks
143
\the
\everylastbackendshipout
144
\to
\everylastshipout
145 146
\prependtoks
147
\lefttoright
148
\to
\everybeforeoutput
149 150
% temporary here:
151 152
\pushoverloadmode
153
\frozen
\protected
\def
\arg
{
\mathortext
\normalmatharg
\normaltextarg
}
% might be overloaded
154
\popoverloadmode
155 156
% might move to \everydump or even disappear:
157 158
\nonknuthmode
159 160
% brrr
161 162
\appendtoks
163
\synchronizegloballinespecs
164
\synchronizelocallinespecs
165
\to
\everysetupbodyfont
166 167
\appendtoks
168
\synchronizelocallinespecs
169
\to
\everyswitchtobodyfont
170 171
% who knows
172 173
% \appendtoks
174
% \resetcharacterspacing
175
% \to \everyhyphenatedurl
176 177
% \setbreakpoints[compound]
178 179
%D Till we fixed all styles:
180 181
\enforced
\let
\\
\crlf
% frozen or permanent?
182 183
\protect
\endinput
184