summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/cont-new.mkxl
blob: 38ea1049232b899026242b9edd7d7f0bb7f24714 (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
%D \module
%D   [       file=cont-new,
%D        version=1995.10.10,
%D          title=\CONTEXT\ Miscellaneous Macros,
%D       subtitle=New Macros,
%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.

% \normalend % uncomment this to get the real base runtime

\newcontextversion{2023.06.04 18:54}

%D This file is loaded at runtime, thereby providing an excellent place for hacks,
%D patches, extensions and new features. There can be local overloads in cont-loc
%D (which has always been the case) and experimental code in cont-exp (which is also
%D so old that I need to remind myself to check it occasionally, so here is the
%D reminder).

% \enabletrackers[pages.timing]
% \enabletrackers[system.usage=summary]

\unprotect

\writestatus\m!system{beware: some patches loaded from cont-new.mkiv}

%D I need to verify if this indeed will make it into \type {math-ini.mkiv}, that is:
%D does Alan use it?

\ifdefined\t \else \permanent\protected\def\t{\mathortext\text\mathtext} \fi
\ifdefined\w \else \permanent\protected\def\w{\mathortext\word\mathword} \fi

\appendtoks
    \enforced\aliased\let\t\mathtext
    \enforced\aliased\let\w\mathword
\to \everymathematics

% so we need to be able to load modules in ini mode

\pushoverloadmode
    % charts needs these
    \overloaded\unletfrozen\name % for now
    \mutable\let\name\name
    \mutable\let\text\text
    \overloaded\frozen\let\type\type
\popoverloadmode

%D We're done.

\protect \endinput