blob: 04535bec6f6bc3dbc069ba8ce2c0114cf0b7fe56 (
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
|
%D \module
%D [ file=core-ini,
%D version=2003.12.01,
%D title=\CONTEXT\ Core Macros,
%D subtitle=Additional Initialization,
%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 / Additional Initialization}
%D We will move more code to here, so that we become less dependent of the
%D orde in which modules are loaded.
\unprotect
\everypar \emptytoks
\neverypar \emptytoks
\appendtoks \flushnotes \to \everypar
\appendtoks \synchronizesidefloats \to \everypar
\appendtoks \checkinlinedirection \to \everypar
\appendtoks \checkindentation \to \everypar
\appendtoks \showparagraphnumber \to \everypar
\appendtoks \flushmargincontents \to \everypar
\appendtoks \flushcommentanchors \to \everypar
\appendtoks \synchronizenotes \to \everypar
\appendtoks \OTRSETshowstatus \to \everypar
\appendtoks \flushpostponedbookmark \to \everypar
\appendtoks \registerparoptions \to \everypar
\appendtoks \flushsyncpositions \to \everypar
\appendtoks \flushpostponednodedata \to \everypar
\appendtoks \dohandlerepeatdelimitedtext \to \everypar
\appendtoks \insertparagraphintro \to \everypar
\appendtoks \flushpostponedbookmark \to \neverypar
\appendtoks \flushpostponedbookmark \to \everylistentry
\appendtoks \flushnotes \to \everydisplay
\appendtoks \adjustsidefloatdisplaylines \to \everydisplay
\appendtoks \flushsyncpositions \to \everyheadstart
\appendtoks \flushsyncresets \to \everyendoftextbody
\appendtoks \ignorespaces \to \everybeginofpar
\appendtoks \removeunwantedspaces \to \everyendofpar
%appendtoks \strut \to \everyendofpar % option ?
\appendtoks \flushsyncresets \to \everyendofpar
\appendtoks \setlastlinewidth \to \everyendofpar % must happen before endgraf
\appendtoks \endgraf \to \everyendofpar
% Todo: verbatim, xml, tex, move code to here
\ifx\normalcompound\undefined \let\normalcompound=| \fi
\appendtoks \catcode`|=\@@active \let|\normalcompound \to \everyTEXinputmode
\appendtoks \catcode`|=\@@letter \to \everyXMLinputmode
\protect \endinput
|