summaryrefslogtreecommitdiff
path: root/fonts/newtx/tex/newtxmath.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-28 03:00:29 +0000
committerNorbert Preining <norbert@preining.info>2019-12-28 03:00:29 +0000
commit1d29cc334a5a588ee0a0678be215be65df74d6aa (patch)
treee9a2aa82a482862f09a47184a1db0a57a16415cd /fonts/newtx/tex/newtxmath.sty
parent9e5fd640685233da79d1b74327f9fe3edf173471 (diff)
CTAN sync 201912280300
Diffstat (limited to 'fonts/newtx/tex/newtxmath.sty')
-rw-r--r--fonts/newtx/tex/newtxmath.sty36
1 files changed, 27 insertions, 9 deletions
diff --git a/fonts/newtx/tex/newtxmath.sty b/fonts/newtx/tex/newtxmath.sty
index 6676ec0b50..4e0d9868ed 100644
--- a/fonts/newtx/tex/newtxmath.sty
+++ b/fonts/newtx/tex/newtxmath.sty
@@ -11,8 +11,8 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.611}
-\def\filedate{2019/11/21}
+\def\fileversion{1.62}
+\def\filedate{2019/12/25}
\ProvidesPackage{newtxmath}[\filedate\space v\fileversion ]
\@ifundefined{newtxmathLoaded}{}{\endinput}
@@ -70,7 +70,7 @@
\newif\iftx@largelibfigs \newif\iftx@frenchm % french math
\newif\iftx@minion \newif\iftx@libaltvw \newif\iftx@bv \newif\iftx@ut
\newif\iftx@ba % new BaskervilleF fonts
-\newif\iftx@ch \newif\iftx@coch
+\newif\iftx@ch \newif\iftx@coch \newif\iftx@nc % NewCenturySchoolbook
\newif\iftx@ot % use OT1 for operators
\newif\iftx@ntxmath \tx@ntxmathtrue % default is Times operators and math italic
\newif\iftx@upint %default is sloped
@@ -83,7 +83,7 @@
\newif\iftx@sbc
%\newif\iftx@spc
\newif\iftx@isenh % the math style is enhanced and can make use of new macros
-% Currently (2019-10-15) only txmath, libertine, XCharter, ebgaramond, stickstoo and cochineal have been enhanced.
+% Currently (2019-12-11) only txmath, libertine, XCharter, ebgaramond, stickstoo, utopia, nc and cochineal have been enhanced.
\newif\iftx@cochf % switch to long f
\newif\iftx@cochrho % switch to long rho
%\show\rmdefault
@@ -95,6 +95,12 @@
\ifx\tx@rmdefault\@tx@ptm \tx@hastmtrue\fi\@ifundefined{ver@newtxtext.sty}{}{\tx@hastmtrue}
\@ifundefined{ver@tgtermes.sty}{}{\tx@hastmtrue}
\iftx@hastm\def\rmdefaultB{ntxtlf}\fi
+
+%\expandafter\ifx\csname qnc@scale\endcsname\relax
+%\else
+% \let\znc@scale=\qnc@scale % scale set by tgschola.sty
+%\fi
+
%
%\newcommand\enablesbcorrection{\tx@sbctrue\AtBeginDocument{\mathcode`\_=\string"8000 \catcode`\_=12\relax}}
%\newcommand\disablesbcorrection{\tx@sbcfalse\catcode`\_=8\relax}
@@ -229,6 +235,7 @@
\DeclareOption{noXchvw}{\tx@nozchvwtrue}
\DeclareOption{stix2}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
\DeclareOption{stickstoo}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
+\DeclareOption{nc}{\tx@nctrue\tx@ntxmathfalse} % added in 1.62
\DeclareOption{cochf}{\tx@cochftrue} % added in 1.604
\DeclareOption{cochrho}{\tx@cochrhotrue} % added in 1.604
\DeclareOption{alty}{\tx@XChaltytrue} % only in XCharter, added im 1.611
@@ -246,6 +253,8 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\iftx@stxtwo\tx@isenhtrue\else
\iftx@coch\tx@isenhtrue\else
\iftx@ut\tx@isenhtrue\else
+ \iftx@nc\tx@isenhtrue\else
+ \fi
\fi
\fi
\fi
@@ -394,10 +403,17 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\SetSymbolFont{letters}{bold}{OML}{ntxebgmi}{b}{it}
\DeclareFontSubstitution{OML}{ntxebgmi}{m}{it}
\else
- \def\tx@subs{newtx-subs.tex}
- \DeclareSymbolFont{letters}{OML}{ntxmi}{m}{it}
- \SetSymbolFont{letters}{bold}{OML}{ntxmi}{b}{it}
- \DeclareFontSubstitution{OML}{ntxmi}{m}{it}
+ \iftx@nc
+ \def\tx@subs{newtx-nc-subs.tex}
+ \DeclareSymbolFont{letters}{OML}{zncmi}{m}{it}
+ \SetSymbolFont{letters}{bold}{OML}{zncmi}{b}{it}
+ \DeclareFontSubstitution{OML}{zncmi}{m}{it}
+ \else
+ \def\tx@subs{newtx-subs.tex}
+ \DeclareSymbolFont{letters}{OML}{ntxmi}{m}{it}
+ \SetSymbolFont{letters}{bold}{OML}{ntxmi}{b}{it}
+ \DeclareFontSubstitution{OML}{ntxmi}{m}{it}
+ \fi
\fi
\fi
\fi
@@ -2413,9 +2429,11 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\iftx@varbb
\let\mathbb\vmathbb %\DeclareRobustCommand*{\mathbb}{\varmathbb}
\else
- \iftx@ams\else\let\mathbb\vmathbb\fi
+ \iftx@ams\else\let\mathbb\vmathbb \let\Bbbk=\vmathbb{k}\fi
\fi
\fi
+\DeclareRobustCommand{\Bbbk}{\mathbb{k}}
+
%\show\mathbb
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Extension (ntxex) Definition % largesymbols