diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-01-02 18:19:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-01-02 18:19:00 +0100 |
commit | d7ea519b2d5db806f51bd9b3a93e97930d7539f5 (patch) | |
tree | 2e62c52367e4d031145c5739bd5917e6bedd38ce /tex/context/base/math-ini.mkiv | |
parent | 0b773dc1a75bfeab65367bc07de0ad574fd97b90 (diff) | |
download | context-d7ea519b2d5db806f51bd9b3a93e97930d7539f5.tar.gz |
beta 2013.01.02 18:19
Diffstat (limited to 'tex/context/base/math-ini.mkiv')
-rw-r--r-- | tex/context/base/math-ini.mkiv | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tex/context/base/math-ini.mkiv b/tex/context/base/math-ini.mkiv index 58650595f..a1f747a79 100644 --- a/tex/context/base/math-ini.mkiv +++ b/tex/context/base/math-ini.mkiv @@ -1069,6 +1069,19 @@ \textfont \fi\zerocount} % hm, can ie other value as well +\def\mathsmallstylefont#1% #1 is number (\normalmathstyle) + {\ifcase#1\relax + \scriptfont \or + \scriptfont \or + \scriptfont \or + \scriptfont \or + \scriptscriptfont \or + \scriptscriptfont \or + \scriptscriptfont \or + \scriptscriptfont \else + \scriptfont + \fi\zerocount} % hm, can ie other value as well + \def\mathstyleface#1% #1 is number (\normalmathstyle) {\ifcase#1 \textface \or @@ -1082,6 +1095,19 @@ \textface \fi} +\def\mathsmallstyleface#1% #1 is number (\normalmathstyle) + {\ifcase#1 + \scriptface \or + \scriptface \or + \scriptface \or + \scriptface \or + \scriptscriptface \or + \scriptscriptface \or + \scriptscriptface \or + \scriptscriptface \else + \scriptface + \fi} + \def\mathstylecommand#1#2#3% {\ifcase\normalmathstyle \expandafter#1\or @@ -1131,6 +1157,18 @@ {\normalexpanded{\vcenter\bgroup\vbox\bgroup $\triggermathstyle\normalmathstyle}\mathsurround\zeropoint#1$\egroup\egroup} +\unexpanded\def\setmathsmalltextbox#1#2#% + {\normalizebodyfontsize\m_math_text_choice_face{\mathsmallstyleface\normalmathstyle}% + \setbox#1#2\bgroup + \font_basics_switchtobodyfont\m_math_text_choice_face + \let\next} + +\unexpanded\def\setmathtextbox#1#2#% + {\normalizebodyfontsize\m_math_text_choice_face{\mathstyleface\normalmathstyle}% + \setbox#1#2\bgroup + \font_basics_switchtobodyfont\m_math_text_choice_face + \let\next} + %D Something similar can be used in the (re|)|definition of \type {\text}. This %D version is a variation on the one in the math module (see \type{m-math} and|/|or %D \type {m-newmat}). |