[latex3-commits] [git/LaTeX3-latex3-latex2e] tuformat: test2e cfg to revert to OT1 (90edeb6c)

David Carlisle d.p.carlisle at gmail.com
Fri Dec 6 22:21:28 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : tuformat
Link       : https://github.com/latex3/latex2e/commit/90edeb6c020faf024dc08613ed9e58732002e3e5

>---------------------------------------------------------------

commit 90edeb6c020faf024dc08613ed9e58732002e3e5
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Dec 6 21:21:28 2019 +0000

    test2e cfg to revert to OT1


>---------------------------------------------------------------

90edeb6c020faf024dc08613ed9e58732002e3e5
 support/test2e.cfg | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/support/test2e.cfg b/support/test2e.cfg
new file mode 100644
index 00000000..a2fea607
--- /dev/null
+++ b/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 at defaultsubs\@defaultsubs
+\let\TEST at lde\LastDeclaredEncoding
+\input {omlenc.def}
+\input  {t1enc.def}
+\input {ot1enc.def}
+\input {omsenc.def}
+\let\@defaultsubs\TEST at defaultsubs
+
+\let\LastDeclaredEncoding\TEST at lde
+
+
+\def\TU at test{TU}
+\edef\TU at testb{\f at encoding}
+\edef\TU at testc{\encodingdefault}
+
+% remove TU from the list checked at begin document
+{
+\toks@{}
+\def\cdp at elt#1#2#3#4{%
+\def\@tempb{#1}%
+\ifx\@tempb\TU at test\else
+\toks@\expandafter{\the\toks@\cdp at elt{#1}{#2}{#3}{#4}}%
+\fi}
+\cdp at list
+\xdef\cdp at list{\the\toks@}
+}
+
+% If the current or default encodings are TU set them to OT1
+\ifx\TU at test\TU at testb
+  \def\f at encoding{OT1}
+\fi
+\ifx\TU at test\TU at 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





More information about the latex3-commits mailing list