summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/fonts/ams-math.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/csplain/fonts/ams-math.tex')
-rw-r--r--Master/texmf-dist/tex/csplain/fonts/ams-math.tex19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/csplain/fonts/ams-math.tex b/Master/texmf-dist/tex/csplain/fonts/ams-math.tex
index 9f204220f8d..260194c8a18 100644
--- a/Master/texmf-dist/tex/csplain/fonts/ams-math.tex
+++ b/Master/texmf-dist/tex/csplain/fonts/ams-math.tex
@@ -6,6 +6,7 @@
\message{FONT: AMS math fonts -
\string\mathchardef's prepared, 12 math families preloaded.}
+\let\mathpreloaded=A
% After \input ams-math
%
@@ -153,8 +154,7 @@
% but now there is a different usage of the \resizefont:
% \def\dgsize{17pt}\def\sizespec{at\dgsize}\resizefont\tenrm
-\ifx\corrmsizes\undefined \def\corrmsizes#1{}\fi % see tx-math for the
- % example of \corrmsizes
+\def\corrmsizes#1{} % see tx-math for the example of \corrmsizes
%% macros:
@@ -170,7 +170,7 @@
\font\tmp=\whichtfm{#2} at \dgsize \scriptfont#1=\tmp
\let\dgsize=\sizemsscript
\font\tmp=\whichtfm{#2} at\dgsize \scriptscriptfont#1=\tmp
- \ptmunit=1pt
+ \ptmunit=1pt \let\dgsize=\undefined
}
\def\setmathfamily #1#2{\corrmsizes{#1}%
\let\dgsize=\sizemtext
@@ -179,7 +179,7 @@
\font\tmp = \specfontname #2 at\sizemscript \scriptfont#1=\tmp
\let\dgsize=\sizemsscript
\font\tmp = \specfontname #2 at\sizemsscript \scriptscriptfont#1=\tmp
- \ptmunit=1pt
+ \ptmunit=1pt \let\dgsize=\undefined
}
\def\specfontname #1{\expandafter \ignoreatpt \fontname #1 \relax}
\def\ignoreatpt #1 #2\relax{\whichtfm{#1}}
@@ -189,12 +189,13 @@
\ifnum\count0<`#3 \advance\count0 by1 \advance\count1 by1 \repeat
\count0=\tmp \count1=\tmpa
}
-\def\whichtfm #1{\expandafter \ifx\csname#1:reg\endcsname\relax
+\def\whichtfm #1{\ifx\dgsize\undefined #1\else
+ \expandafter \ifx\csname#1:reg\endcsname\relax
#1%
\else
\expandafter\expandafter\expandafter \dowhichtfm
\csname #1:reg\expandafter\endcsname
- \fi
+ \fi \fi
}
\def\dowhichtfm #1 #2 {%
\ifdim\dgsize<#2pt #1\expandafter\ignoretfm\else \expandafter\dowhichtfm
@@ -218,7 +219,7 @@
\def\sizemtext{#1\ptmunit}\def\sizemscript{#2\ptmunit}%
\def\sizemsscript{#3\ptmunit}%
}
-\newdimen\ptmunit \ptmunit=1pt % used in \corrmsizes
+\ifx\ptmunit\undefined \csname newdimen\endcsname\ptmunit\fi \ptmunit=1pt % used in \corrmsizes
\setmathsizes[10/7/5]
@@ -507,3 +508,7 @@
% end of ams-math.tex file
+Jul. 2013: \ifx\dgsize\undefined added
+Jul. 2013: \def\corrmsizes{} without dependency
+Aug. 2013: \mathpreloaded introduced
+Aug. 2013: \newdimen\ptmunit only once