summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-13 23:17:17 +0000
committerKarl Berry <karl@freefriends.org>2012-07-13 23:17:17 +0000
commit1dc1616ebcf1c314a5a546725898542810280310 (patch)
treeb6bb04ca37616bccdf67552f5afd6c200a3ec279 /Master/texmf-dist/tex/latex/newtx/newtxmath.sty
parent50b580f0458334eb21a6441d314893e79dc206ea (diff)
newtx 1.00 (3jul12)
git-svn-id: svn://tug.org/texlive/trunk@27033 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/newtx/newtxmath.sty')
-rw-r--r--Master/texmf-dist/tex/latex/newtx/newtxmath.sty52
1 files changed, 33 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/newtx/newtxmath.sty b/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
index c21a84482a9..979e8da078c 100644
--- a/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
+++ b/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
@@ -10,8 +10,8 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{0.95}
-\def\filedate{2012/05/26}
+\def\fileversion{0.99}
+\def\filedate{2012/06/25}
\ProvidesPackage{newtxmath}
[\filedate\space v\fileversion]
\@ifundefined{ntxmathLoaded}{}{\endinput}
@@ -33,10 +33,12 @@
\newif\iftx@ams \newif\iftx@slantedG \newif\iftx@cmint \newif\iftx@braces
\newif\iftx@libertine \newif\iftx@varbb \newif\iftx@vvarbb \newif\iftx@symbolsC
\tx@symbolsCtrue
+\newif\iftx@minion
\DeclareOption{varbb}{\tx@varbbtrue}
\DeclareOption{vvarbb}{\tx@vvarbbtrue}
\DeclareOption{nosymbolsc}{\tx@symbolsCfalse}
\DeclareOption{libertine}{\tx@libertinetrue}
+\DeclareOption{minion}{\tx@miniontrue}
\DeclareOption{cmintegrals}{\tx@cminttrue}
\DeclareOption{cmbraces}{\tx@bracestrue}
\DeclareOption{noamssymbols}{\tx@amsfalse}
@@ -46,23 +48,30 @@
\ExecuteOptions{%
amssymbols,uprightGreek}
\ProcessOptions*
-% No varg option with option libertine
+% No varg option with option libertine or option minion
\iftx@libertine\ifx\X@s@v@rg\undefined\else\let\X@s@v@rg\@undefined\fi\fi
+\iftx@minion\ifx\X@s@v@rg\undefined\else\let\X@s@v@rg\@undefined\fi\fi
% Use existing text fonts for operators, mathrm, etc
\DeclareSymbolFont{operators}{\encodingdefault}{\rmdefault}{m}{n}
-\SetSymbolFont{operators}{bold}{\encodingdefault}{\rmdefault}{b}{n}
+\iftx@libertine
+ \SetSymbolFont{operators}{bold}{\encodingdefault}{\rmdefault}{z}{n}
+\else
+ \SetSymbolFont{operators}{bold}{\encodingdefault}{\rmdefault}{b}{n}
+\fi
\def\operator@font{\mathgroup\symoperators}
-\DeclareSymbolFontAlphabet{\mathrm}{operators}
-\DeclareMathAlphabet{\mathbf}{\encodingdefault}{\rmdefault}{b}{n}
-\DeclareMathAlphabet{\mathit}{\encodingdefault}{\rmdefault}{m}{it}
-\SetMathAlphabet{\mathit}{bold}{\encodingdefault}{\rmdefault}{b}{it}
-
-
\DeclareMathAlphabet{\mathsf}{\encodingdefault}{\sfdefault}{m}{n}
-\SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}
-
+\DeclareMathAlphabet{\mathit}{\encodingdefault}{\rmdefault}{m}{it}
\DeclareMathAlphabet{\mathtt}{\encodingdefault}{\ttdefault}{m}{n}
+\DeclareSymbolFontAlphabet{\mathrm}{operators}
+\iftx@libertine
+ \DeclareMathAlphabet{\mathbf}{\encodingdefault}{\rmdefault}{z}{n}
+ \SetMathAlphabet{\mathit}{bold}{\encodingdefault}{\rmdefault}{z}{it}
+\else
+ \DeclareMathAlphabet{\mathbf}{\encodingdefault}{\rmdefault}{b}{n}
+ \SetMathAlphabet{\mathit}{bold}{\encodingdefault}{\rmdefault}{b}{it}
+\fi
+\SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}
\SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{\ttdefault}{b}{n}
@@ -74,17 +83,23 @@ amssymbols,uprightGreek}
\SetSymbolFont{letters}{bold}{OML}{nxlmi}{b}{it}
\DeclareFontSubstitution{OML}{nxlmi}{m}{it}
\else
- \DeclareSymbolFont{letters}{OML}{ntxmi}{m}{it}
- \SetSymbolFont{letters}{bold}{OML}{ntxmi}{b}{it}
- \DeclareFontSubstitution{OML}{ntxmi}{m}{it}
+ \iftx@minion
+ \DeclareSymbolFont{letters}{OML}{zmnmi}{m}{it}
+ \SetSymbolFont{letters}{bold}{OML}{zmnmi}{b}{it}
+ \DeclareFontSubstitution{OML}{zmnmi}{m}{it}
+ \else
+ \DeclareSymbolFont{letters}{OML}{ntxmi}{m}{it}
+ \SetSymbolFont{letters}{bold}{OML}{ntxmi}{b}{it}
+ \DeclareFontSubstitution{OML}{ntxmi}{m}{it}
+ \fi
\fi
%%%%%%%%%%%%%%%%%
% Math Italic A %
%%%%%%%%%%%%%%%%%
+% untxmia.fd makes switch in libertine case
\DeclareSymbolFont{lettersA}{U}{ntxmia}{m}{it}
\SetSymbolFont{lettersA}{bold}{U}{ntxmia}{b}{it}
-%\DeclareSymbolFont{boldlettersA}{U}{ntxmi}{b}{it}% can be used directly by \bm
\DeclareFontSubstitution{U}{ntxmia}{m}{it}
\DeclareSymbolFontAlphabet{\mathfrak}{lettersA}
@@ -120,8 +135,7 @@ amssymbols,uprightGreek}
\DeclareSymbolFont{AMSb}{U}{ntxsyb}{m}{n}
\SetSymbolFont{AMSb}{bold}{U}{ntxsyb}{b}{n}
- %\DeclareSymbolFont{boldAMSb}{U}{ntxsyb}{b}{n}% can be used directly by \bm
- \DeclareFontSubstitution{U}{ntxsyb}{m}{n}
+ \DeclareFontSubstitution{U}{ntxsyb}{m}{n}
\DeclareSymbolFontAlphabet{\mathbb}{AMSb}
\fi
@@ -1083,7 +1097,7 @@ amssymbols,uprightGreek}
% \expandafter\mathchar\ntx@char
%}
\iftx@vvarbb
- \let\mathbb\vvarmathbb
+ \let\mathbb\vvmathbb
\else
\iftx@varbb
\let\mathbb\varmathbb