diff options
author | Norbert Preining <norbert@preining.info> | 2023-10-31 03:02:14 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-10-31 03:02:14 +0000 |
commit | 8e5b71c9e0334c62d993c6d03d9a5a98ca59518b (patch) | |
tree | 9677032880e3306dd8b3ad5a9418ae5440b683d2 /fonts/newtx/tex/newtxmath.sty | |
parent | 8647e4164dd0349eb19a3068ec19c135647e1b4c (diff) |
CTAN sync 202310310302
Diffstat (limited to 'fonts/newtx/tex/newtxmath.sty')
-rw-r--r-- | fonts/newtx/tex/newtxmath.sty | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/fonts/newtx/tex/newtxmath.sty b/fonts/newtx/tex/newtxmath.sty index aca652f572..2a32fec003 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.723} -\def\filedate{2023/07/30} +\def\fileversion{1.725} +\def\filedate{2023/09/14} \ProvidesPackage{newtxmath}[\filedate\space v\fileversion ] \@ifundefined{newtxmathLoaded}{}{\endinput} @@ -95,13 +95,13 @@ \edef\tx@encdefault{\encodingdefault} \tx@ottrue % default is to use OT1 operators \let\rmdefaultB\rmdefault -\newif\iftx@hastm +\newif\iftx@hastm % true means a times text package \ifx\tx@rmdefault\@tx@ptm \tx@hastmtrue\fi \@ifundefined{ver@newtxtext.sty}{}{\tx@hastmtrue} \@ifundefined{ver@tgtermes.sty}{}{\tx@hastmtrue} -\iftx@hastm\def\rmdefaultB{minntx}\fi -% test if tm is loaded minimally as with XeLaTeX newtxmath -\ifthenelse{\equal{\rmdefault}{minntx}}{\tx@hastmtrue\def\rmdefaultB{minntx}}{} +\@ifundefined{ver@newtx.sty}{}{\ifnum\ntx@id=0 \tx@hastmtrue\fi} +%\iftx@hastm\def\rmdefaultB{minntx}\fi +%\ifthenelse{\equal{\rmdefault}{minntx}}{\tx@hastmtrue\def\rmdefaultB{minntx}}{} %\expandafter\ifx\csname qnc@scale\endcsname\relax %\else % \let\znc@scale=\qnc@scale % scale set by tgschola.sty @@ -196,6 +196,7 @@ %\newif\iftx@legacycolonsyms \newif\iftx@subsfile +\newif\ifntx@pfigs % default is false---use tabular in math %\@ifpackageloaded{newtx}% %{\@for\ntx@x:=\ntx@textlst\do{\DeclareOption{\ntx@x}{}}}{} \DeclareOption{subscriptcorrectionfile}{\def\tx@subs{#1}\tx@subsfiletrue} @@ -260,12 +261,11 @@ \DeclareOption{internaldigits}{\tx@digitstrue} \DeclareOption{noOT1}{\tx@nootonetrue} \DeclareOption{amsthm}{\ntx@amsthmtrue} - +\DeclareOption{propmathfigs}{\ntx@pfigstrue} \ExecuteOptions{% amssymbols,uprightGreek,nosubscriptcorrection} \ProcessOptions\relax - \newif\iftx@lbtn \iftx@libertine\tx@lbtntrue\else\iftx@libertinus% \tx@lbtntrue\fi\fi @@ -357,6 +357,10 @@ amssymbols,uprightGreek,nosubscriptcorrection} % altnu, liby and largelibfigs valid only with libertin[e,us] \iftx@lbtn\else\tx@altnufalse\tx@largelibfigsfalse\tx@libyfalse\fi % Use existing text fonts for operators, mathrm, etc +\iftx@ntxmath + \iftx@hastm\def\rmdefaultB{minntx}\fi + \ifthenelse{\equal{\rmdefault}{minntx}}{\tx@hastmtrue\def\rmdefaultB{minntx}}{} +\fi \iftutex \iftx@lbtn \ifx\tx@rmdefault\cmr@default @@ -1187,7 +1191,7 @@ amssymbols,uprightGreek,nosubscriptcorrection} \DeclareMathSymbol{\rVec@h}{\mathrel}{symbols}{198}% vector head \DeclareMathSymbol{\rVec@x}{\mathrel}{symbols}{199}% vector extension %% borrow interfacefrom esvect -\def\vv{\@ifstar{\vvstar}{\txvec}} +\protected\def\vv{\@ifstar{\vvstar}{\txvec}} \def\vvstar#1#2{{\txvec{#1}}_{\mkern-1mu\relax#2}} %% \newcommand{\txvec}{\mathpalette{\overVec@\Vecfill@}} |