blob: 9dbb16f5cabfa71ea4d8bd138474ecb1d0d467a7 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
%D \module
%D [ file=core-def,
%D version=2002.05.07,
%D title=\CONTEXT\ Core Macros,
%D subtitle=Defaults,
%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 Core Macros / Defaults}
%D Here we collect settings that cannot be done earlier due to
%D depedencies. More code will moved to this module later.
\unprotect
\usesymbols[mis,nav] % no longer mvs preloaded
\setupsymbolset[navigation 1]
\setupinteraction[\c!symbolset=navigation 1]
% what a mess
\everypar \emptytoks
\neverypar \emptytoks
\appendtoks
% \flushnotes
\page_otr_command_synchronize_side_floats % an otr specific command
\checkindentation
\showparagraphnumber
\restoreinterlinepenalty
% \flushmargincontents
% \flushcommentanchors
\flushnotes
\synchronizenotes
\OTRSETshowstatus
\registerparoptions
% \flushsyncpositions
\flushpostponednodedata
\typo_delimited_repeat
\insertparagraphintro
\typo_initial_handle
\typo_firstline_handle
\to \everypar
\appendtoks
\flushnotes
\to \everydisplay
% \appendtoks
% \adjustsidefloatdisplaylines
% \to \everydisplay
% \appendtoks
% \flushpostponednodedata
% \to \neverypar
% \appendtoks
% \flushsyncpositions
% \to \everyheadstart
% \appendtoks
% \flushsyncresets
% \to \everyendoftextbody
\appendtoks
\ignorespaces
\to \everybeginofpar
\appendtoks
\removeunwantedspaces
% \strut % option ?
% \flushsyncresets
% \setlastlinewidth % gone, will be done in lua
\endgraf
\to \everyendofpar
% initialization order:
\ifdefined\font_preloads_at_every_job \else \let\font_preloads_at_every_job \relax \fi
\ifdefined\font_preloads_at_start_text \else \let\font_preloads_at_start_text\relax \fi
\ifdefined\font_preloads_at_stop_text \else \let\font_preloads_at_stop_text \relax \fi
\appendtoks
\font_preloads_at_start_text
\to \everystarttext
\appendtoks
\font_preloads_at_stop_text
\to \everystoptext
% We made \loadoptionfile obsolete: we pass options via the command line to
% luatex now and handle them directly instead of via a file. This also makes
% the next obsolete:
%
% \directsetup{*runtime:options}
% \directsetup{*runtime:modules}
\appendtoks
\showcontextbanner
\initializenewlinechar
\calculatecurrenttime
\syst_files_load
\clf_setdocumentcommandline
\clf_setdocumentctxfile
\clf_setdocumentfilenames
\font_preloads_at_every_job
\settopskip % brrr
\initializemainlanguage
\initializepagebackgrounds
\initializepagecounters
\clf_setdocumentmodes
\clf_setdocumentmodules
\clf_setdocumentenvironments
\to \everyjob
\appendtoks
\ifarrangingpages\poparrangedpages\fi
\to \everybye
\prependtoks
\resetallattributes
\to \everybeforeoutput
\appendtoks
\the\everybackendshipout
\to \everyshipout
\prependtoks
\the\everylastbackendshipout
\to \everylastshipout
\prependtoks
\lefttoright
\to \everybeforeoutput
% temporary here:
\unexpanded\def\arg{\mathortext\normalmatharg\normaltextarg}
% might move to \everydump or even disappear:
\nonknuthmode
% brrr
\appendtoks
\synchronizegloballinespecs
\synchronizelocallinespecs
\to \everysetupbodyfont
\appendtoks
\synchronizelocallinespecs
\to \everyswitchtobodyfont
% who knows
% \appendtoks
% \resetcharacterspacing
% \to \everyhyphenatedurl
% \setbreakpoints[compound]
%D Till we fixed all styles:
\let\\=\crlf
\protect \endinput
|