summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/core-def.mkii
blob: e51cd96d36032a2420aaea8764096cacb6f0b640 (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
%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 / Hans Hagen \& Ton Otten}]
%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,mvs] % 'glm' no longer needed due to lm

\usesymbols[nav] \setupsymbolset[navigation 1]

\setupinteraction[\c!symbolset=navigation 1]

% initialization order:

%appendtoks  \initializeluainstances               \to \everyjob
\appendtoks  \showcontextbanner                    \to \everyjob
\appendtoks  \initializenewlinechar                \to \everyjob
\appendtoks  \checksystemcommandmode               \to \everyjob
\appendtoks  \calculatecurrenttime                 \to \everyjob
\appendtoks  \loadsystemfiles                      \to \everyjob

\appendtoks  \loadoptionfile                       \to \everyjob % can load files !

\appendtoks  \preloadfonts                         \to \everyjob
\appendtoks  \settopskip                           \to \everyjob
\appendtoks  \preloadlanguages                     \to \everyjob
\appendtoks  \preloadspecials                      \to \everyjob
\appendtoks  \openspecialfile                      \to \everyjob
\appendtoks  \openutilities                        \to \everyjob
\appendtoks  \splitjobfilename                     \to \everyjob
\appendtoks  \checknotes                           \to \everyjob % depends on bodyfont
\appendtoks  \initializeMPgraphics                 \to \everyjob % after loading system files
\appendtoks  \reportsystemcommandmode              \to \everyjob
\appendtoks  \initializemainlanguage               \to \everyjob
\appendtoks  \settrue\trackfilenames               \to \everyjob
\appendtoks  \newbackgroundfalse                   \to \everyjob % global

\ifdefined\initializepagecounters
    \appendtoks \initializepagecounters            \to \everyjob
\fi

\appendtoks  \directsetup{*runtime:options}        \to \everyjob % we could erase them afterwards % order can change
\appendtoks  \directsetup{*runtime:modules}        \to \everyjob % we could erase them afterwards % order can change

\appendtoks  \checkpreprocessor                    \to \everyjob

%appendtoks  \page[\v!last] \page                  \to \everybye % moved to core-job, we need to do this cleaner
\appendtoks  \ifarrangingpages\poparrangedpages\fi \to \everybye
\appendtoks  \registerfileinfo[end]\jobname        \to \everybye
\appendtoks  \savenofpages                         \to \everybye
\appendtoks  \savenofsubpages                      \to \everybye

\appendtoks  \closeutilities                       \to \everygoodbye
\appendtoks  \stopcopyingblocks                    \to \everygoodbye
\appendtoks  \closespecialfile                     \to \everygoodbye

\prependtoks \resetutilities                       \to \everystarttext % moved 28-02-2002
\prependtoks \loadtwopassdata                      \to \everystarttext % moved 28-02-2002
\appendtoks  \checkreferences                      \to \everystarttext % new   04-12-1999

% \appendtoks\everyjob\expandafter{\the\everyjob\checkpreprocessor}\to\everydump

% normally one does not want this to happen nested, maybe there
% is more; non public vars btw, will become conditionals

\ifx\writetoregisterfalse\undefined \else \appendtoks \writetoregisterfalse \to \everybeforeutilityread \fi
\ifx\writetolistfalse    \undefined \else \appendtoks \writetolistfalse     \to \everybeforeutilityread \fi
\ifx\notesenabledfalse   \undefined \else \appendtoks \notesenabledfalse    \to \everybeforeutilityread \fi

\protect \endinput