texlive[73647] Master/texmf-dist: newpx (30jan25)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 30 22:09:07 CET 2025


Revision: 73647
          https://tug.org/svn/texlive?view=revision&revision=73647
Author:   karl
Date:     2025-01-30 22:09:06 +0100 (Thu, 30 Jan 2025)
Log Message:
-----------
newpx (30jan25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/newpx/README
    trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty
    trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
    trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty

Modified: trunk/Master/texmf-dist/doc/fonts/newpx/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/newpx/README	2025-01-30 00:42:04 UTC (rev 73646)
+++ trunk/Master/texmf-dist/doc/fonts/newpx/README	2025-01-30 21:09:06 UTC (rev 73647)
@@ -1,10 +1,13 @@
 This package, based initially on pxfonts, provides many fixes and enhancements to that package, splitting it in two parts---newpxtext and newpxmath---which may be run independently of one another. It provides scaling, improved metrics, and other options. For proper operation, the packages require that the packages newtxmath, pxfonts and TeXGyrePagella be installed and their map files enabled. The text package now relies on an extension of the TeXGyrePagella Type1 fonts that is provided with this package. The accompanying MANIFEST-newpx.txt provides details of the extension as requested by GUST-FONT-LICENSE.txt
 
-Current version: 1.539 2025-01-24
+Current version: 1.540 2025-01-29
 
 This material is subject to the LaTeX Project Public License. See http://www.ctan.org/license/lppl1.3
 for the details of that license.
 
+Changes in version 1.540
+Removed a \fi from newpx.sty that was interfering with proper operation.
+
 Changes in version 1.539
 1. Corrected a bug in processing math Blackboard Bold in the case where the argument
 is a macro other than \imath or \jmath. (Thanks, Romano Giannetti).

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2025-01-30 00:42:04 UTC (rev 73646)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2025-01-30 21:09:06 UTC (rev 73647)
@@ -1,9 +1,9 @@
 \NeedsTeXFormat{LaTeX2e}
 
-
+%\traceon
 %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.539}
-\def\filedate{2025/01/24}
+\def\fileversion{1.540}
+\def\filedate{2025/01/29}
 \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]
 
@@ -39,7 +39,7 @@
 
 %\newif\ifnewpx at otfmath %\zpl at otfmathfalse % default is type1 math
 \DeclareBoolOption{otfmath}% creates and inits \ifnewpx at otfmath 
