summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/newpx/newpxmath.sty')
-rw-r--r--Master/texmf-dist/tex/latex/newpx/newpxmath.sty43
1 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/newpx/newpxmath.sty b/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
index af9a28bbb69..3c5e7e2dcd9 100644
--- a/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
+++ b/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
@@ -11,11 +11,10 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.5}
-\def\filedate{2021/12/04}
+\def\fileversion{1.51}
+\def\filedate{2023/08/04}
\ProvidesPackage{newpxmath}
[\filedate\space v\fileversion]
-%\@ifundefined{newpxmathLoaded}{}{\endinput}
\message{`newpxmath' v\fileversion, \filedate\space Math macros based on pxfonts (msharpe)}
@@ -138,7 +137,8 @@
%px@AppendToks\toks0(to:)\px@tA \px@AppendToks\fi(to:)\px@tB}
-\let\npxmath@scaled\@empty
+%\let\npxmath@scaled\@empty
+\define@key{npxmath}{scale}[1.0]{\def\npxmath@scaled{#1}}
\define@key{npxmath}{scaled}[1.0]{\def\npxmath@scaled{#1}}
\def\npxmath@vecsep{.25ex}
\define@key{npxmath}{vecsep}[.25ex]{\def\npxmath@vecsep{#1}}
@@ -173,6 +173,8 @@
\DeclareOption{upint}{\px@upinttrue}
\DeclareOption{smallerops}{\px@smopstrue}
\DeclareOption{noOT1}{\px@nootonetrue}
+\newif\ifpx@amsthm
+\DeclareOption{amsthm}{\px@amsthmtrue}
\DeclareOption{fracspacing}{%
\def\setSYdimens{%
\fontdimen 8\font=0.789\fontdimen6\font % was 0.677 of a quad
@@ -181,6 +183,14 @@
\ExecuteOptions{%
amssymbols,uprightGreek}
\ProcessOptions*
+
+\ifpx@amsthm
+ \RequirePackage{amsthm}
+ \typeout{amsthm loaded}
+\else
+ \typeout{amsthm NOT loaded}
+\fi
+
% Check if xy is loaded
\AtEndPreamble{%
\ifpx@sbc
@@ -1373,12 +1383,12 @@ $\m@th\hfil #2#3\hfil$\crcr}}}}
\re@DeclareMathSymbol{\nsqsupseteq}{\mathrel}{symbolsC}{65}
\re@DeclareMathSymbol{\coloneqq}{\mathrel}{symbolsC}{66}
\re@DeclareMathSymbol{\eqqcolon}{\mathrel}{symbolsC}{67}
-%\re@DeclareMathSymbol{\coloneq}{\mathrel}{symbolsC}{68}
-%\re@DeclareMathSymbol{\eqcolon}{\mathrel}{symbolsC}{69}
-\re@DeclareMathSymbol{\Coloneqq}{\mathrel}{symbolsC}{70}
-\re@DeclareMathSymbol{\Eqqcolon}{\mathrel}{symbolsC}{71}
-\re@DeclareMathSymbol{\Coloneq}{\mathrel}{symbolsC}{72}
-\re@DeclareMathSymbol{\Eqcolon}{\mathrel}{symbolsC}{73}
+\re@DeclareMathSymbol{\colondash}{\mathrel}{symbolsC}{68}
+\re@DeclareMathSymbol{\dashcolon}{\mathrel}{symbolsC}{69}
+\re@DeclareMathSymbol{\Coloneq}{\mathrel}{symbolsC}{70}
+\re@DeclareMathSymbol{\Eqcolon}{\mathrel}{symbolsC}{71}
+\re@DeclareMathSymbol{\Colondash}{\mathrel}{symbolsC}{72}
+\re@DeclareMathSymbol{\Dashcolon}{\mathrel}{symbolsC}{73}
\re@DeclareMathSymbol{\strictif}{\mathrel}{symbolsC}{74}
\re@DeclareMathSymbol{\strictfi}{\mathrel}{symbolsC}{75}
\re@DeclareMathSymbol{\strictiff}{\mathrel}{symbolsC}{76}
@@ -2541,4 +2551,17 @@ $\m@th\hfil #2#3\hfil$\crcr}}}}
\pdfglyphtounicode{transpose}{1D40}
\pdfglyphtounicode{hermitconj}{22B9}
\fi
+
+% For users of older newpxmath
+\AtBeginDocument{%
+\providecommand*\Coloneqq{\Coloneq}
+\providecommand*\Eqqcolon{\Eqcolon}
+\providecommand*\Coloneq{\Colondash}
+\providecommand*\Eqcolon{\Dashcolon}}
+
+% Fix for use with siunitx and option noOT1
+\ifpx@nootone%
+ \AtEndPreamble{%
+ \@ifpackageloaded{siunitx} {\DeclareSIUnit\ohm{\text{\ensuremath\upOmega}}}{}}
+\fi
\endinput