Skip to content

Commit

Permalink
test2e cfg to revert to OT1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Dec 6, 2019
1 parent 0b4d14b commit 90edeb6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions support/test2e.cfg
@@ -0,0 +1,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

0 comments on commit 90edeb6

Please sign in to comment.