diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/newpx/newpx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/newpx/newpx.sty | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/newpx/newpx.sty b/Master/texmf-dist/tex/latex/newpx/newpx.sty index 1e6f1bfdd5b..f83d2c746c0 100644 --- a/Master/texmf-dist/tex/latex/newpx/newpx.sty +++ b/Master/texmf-dist/tex/latex/newpx/newpx.sty @@ -2,8 +2,8 @@ %Package to simplify loading of newpxmath with a text font family such as newpxtext for all latex engines, or for newpxtext and an otf math package. -\def\fileversion{1.51} -\def\filedate{2023/08/04} +\def\fileversion{1.532} +\def\filedate{2023/10/26} \ProvidesPackage{newpx}[% \filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for newpxmath and newpxtext, or for newpxtext and an otf math package] @@ -32,10 +32,9 @@ \edef\npxmath@scaled{\CurrentOptionValue} }{ % false branch for ifthenelse }} -\newif\ifzpl@otfmath %\zpl@otfmathfalse % default is type1 math -\DeclareBoolOption{otfmath}% defines \ifnewpx@otfmath -\ifnewpx@otfmath\iftutex\zpl@otfmathtrue\fi\fi -%\@nameuse{if#1}\iftutex\zpl@otfmathtrue\fi\fi} +%\newif\ifzpl@otfmath %\zpl@otfmathfalse % default is type1 math +\DeclareBoolOption{otfmath}% creates and inits \ifnewpx@otfmath +%{\@nameuse{if#1}\iftutex\zpl@otfmathtrue\fi\fi} \DeclareBoolOption{type1}%[true]{}% no effect now %{%\@nameuse{if#1}\zpl@otftextfalse\fi} @@ -49,7 +48,6 @@ \ProcessKeyvalOptions{newpx} - \RequirePackage{xstring}% must load this after \@for % Needed for \StrLeft and \StrRight @@ -71,7 +69,7 @@ \def\zpl@MF{newpxmath} %\def\zpl@id{0} % identifier for font properties %\def\zpl@sc{zpl@scale} % macro name for scale factor in font package -\def\zpl@minfam{zplTLF} %roman font, tabular lining fd, used in math +\def\zpl@minfam{zpltlf} %roman font, tabular lining fd, used in math } \zpl@text % set the defaults% @@ -79,16 +77,14 @@ %\PassOptionsToPackage{scaled=\zpltext@scale}{\zpl@TF} %} - \ifzpl@otftext - \ifzpl@otfmath %I + \ifnewpx@otfmath % \typeout{I} \usepackage[]{newpxtext} %may not load fontspec - \RequirePackage{fontspec} % just in case \usepackage{unicode-math} %loads amsmath \else %II: type1 math, otftext \typeout{II} - \renewcommand*{\rmdefault}{zplTLF} % Roman and Bold text for math + \renewcommand*{\rmdefault}{\zpl@minfam} % Roman and Bold text for math \usepackage[]{newpxmath} % options will be as passed from newpx \usepackage[no-math]{fontspec} \usepackage{newpxtext} |