-{\@nameuse{if#1}\iftutex\newpx at otfmathtrue\fi\fi}
+{\@nameuse{if#1}\iftutex\newpx at otfmathtrue\fi}
 \DeclareBoolOption{nohelv}% creates and inits \ifnewpx at nohelv 
 \DeclareBoolOption{nott}% creates and inits \ifnewpx at nott 
 
@@ -62,27 +62,11 @@
 %iftex's \iftutex is true for LuaTeX and XeTeX
 \newif\ifzpl at otftext
 \iftutex\zpl at otftexttrue\fi 
-%\def\zpl at Mopt{} % math options to pass
-%\def\zpl at Topt{} % text options to pass
 
-%\def\tx at divide#1#2{\strip at pt\dimexpr 1pt * (\dimexpr #1pt) / \dimexpr #2pt\relax\relax}
-%\newcommand*{\zpltext at rm}{} % not understood by libertinus-otf
-%\newcommand*{\zpltext at sf}{}% not understood by libertinus-otf
-
-
-\ifnewpx at otfmath\else
-\def\zpl at dfltTF{newpxtext} % the default text font package name
-\def\zpl at text{\let\zpl at TF=\zpl at dfltTF % the text font package name
-\def\zpl at MF{newpxmath} 
-%\def\zpl at id{0} % identifier for font properties
-%\def\zpl at sc{zpl at scale} % macro name for scale factor in font package 
-\def\zpl at minfam{zpltlf} %roman font, tabular lining fd, used in math
-}
-\zpl at text % set the defaults%
-\fi
 %\newcommand{\PassMathScale}{\ifzpl at iszero\gdef\zpltext at scale{\zplmath at scale}\gdef\zpltext at scaled{s*[\zpltext at scale]}\fi
 %\PassOptionsToPackage{scaled=\zpltext at scale}{\zpl at TF}
 %}
+
 \ifnewpx at otfmath
 \else % t1 math
    \ifthenelse{\not\equal{\sfdefault}{cmss}}%
@@ -95,40 +79,55 @@
       \@tempdima=\zpl at scale\p@
       \@tempdima=\newpx at helvratio\@tempdima%
       \edef\qhv at scale{\strip at pt\@tempdima}
-%    \else
-%      \PassOptionsToPackage{nohelv=true}{newtxtext}
-    \fi
+    \fi %\ifnewpx at nohelv
     \ifnewpx at nott\else%
       \renewcommand*{\ttdefault}{npxtt}
     \fi
-%    \ifthenelse{\not\equal{\newpx at helvratio}{.94}}%
-%      {\PassOptionsToPackage{helvratio=\newpx at helvratio}%
-%      {newtxtext}}{}
-%    \iftx at tt\else%
-%      \PassOptionsToPackage{nott=true}{newtxtext}\fi
+\fi %\ifnewpx at otfmath
 
-\fi
-\ifzpl at otftext
-  \ifnewpx at otfmath %
-  \typeout{I}
-    \usepackage[]{newpxtext} %may not load fontspec
-    \usepackage{unicode-math} %loads amsmath
-  \else %II: type1 math, otftext
-  \typeout{II}
-    \renewcommand*{\rmdefault}{\zpl at minfam} % Roman and Bold text for math
-    \usepackage[]{newpxmath} % options will be as passed from newpx
-    \usepackage[no-math]{fontspec}
-    \usepackage{newpxtext}
-  \fi %ifzpl at otfmath
-  %\show\zpl at otftexttrue
-\else % not otftext
-  \typeout{IV}
-% IV, type1 tex and math
-    \renewcommand*{\rmdefault}{\zpl at minfam}% Roman and Bold for math
-     \usepackage{newpxmath} % options will be as passed from newpx
-    \usepackage{\zpl at TF} % should load tt and sans math before newpx
-\fi
-\show\xxx
+\ifthenelse{\boolean{zpl at otftext}}
+	{%then clause ( otf text )
+	\ifthenelse{\boolean{newpx at otfmath}}
+		{% then clause (otf math and text)
+		\typeout{I}
+    	\usepackage[]{newpxtext} %may not load fontspec
+    	\usepackage{unicode-math} %loads amsmath
+		}
+		{% else clause (t1 math, otf text)
+		\typeout{II}
+    	\renewcommand*{\rmdefault}{minzpl} % Roman and Bold text for math
+    	\usepackage[]{newpxmath} % options will be as passed from newpx
+    	\usepackage[no-math]{fontspec}
+    	\usepackage{newpxtext}
+		}
+	}
+    {%else clause  (type1 text and math)
+    \typeout{IV}
+    \renewcommand*{\rmdefault}{minzpl}% Roman and Bold for math
+    \usepackage{newpxmath} % options will be as passed from newpx
+    \usepackage{newpxtext} % should load tt and sans math before newpx
+    }
 
+%\ifzpl at otftext\else % not otftext so type1 tex and math
+%    \typeout{IV}
+%    \renewcommand*{\rmdefault}{minzpl}% Roman and Bold for math
+%    \usepackage{newpxmath} % options will be as passed from newpx
+%    \usepackage{newpxtext} % should load tt and sans math before newpx
+%\fi
+%% The above covers the non-tutex case
+%\ifzpl at otftext
+%  \ifnewpx at otfmath %
+%    \typeout{I}
+%    \usepackage[]{newpxtext} %may not load fontspec
+%    \usepackage{unicode-math} %loads amsmath
+%  \else %II: type1 math, otftext
+%    \typeout{II}
+%    \renewcommand*{\rmdefault}{minzpl} % Roman and Bold text for math
+%    \usepackage[]{newpxmath} % options will be as passed from newpx
+%    \usepackage[no-math]{fontspec}
+%    \usepackage{newpxtext}
+%  \fi %ifzpl at otfmath
+%\fi %ifzpl at otftext
 
+
 \endinput

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty	2025-01-30 00:42:04 UTC (rev 73646)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty	2025-01-30 21:09:06 UTC (rev 73647)
@@ -11,8 +11,8 @@
 % of glyph collisions.
 % These modifications are by Michael Sharpe, msharpe at ucsd dot edu
 
-\def\fileversion{1.539}
-\def\filedate{2025/01/24}
+\def\fileversion{1.540}
+\def\filedate{2025/01/29}
 \ProvidesPackage{newpxmath}
 	[\filedate\space v\fileversion]
 

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty	2025-01-30 00:42:04 UTC (rev 73646)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty	2025-01-30 21:09:06 UTC (rev 73647)
@@ -7,9 +7,9 @@
 % Added scaled keyword and osf option;
 % 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.539}
-\def\filedate{2025/01/24}
+%
+\def\fileversion{1.540}
+\def\filedate{2025/01/29}
 \ProvidesPackage{newpxtext}[%
 \filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for TeXGyrePagellaX]
 
@@ -396,6 +396,7 @@
 \def\useproportional{\zpl at tabularfalse}
 \@onlypreamble\useproportional
 
+%\traceon
 \ifzpl at otf
   \def\zpl at dflt{}
   \ifzpl at zeroslash\edef\zpl at dflt{Numbers = SlashedZero , 
@@ -774,6 +775,7 @@
   \newcommand*{\thdefault}{zplth-\zpl at thfigurestyle}
   \normalfont
 \fi % type1
+
 % both
 \ifzpl at KOMA
 	\@ifpackageloaded{AB at authnote}{%



More information about the tex-live-commits mailing list.