/
test2e.cfg
56 lines (45 loc) · 1.09 KB
/
test2e.cfg
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
% if not Unicode TeX skip this customisation
\ifx\Umathchar\undefined
\expandafter\endinput
\fi
% defaults
\long\def\rmdefault{cmr}
\long\def\sfdefault{cmss}
\long\def\ttdefault{cmtt}
% additional subst
\DeclareFontFamily{TU}{cmr}{}
\DeclareFontShape{TU}{cmr}{m}{n} {<->sub * lmr/m/n}{}
\let\TEST@defaultsubs\@defaultsubs
\let\TEST@lde\LastDeclaredEncoding
\input {omlenc.def}
\input {t1enc.def}
\input {ot1enc.def}
\input {omsenc.def}
\let\@defaultsubs\TEST@defaultsubs
\let\LastDeclaredEncoding\TEST@lde
\def\TU@test{TU}
\edef\TU@testb{\f@encoding}
\edef\TU@testc{\encodingdefault}
% remove TU from the list checked at begin document
{
\toks@{}
\def\cdp@elt#1#2#3#4{%
\def\@tempb{#1}%
\ifx\@tempb\TU@test\else
\toks@\expandafter{\the\toks@\cdp@elt{#1}{#2}{#3}{#4}}%
\fi}
\cdp@list
\xdef\cdp@list{\the\toks@}
}
% If the current or default encodings are TU set them to OT1
\ifx\TU@test\TU@testb
\def\f@encoding{OT1}
\fi
\ifx\TU@test\TU@testc
\long\def\encodingdefault{OT1}
\fi
% if a font has already been selected select the new \normalfont
\expandafter\ifx\the\font\nullfont
\else
\normalfont
\fi