summaryrefslogtreecommitdiff
path: root/fonts/newpx/tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-08-22 03:01:06 +0000
committerNorbert Preining <norbert@preining.info>2023-08-22 03:01:06 +0000
commitcf3e954514eb50bea0335bdc97d6b76f80f5d03e (patch)
tree84960c9724915fd64626f3b8c532a671ea7e87f2 /fonts/newpx/tex
parentf4e4c48e897bec27fd8d07ba278c03c6f0c64336 (diff)
CTAN sync 202308220301
Diffstat (limited to 'fonts/newpx/tex')
-rw-r--r--fonts/newpx/tex/ly1minzpl.fd38
-rw-r--r--fonts/newpx/tex/newpx.sty107
-rw-r--r--fonts/newpx/tex/newpxtext.sty144
-rw-r--r--fonts/newpx/tex/ot1minzpl.fd38
-rw-r--r--fonts/newpx/tex/t1minzpl.fd38
-rw-r--r--fonts/newpx/tex/ts1zplsups.fd62
-rw-r--r--fonts/newpx/tex/unpxsym.fd9
7 files changed, 398 insertions, 38 deletions
diff --git a/fonts/newpx/tex/ly1minzpl.fd b/fonts/newpx/tex/ly1minzpl.fd
new file mode 100644
index 0000000000..df2b7e96f2
--- /dev/null
+++ b/fonts/newpx/tex/ly1minzpl.fd
@@ -0,0 +1,38 @@
+\ProvidesFile{ly1minzpl.fd}[2021/05/25 v1.0 font definition file for LY1/minzpl/TLF]
+
+\@ifundefined{ifzpl@sl}{\let\ifzpl@sl\iftrue}{}
+
+\expandafter\ifx\csname zpl@scaled\endcsname\relax
+ \global\let\zpl@scaled\@empty%
+\fi
+\gdef\zpl@lsfx{}
+\def\zpl@makelsfx{\ifzpl@largesc\gdef\zpl@lsfx{l}\fi}
+\ifdefined\zpl@largescfalse \zpl@makelsfx\fi
+\ifdefined\zpl@spacing \else\global\let\zpl@spacing\@empty\fi
+
+\DeclareFontFamily{LY1}{minzpl}{\zpl@spacing}
+\DeclareFontShape{LY1}{minzpl}{b}{sc}{<-> \zpl@scaled zpl-Bold-tlf-sc\zpl@lsfx-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{b}{n}{<-> \zpl@scaled zpl-Bold-tlf-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{b}{scit}{<-> \zpl@scaled zpl-BoldItalic-tlf-sc\zpl@lsfx-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{b}{it}{<-> \zpl@scaled zpl-BoldItalic-tlf-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{m}{sc}{<-> \zpl@scaled zpl-Regular-tlf-sc\zpl@lsfx-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{m}{n}{<-> \zpl@scaled zpl-Regular-tlf-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{m}{scit}{<-> \zpl@scaled zpl-Italic-tlf-sc\zpl@lsfx-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{m}{it}{<-> \zpl@scaled zpl-Italic-tlf-ly1}{}
+\DeclareFontShape{LY1}{minzpl}{bx}{sc}{<->ssub * minzpl/b/sc}{}
+\DeclareFontShape{LY1}{minzpl}{bx}{n}{<->ssub * minzpl/b/n}{}
+\DeclareFontShape{LY1}{minzpl}{bx}{scit}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{LY1}{minzpl}{bx}{it}{<->ssub * minzpl/b/it}{}
+\ifzpl@sl % point to real slanted fonts
+ \DeclareFontShape{LY1}{minzpl}{m}{sl}{<-> \zpl@scaled zpl-Slanted-tlf-ly1}{}
+ \DeclareFontShape{LY1}{minzpl}{b}{sl}{<-> \zpl@scaled zpl-BoldSlanted-tlf-ly1}{}
+ \DeclareFontShape{LY1}{minzpl}{bx}{sl}{<->ssub * minzpl/b/sl}{}
+\else %point to theorem font
+ \DeclareFontShape{LY1}{minzpl}{m}{sl}{<-> \zpl@scaled zplth-Italic-tlf-ly1}{}
+ \DeclareFontShape{LY1}{minzpl}{b}{sl}{<->ssub * minzpl/m/sl}{}
+ \DeclareFontShape{LY1}{minzpl}{bx}{sl}{<->ssub * minzpl/m/sl}{}
+\fi
+\DeclareFontShape{LY1}{minzpl}{b}{scsl}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{LY1}{minzpl}{bx}{scsl}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{LY1}{minzpl}{m}{scsl}{<->ssub * minzpl/m/scit}{}
+\endinput
diff --git a/fonts/newpx/tex/newpx.sty b/fonts/newpx/tex/newpx.sty
new file mode 100644
index 0000000000..1e6f1bfdd5
--- /dev/null
+++ b/fonts/newpx/tex/newpx.sty
@@ -0,0 +1,107 @@
+\NeedsTeXFormat{LaTeX2e}
+
+
+%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}
+\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]
+
+\message{`newpx'v\fileversion,\space\filedate\space Integrated\space loading\space of\space newpxmath\space and\space a\space text\space font
+\space for\space all\space latex\space engines\space (msharpe)}
+
+\RequirePackage{fontenc,fontaxes}
+\RequirePackage{ifthen,iftex,etoolbox,scalefnt,trimspaces}
+
+\forcsvlist{\listadd\zpl@mathlst}{vecsep,amsthm,nosubscriptcorrection,subscriptcorrection,varbb,vvarbb,nosymbolsc,noamssymbols,amssymbols,uprightscript,uprightGreek,slantedGreek,frenchmath,upint,smallerops,useBImacros,varg,varvw,noOT1,fracspacing,subscriptcorrectionfile}
+%\show\zpl@mathlst
+\RequirePackage{kvoptions}
+
+\DeclareDefaultOption{
+\xifinlist{\CurrentOptionKey}{\zpl@mathlst}
+{% true branch for xifinlist
+\expandafter\PassOptionsToPackage\expandafter{\CurrentOption}{newpxmath}}
+{% false branch for xifinlist
+%\xdef\zpl@Topt{\zpl@Topt \CurrentOption,}
+\expandafter\PassOptionsToPackage\expandafter%
+{\CurrentOption}{newpxtext}}
+\ifthenelse{\equal{scale}{\CurrentOptionKey} \OR \equal{scaled}{\CurrentOptionKey}}
+{% true branch for ifthenelse
+%\expandafter\PassOptionsToPackage\expandafter{\CurrentOption}{newpxmath}
+\edef\zpl@scale{\CurrentOptionValue}
+\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}
+
+\DeclareBoolOption{type1}%[true]{}% no effect now
+%{%\@nameuse{if#1}\zpl@otftextfalse\fi}
+
+\DeclareBoolOption{type1text}%[true]{} %no effect now
+%{% same as type1--use type1 for text
+%\@nameuse{if#1}\zpl@otftextfalse\fi}
+
+\DeclareBoolOption{nofontspec}%[true]{} % no effect
+%{\@nameuse{if#1}\zpl@nofontspectrue\fi}
+
+\ProcessKeyvalOptions{newpx}
+
+
+\RequirePackage{xstring}% must load this after \@for
+% Needed for \StrLeft and \StrRight
+
+%Enginecheck
+%iftex's \iftutex is true for LuaTeX and XeTeX
+\newif\ifzpl@otftext
+\iftutex\zpl@otftexttrue\fi
+%\def\zpl@Mopt{} % math options to pass
+%\def\zpl@Topt{} % text options to pass
+
+%\def\tx@divide#1#2{\strip@pt\dimexpr 1pt * (\dimexpr #1pt) / \dimexpr #2pt\relax\relax}
+%\newcommand*{\zpltext@rm}{} % not understood by libertinus-otf
+%\newcommand*{\zpltext@sf}{}% not understood by libertinus-otf
+
+
+
+\def\zpl@dfltTF{newpxtext} % the default text font package name
+\def\zpl@text{\let\zpl@TF=\zpl@dfltTF % the text font package name
+\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
+}
+\zpl@text % set the defaults%
+
+%\newcommand{\PassMathScale}{\ifzpl@iszero\gdef\zpltext@scale{\zplmath@scale}\gdef\zpltext@scaled{s*[\zpltext@scale]}\fi
+%\PassOptionsToPackage{scaled=\zpltext@scale}{\zpl@TF}
+%}
+
+
+\ifzpl@otftext
+ \ifzpl@otfmath %I
+ \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
+ \usepackage[]{newpxmath} % options will be as passed from newpx
+ \usepackage[no-math]{fontspec}
+ \usepackage{newpxtext}
+ \fi %ifzpl@otfmath
+ %\show\zpl@otftexttrue
+\else % not otftext
+ \typeout{IV}
+% IV, type1 tex and math
+ \renewcommand*{\rmdefault}{\zpl@minfam}% Roman and Bold for math
+ \usepackage{newpxmath} % options will be as passed from newpx
+ \usepackage{\zpl@TF} % should load tt and sans math before newpx
+\fi
+
+
+
+\endinput
diff --git a/fonts/newpx/tex/newpxtext.sty b/fonts/newpx/tex/newpxtext.sty
index 046df984b0..8df47a8fb1 100644
--- a/fonts/newpx/tex/newpxtext.sty
+++ b/fonts/newpx/tex/newpxtext.sty
@@ -8,8 +8,8 @@
% Text is now directed to an extension of TeXGyrePagella rather than ppl.
% 1.5 is first version of newpxtext to support both [pdf]latex and unicode latex.
-\def\fileversion{1.504}
-\def\filedate{2022/01/30}
+\def\fileversion{1.51}
+\def\filedate{2023/08/06}
\ProvidesPackage{newpxtext}[%
\filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for TeXGyrePagellaX]
@@ -18,7 +18,7 @@
\RequirePackage[T1]{fontenc}
\renewcommand*{\rmdefault}{zplTLF} % the default until end of preamble
\renewcommand*{\familydefault}{\rmdefault}
-\RequirePackage{ifxetex,ifluatex,xkeyval,etoolbox,textcomp}
+\RequirePackage{iftex,xkeyval,etoolbox,textcomp}
\RequirePackage{xstring,ifthen,scalefnt} % for \textfrac
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\DeclareEncodingSubset{TS1}{zpl*}{0}
@@ -30,14 +30,11 @@
% Engine check
\newif\ifzpl@otf
-\ifxetex
- \zpl@otftrue
-\else\ifluatex
- \zpl@otftrue
-\else % [pdf]LaTeX
- \zpl@otffalse
-\fi\fi
-
+\iftutex\zpl@otftrue
+%\else % [pdf]LaTeX
+% \zpl@otffalse
+\fi
+\def\zpl@divide#1#2{\strip@pt\dimexpr 1pt * (\dimexpr #1pt\relax) / \dimexpr #2pt\relax\relax}
%%%%%%%%%%%%%%%%%%
\IfFileExists{xkeyval.sty}{
\RequirePackage{xkeyval}
@@ -46,17 +43,17 @@
\let\ExecuteOptionsX\ExecuteOptions
\let\ProcessOptionsX\ProcessOptions
}
-%%%%Start Options
+%%%% Start Options
\newif\ifzpl@nomath\zpl@nomathfalse % load fontspec with no-math
\newif\ifzpl@lining\zpl@liningtrue
\newif\ifzpl@tabular\zpl@tabulartrue % default is tabular lining figures
\@ifundefined{ver@newpxmath.sty}{}{\zpl@nomathtrue}
\DeclareOptionX{type1}[true]{%
-\@nameuse{if#1}\zpl@otffalse\fi
+%\@nameuse{if#1}\zpl@otffalse\fi
}
\DeclareOptionX{nofontspec}[true]{%
-\@nameuse{if#1}\zpl@otffalse\fi
+%\@nameuse{if#1}\zpl@otffalse\fi
}
\DeclareOptionX{no-math}[true]{%
\@nameuse{if#1}\zpl@nomathtrue\fi
@@ -111,9 +108,9 @@
}
%Scale
-\newcommand*{\zpl@scale}{1} % actual scaled command in \zpl@scaled
-\DeclareOptionX{scale}{\renewcommand*{\zpl@scale}{#1}}
-\DeclareOptionX{scaled}{\renewcommand*{\zpl@scale}{#1}}
+\providecommand{\zpl@scale}{1} % actual scaled command in \zpl@scaled
+\DeclareOptionX{scale}{\def\zpl@scale{#1}}
+\DeclareOptionX{scaled}{\def\zpl@scale{#1}}
\newif\ifzpl@defaultsups
%\newif\ifzpl@adobesc % we don't use this exc. in fd, but may in future
@@ -158,13 +155,13 @@
\DeclareOptionX{shrink}{%
\def\zpl@shrink{#1}
}
-\def\zpl@defaultfeatures{}
\newcount\zpl@cnt \zpl@cnt=0
\newif\ifzpl@zeroslash
+\newif\ifzpl@notextnu
\def\zpl@thmlin{X} % default is to not change to lining
\def\zpl@noti{T}\def\zpl@nolo{T}
-\DeclareOptionX{defaultfeatures}{\def\zpl@defaultfeatures{#1}}
\DeclareOptionX{oldSS}{\advance\zpl@cnt 32 }
+\DeclareOptionX{notextnu}{\zpl@notextnutrue}
\DeclareOptionX{slashedzero}{\zpl@zeroslashtrue}
\DeclareOptionX{theoremfont}{\zpl@thrmtrue }
\DeclareOptionX{thmlining}{\edef\zpl@thmlin{l}}
@@ -177,8 +174,27 @@
\gdef\zpl@spc{.3em}\gdef\zpl@stretch{.2em}%
\gdef\zpl@shrink{.1em}\def\zpl@nolo{F}}
+\DeclareOptionX{sfracvcenter}{%
+\def\zpl@sfrVC{#1}}
+\DeclareOptionX{sfracvspacing}{%
+\def\zpl@sfrVS{#1}}
+\DeclareOptionX{sfracbarthick}{%
+\def\zpl@sfrTH{#1}}
+\DeclareOptionX{sfracscaling}{%
+\def\zpl@sfrSC{#1}}
+
\ProcessOptionsX\relax
+% for stacked fractions
+\@ifundefined{zpl@xht}{\def\zpl@xht{460}}{} % lowercase letters
+\@ifundefined{zpl@deht}{\def\zpl@deht{412}}{} % denominator figures ht
+\@ifundefined{zpl@nubase}{\def\zpl@nubase{270}}{} % baseline of numerators
+\@ifundefined{zpl@debase}{\def\zpl@debase{0}}{} % baseline of denoms
+\@ifundefined{zpl@sfrVC}{\def\zpl@sfrVC{335}}{}% vertical center of sfrac
+\@ifundefined{zpl@sfrVS}{\def\zpl@sfrVS{106}}{} % space above/below bar
+\@ifundefined{zpl@sfrTH}{\def\zpl@sfrTH{52}}{} % bar thickness
+\@ifundefined{zpl@sfrSC}{\def\zpl@sfrSC{.9}}{} % scale defigures by this
+
\def\re@DeclareTextSymbol#1#2#3{%
\let#1=\undefined
\DeclareTextSymbol{#1}{#2}{#3}}
@@ -189,7 +205,8 @@
\RequirePackage{fontspec}
\fi
- \ifxetex\XeTeXtracingfonts=1\fi
+ %\ifxetex\XeTeXtracingfonts=1\fi % causing unwanted warnings in Tectonic system
+
\ifluatex % avoid possibly uncorrected "system" fonts
\directlua{fonts.names.set_location_precedence{
"local", "texmf", "system" }}
@@ -219,7 +236,7 @@
\let\sufigures=\sustyle
\let\nustyle=\sustyle
\let\nufigures=\sustyle
-
+
\fa@naming@exception{figures}{{inferior}{proportional}}{inf}
\fa@naming@exception{figures}{{inferior}{tabular}}{inf}
% \def\infigures{\@nomath\infigures
@@ -260,7 +277,7 @@
\mbox{%
\ifthenelse{\not\equal{#1}{}}%Test for integer portion [optional #1]
{\textlf{#1}\kern.1em}{}%
- {\sustyle#2}% numerator
+ {\nustyle#2}% numerator
\StrRight{#2}{1}[\@digit@]%
% look for 1, 2, 6, 7
\ifcase\@digit@% 0
@@ -331,7 +348,7 @@
{\edef\zpl@dflt{\zpl@dflt StylisticSet={\zpl@lst} ,
}}{}
- \defaultfontfeatures{
+ \defaultfontfeatures[\zpl@base]{
Ligatures = TeX ,
Scale = \zpl@scale ,
Extension = .otf ,
@@ -375,7 +392,8 @@
\ifzpl@defaultsups %
\else
\ifzpl@KOMA
- %\let\textsuperscript\sustyle
+ \let\textsuperscript\sustyle
+ \setkomafont{footnotelabel}{\textsuperscript}
\else % NOT KOMA
\def\f@@tn@te{footnote}
\def\@makefnmark{%
@@ -444,14 +462,14 @@
\let\nustyle=\nufigures
\let\instyle=\infigures
\let\destyle=\defigures
+ \ifzpl@KOMA
+ \setkomafont{footnotereference}{\normalfont}
+ \else
+ \renewcommand{\footnotemarkfont}{\normalfont}
+ \fi
\ifzpl@defaultsups %
\else
- \usepackage{realscripts}
- \ifzpl@KOMA
- \setkomafont{footnotelabel}{\normalfont}
- \else
- \renewcommand\footnotemarkfont{\normalfont}
- \fi
+ \RequirePackage{realscripts}
\fi
% \ifzpl@scosf
% \edef\zpl@fnt{\expandafter\csname zpl\ifzpl@tabular T\fi OsF\endcsname}
@@ -491,13 +509,63 @@
}
\DeclareTextFontCommand{\textsu}{\sustyle}
\let\textsuperior\textsu
-\DeclareTextFontCommand{\textnu}{\nustyle}
- \let\textnumerator\textnu
+\DeclareTextFontCommand{\textnumerator}{\nustyle}
+ \ifzpl@notextnu\else\let\textnu=\textnumerator\fi
+ \let\textnum\textnumerator
\DeclareTextFontCommand{\textde}{\destyle}
\let\textdenominator\textde
\DeclareTextFontCommand{\textinf}{\instyle}
\let\textinferior\textinf
+\newdimen\zpl@sixem\zpl@sixem6pt % for checking if a number refers to ex
+\newdimen\zpl@y \newdimen\zpl@x
+
+% convert numerical entry that may be multiple of ex (<6) or em value
+\def\zpl@toex#1{\zpl@x#1pt \ifdim\zpl@x<\z@\zpl@y-\zpl@x\else\zpl@y\zpl@x\fi \ifdim\zpl@y>\zpl@sixem \zpl@x\dimexpr
+ 1pt * (\dimexpr #1pt\relax) / \dimexpr \zpl@xht pt\relax\relax\fi}
+
+\newdimen\zpl@tmpdima \newdimen\zpl@tmpdimb \newdimen\zpl@tmpdimc
+\newdimen\zpl@tmpdimd \newdimen\zpl@tmpdime \newdimen\zpl@tmpdimf
+\newdimen\zpl@dimA
+\newdimen\zpl@dimAA \newdimen\zpl@dimB \newdimen\zpl@dimBB
+\newdimen\zpl@dimC % vertical center
+% double cap letters for below bar, single cap for above
+
+\zpl@toex\zpl@sfrVC\zpl@dimC\zpl@x %Vertical center of fraction
+\zpl@toex\zpl@sfrTH\zpl@tmpdimb\zpl@x % bar thickness
+\zpl@tmpdime.5\zpl@tmpdimb % half bar thickness
+\zpl@toex\zpl@sfrVS\zpl@tmpdimc\zpl@x% vertical space
+\zpl@toex\zpl@deht\zpl@tmpdimd\zpl@x % height of unscaled figures
+\zpl@tmpdimd\zpl@sfrSC\zpl@tmpdimd % height of scaled figures
+\zpl@toex\zpl@debase\zpl@tmpdimf\zpl@x % unscaled baseline of de figures
+\zpl@toex\zpl@nubase\zpl@tmpdima\zpl@x % unscaled baseline of nu figures
+\zpl@tmpdima\zpl@sfrSC\zpl@tmpdima % scaled nu baseline
+\zpl@tmpdimf\zpl@sfrSC\zpl@tmpdimf % scaled de baseline
+\zpl@dimA\zpl@dimC
+\advance\zpl@dimA by \zpl@tmpdime % top of bar
+\zpl@dimAA\zpl@dimC
+\advance\zpl@dimAA by -\zpl@tmpdime % bottom of bar
+\zpl@dimB\zpl@dimA
+\advance\zpl@dimB by \zpl@tmpdimc % top figure baseline
+\advance\zpl@dimB by -\zpl@tmpdima
+\zpl@dimBB\zpl@dimAA
+\advance\zpl@dimBB by -\zpl@tmpdimc %
+\advance\zpl@dimBB by -\zpl@tmpdimd % bottom figure baseline
+\advance\zpl@dimBB by -\zpl@tmpdimf
+\newcommand*{\textsfrac}[3][]{% like \textsfrac[1]{23}{34}
+\mbox{%
+ \ifthenelse{\not\equal{#1}{}}%Test for integer portion [optional #1]
+ {\textlf{#1}\kern.12em}{}%
+ {\hmode@bgroup%
+\ooalign{%
+ \setbox0=\hbox{\scalefont{\zpl@sfrSC}\nustyle#2}%
+ \hfil \raise\strip@pt\zpl@dimB ex\box0\hfil \crcr%
+ \leaders\hrule height \strip@pt\zpl@dimA ex depth -\strip@pt\zpl@dimAA ex\hfill \crcr%
+ \setbox1=\hbox{\scalefont{\zpl@sfrSC}\destyle#3}%
+ \hfil\raise\strip@pt\zpl@dimBB ex\box1\hfil}%
+\egroup}}
+}
+
\AtEndPreamble{%
\ifzpl@otf
\ifzpl@lining
@@ -556,15 +624,23 @@
\fi % there just two possible figure styles for the theorem font
\newcommand*{\thdefault}{zplth-\zpl@thfigurestyle}
\normalfont
+\fi % type1
+% both
+\ifzpl@KOMA
+ \let\textsuperscript\textsu
+ \@ifpackageloaded{AB@authnote}{%
+ \renewcommand\AB@authnote[1]{\textsuperscript{#1}}
+ \renewcommand\AB@affilnote[1]{\textsuperscript{#1}}
+ }
\fi
-}
%both
\ifzpl@thrm
\@ifundefined{theoremstyle}{}{
\theoremstyle{plain}
\patchcmd{\th@plain}{\itshape}{\thfamily}{\message{Replaced itshape by thfamily in theorem style plain.}}{\message{Unable to replace itshape by thfamily in theorem style plain.}}
}
-\fi
+\fi
+}
% Define \oldstylenums, \liningnums ,\tabularnums and \proportionalnums
\ifzpl@otf
diff --git a/fonts/newpx/tex/ot1minzpl.fd b/fonts/newpx/tex/ot1minzpl.fd
new file mode 100644
index 0000000000..490d13ff73
--- /dev/null
+++ b/fonts/newpx/tex/ot1minzpl.fd
@@ -0,0 +1,38 @@
+\ProvidesFile{ot1minzpl.fd}[2021/05/25 v1.0 font definition file for OT1/minzpl/TLF]
+
+\@ifundefined{ifzpl@sl}{\let\ifzpl@sl\iftrue}{}
+
+\expandafter\ifx\csname zpl@scaled\endcsname\relax
+ \global\let\zpl@scaled\@empty%
+\fi
+\gdef\zpl@lsfx{}
+\def\zpl@makelsfx{\ifzpl@largesc\gdef\zpl@lsfx{l}\fi}
+\ifdefined\zpl@largescfalse \zpl@makelsfx\fi
+\ifdefined\zpl@spacing \else\global\let\zpl@spacing\@empty\fi
+
+\DeclareFontFamily{OT1}{minzpl}{\zpl@spacing}
+\DeclareFontShape{OT1}{minzpl}{b}{sc}{<-> \zpl@scaled zpl-Bold-tlf-sc\zpl@lsfx-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{b}{n}{<-> \zpl@scaled zpl-Bold-tlf-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{b}{scit}{<-> \zpl@scaled zpl-BoldItalic-tlf-sc\zpl@lsfx-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{b}{it}{<-> \zpl@scaled zpl-BoldItalic-tlf-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{m}{sc}{<-> \zpl@scaled zpl-Regular-tlf-sc\zpl@lsfx-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{m}{n}{<-> \zpl@scaled zpl-Regular-tlf-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{m}{scit}{<-> \zpl@scaled zpl-Italic-tlf-sc\zpl@lsfx-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{m}{it}{<-> \zpl@scaled zpl-Italic-tlf-ot1}{}
+\DeclareFontShape{OT1}{minzpl}{bx}{sc}{<->ssub * minzpl/b/sc}{}
+\DeclareFontShape{OT1}{minzpl}{bx}{n}{<->ssub * minzpl/b/n}{}
+\DeclareFontShape{OT1}{minzpl}{bx}{scit}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{OT1}{minzpl}{bx}{it}{<->ssub * minzpl/b/it}{}
+\ifzpl@sl % point to real slanted fonts
+ \DeclareFontShape{OT1}{minzpl}{m}{sl}{<-> \zpl@scaled zpl-Slanted-tlf-ot1}{}
+ \DeclareFontShape{OT1}{minzpl}{b}{sl}{<-> \zpl@scaled zpl-BoldSlanted-tlf-ot1}{}
+ \DeclareFontShape{OT1}{minzpl}{bx}{sl}{<->ssub * minzpl/b/sl}{}
+\else %point to theorem font
+ \DeclareFontShape{OT1}{minzpl}{m}{sl}{<-> \zpl@scaled zplth-Italic-tlf-ot1}{}
+ \DeclareFontShape{OT1}{minzpl}{b}{sl}{<->ssub * minzpl/m/sl}{}
+ \DeclareFontShape{OT1}{minzpl}{bx}{sl}{<->ssub * minzpl/m/sl}{}
+\fi
+\DeclareFontShape{OT1}{minzpl}{b}{scsl}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{OT1}{minzpl}{bx}{scsl}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{OT1}{minzpl}{m}{scsl}{<->ssub * minzpl/m/scit}{}
+\endinput
diff --git a/fonts/newpx/tex/t1minzpl.fd b/fonts/newpx/tex/t1minzpl.fd
new file mode 100644
index 0000000000..d320d7f8d4
--- /dev/null
+++ b/fonts/newpx/tex/t1minzpl.fd
@@ -0,0 +1,38 @@
+\ProvidesFile{t1minzpl.fd}[2021/05/25 v1.0 font definition file for T1/minzpl/TLF]
+
+\@ifundefined{ifzpl@sl}{\let\ifzpl@sl\iftrue}{}
+
+\expandafter\ifx\csname zpl@scaled\endcsname\relax
+ \global\let\zpl@scaled\@empty%
+\fi
+\gdef\zpl@lsfx{}
+\def\zpl@makelsfx{\ifzpl@largesc\gdef\zpl@lsfx{l}\fi}
+\ifdefined\zpl@largescfalse \zpl@makelsfx\fi
+\ifdefined\zpl@spacing \else\global\let\zpl@spacing\@empty\fi
+
+\DeclareFontFamily{T1}{minzpl}{\zpl@spacing}
+\DeclareFontShape{T1}{minzpl}{b}{sc}{<-> \zpl@scaled zpl-Bold-tlf-sc\zpl@lsfx-t1}{}
+\DeclareFontShape{T1}{minzpl}{b}{n}{<-> \zpl@scaled zpl-Bold-tlf-t1}{}
+\DeclareFontShape{T1}{minzpl}{b}{scit}{<-> \zpl@scaled zpl-BoldItalic-tlf-sc\zpl@lsfx-t1}{}
+\DeclareFontShape{T1}{minzpl}{b}{it}{<-> \zpl@scaled zpl-BoldItalic-tlf-t1}{}
+\DeclareFontShape{T1}{minzpl}{m}{sc}{<-> \zpl@scaled zpl-Regular-tlf-sc\zpl@lsfx-t1}{}
+\DeclareFontShape{T1}{minzpl}{m}{n}{<-> \zpl@scaled zpl-Regular-tlf-t1}{}
+\DeclareFontShape{T1}{minzpl}{m}{scit}{<-> \zpl@scaled zpl-Italic-tlf-sc\zpl@lsfx-t1}{}
+\DeclareFontShape{T1}{minzpl}{m}{it}{<-> \zpl@scaled zpl-Italic-tlf-t1}{}
+\DeclareFontShape{T1}{minzpl}{bx}{sc}{<->ssub * minzpl/b/sc}{}
+\DeclareFontShape{T1}{minzpl}{bx}{n}{<->ssub * minzpl/b/n}{}
+\DeclareFontShape{T1}{minzpl}{bx}{scit}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{T1}{minzpl}{bx}{it}{<->ssub * minzpl/b/it}{}
+\ifzpl@sl % point to real slanted fonts
+ \DeclareFontShape{T1}{minzpl}{m}{sl}{<-> \zpl@scaled zpl-Slanted-tlf-t1}{}
+ \DeclareFontShape{T1}{minzpl}{b}{sl}{<-> \zpl@scaled zpl-BoldSlanted-tlf-t1}{}
+ \DeclareFontShape{T1}{minzpl}{bx}{sl}{<->ssub * minzpl/b/sl}{}
+\else %point to theorem font
+ \DeclareFontShape{T1}{minzpl}{m}{sl}{<-> \zpl@scaled zplth-Italic-tlf-t1}{}
+ \DeclareFontShape{T1}{minzpl}{b}{sl}{<->ssub * minzpl/m/sl}{}
+ \DeclareFontShape{T1}{minzpl}{bx}{sl}{<->ssub * minzpl/m/sl}{}
+\fi
+\DeclareFontShape{T1}{minzpl}{b}{scsl}{<->ssub * minzpl/b/scit}{}
+\DeclareFontShape{T1}{minzpl}{m}{scsl}{<->ssub * minzpl/m/scit}{}
+\DeclareFontShape{T1}{minzpl}{bx}{scsl}{<->ssub * minzpl/b/scit}{}
+\endinput
diff --git a/fonts/newpx/tex/ts1zplsups.fd b/fonts/newpx/tex/ts1zplsups.fd
new file mode 100644
index 0000000000..f707d40534
--- /dev/null
+++ b/fonts/newpx/tex/ts1zplsups.fd
@@ -0,0 +1,62 @@
+\ProvidesFile{ts1zplsups.fd}[2023/08/09 v1.0]
+\expandafter\ifx\csname zpl@scaled\endcsname\relax
+ \global\let\zpl@scaled\@empty%
+\fi
+
+\DeclareFontFamily{TS1}{zplsups}{}
+\DeclareFontShape{TS1}{zplsups}{m}{n}{ %medium
+ <-> \zpl@scaled zplsups-Regular-ts1%
+}{}
+\DeclareFontShape{TS1}{zplsups}{m}{it}{ %italic
+ <-> \zpl@scaled zplsups-Italic-ts1%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{n}{ %bold
+ <-> \zpl@scaled zplsups-Bold-ts1%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{it}{ %bold italic
+ <-> \zpl@scaled zplsups-BoldItalic-ts1%
+}{}
+\DeclareFontShape{TS1}{zplsups}{m}{sl}{ %medium
+ <-> \zpl@scaled zplsups-Italic-ts1%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{sl}{ %medium
+ <-> \zpl@scaled zplsups-BoldItalic-ts1%
+}{}
+
+\DeclareFontShape{TS1}{zplsups}{m}{sc}{ %cap & small cap
+ <-> ssub * zplsups/m/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{m}{scit}{ %italic
+ <-> ssub * zplsups/m/it%
+}{}
+\DeclareFontShape{TS1}{zplsups}{m}{ui}{ %unslanted italic
+ <-> ssub * zplsups/m/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{sc}{ %bold extended cap & small cap
+ <-> ssub * zplsups/b/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{sl}{ %bold extended slanted
+ <-> ssub * zplsups/b/sl%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{it}{ %bold extended italic
+ <-> ssub * zplsups/b/it%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{scit}{ %bold extended italic
+ <-> ssub * zplsups/b/it%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{ui}{ %bold extended unslanted italic
+ <-> ssub * zplsups/b/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{bx}{n}{ %bold extended
+ <-> ssub * zplsups/b/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{sc}{ %bold cap & small cap
+ <-> ssub * zplsups/b/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{ui}{ %bold unslanted italic
+ <-> ssub * zplsups/b/n%
+}{}
+\DeclareFontShape{TS1}{zplsups}{b}{scit}{ %bold italic
+ <-> ssub * zplsups/b/it%
+}{}
+\endinput
diff --git a/fonts/newpx/tex/unpxsym.fd b/fonts/newpx/tex/unpxsym.fd
index 6f9e38c506..d82160bf06 100644
--- a/fonts/newpx/tex/unpxsym.fd
+++ b/fonts/newpx/tex/unpxsym.fd
@@ -1,16 +1,16 @@
%Filename: unpxsym.fd
-%Created by: tex px-drv
+%Created by: tex px-sym-drv
%Created using fontinst v1.933
%THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY
\ProvidesFile{unpxsym.fd}
- [2015/03/21 Fontinst v1.933 font definitions for U/npxsym.]
+ [2023/08/16 Fontinst v1.933 font definitions for U/npxsym.]
\expandafter\ifx\csname npxmath@scaled\endcsname\relax
- \let\npxmath@@scaled\@empty%
+ \global\let\npxmath@@scaled\@empty%
\else
- \edef\npxmath@@scaled{s*[\csname npxmath@scaled\endcsname]}%
+ \xdef\npxmath@@scaled{s*[\csname npxmath@scaled\endcsname]}%
\fi
\DeclareFontFamily{U}{npxsym}{}
@@ -25,4 +25,5 @@
\DeclareFontShape{U}{npxsym}{bx}{n}{<->ssub * npxsym/b/n}{}
+
\endinput