texlive[68674] Master/texmf-dist: newpx (27oct23)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 27 21:56:22 CEST 2023


Revision: 68674
          https://tug.org/svn/texlive?view=revision&revision=68674
Author:   karl
Date:     2023-10-27 21:56:22 +0200 (Fri, 27 Oct 2023)
Log Message:
-----------
newpx (27oct23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/newpx/README
    trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.pdf
    trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
    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	2023-10-27 13:08:20 UTC (rev 68673)
+++ trunk/Master/texmf-dist/doc/fonts/newpx/README	2023-10-27 19:56:22 UTC (rev 68674)
@@ -1,10 +1,16 @@
 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.531 2023-10-25
+Current version: 1.532 2023-10-26
 
 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.532
+1. Changed all references to zplTLF to zpltlf and updated docs to
+reflect those changes.
+2. Corrected a number of bugs in newpx.sty and newpxtext.sty that were 
+preventing the proper handling of calls to a unicode math font.
+
 Changes in version 1.531
 Corrected the footnote marker issues so the footnote modifications now 
 work as expected in all LaTeX engines, and in the standard and AMS 

Modified: trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex	2023-10-27 13:08:20 UTC (rev 68673)
+++ trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex	2023-10-27 19:56:22 UTC (rev 68674)
@@ -311,7 +311,7 @@
 Supports  {\tt newpxmath} with an otf text font.
 \begin{verbatim}
 % Without newpx
-    \renewcommand*{\rmdefault}{zplTLF} % loads minimal version of text font for use in math
+    \renewcommand*{\rmdefault}{zpltlf} % loads minimal version of text font for use in math
     \usepackage[T1]{fontenc} % so operators can have accented letters
     \usepackage[list of math options]{newpxmath} % 
     \usepackage[no-math]{fontspec}
@@ -339,13 +339,13 @@
 \end{verbatim}
 which still works but is a bit less flexible than its modern form:
 \begin{verbatim}
-\renewcommand*{\rmdefault}{zplTLF}% minimal text family, Roman and Bold for math
+\renewcommand*{\rmdefault}{zpltlf}% minimal text family, Roman and Bold for math
 \usepackage[T1]{fontenc}
 \usepackage[<list of text and math options>]{newpx}
 \end{verbatim}
 which expands in the non-unicode case to
 \begin{verbatim}
-\renewcommand*{\rmdefault}{zplTLF}% minimal text family, Roman and Bold for math
+\renewcommand*{\rmdefault}{zpltlf}% minimal text family, Roman and Bold for math
 \usepackage[T1]{fontenc}
 \usepackage[<list of math options>]{newpxmath}
 \usepackage[<list of text options>]{newpxtext}
@@ -353,7 +353,7 @@
 For this arrangement, the math package needs information about the text font currently in force and the current typewriter and, possibly, the current sans serif font. The default Latin Modern text family would most likely not work well here for use as operators, \verb|\mathbf|, \verb|\mathtt| and the like. Dealing with the math part first allows you the flexibility of choosing different text fonts  for use in math than you will use for body text.
 \begin{verbatim}
 % Without newpx
-    \renewcommand*{\rmdefault}{zplTLF}% minimal text family, Roman and Bold for math
+    \renewcommand*{\rmdefault}{zpltlf}% minimal text family, Roman and Bold for math
     \usepackage[T1]{fontenc}
     \usepackage[<list of math options>]{newpxmath} % options will be as passed from newpx
     \usepackage{} % the chosen text package
@@ -360,7 +360,7 @@
     % should load tt and sans math before math
 % or, using newpx, where text font will be TeXGyrePagelleX
     % should load tt and sans math before newpx
-    \usepackage[T1]{fontenc} % math text font zplTLF by default
+    \usepackage[T1]{fontenc} % math text font zpltlf by default
     \usepackage[<list of text and math options>]{newpx} 
 \end{verbatim}
 \textsc{Notes:}
@@ -405,7 +405,7 @@
 \begin{verbatim}
 %\usepackage[greek.polutonico,english]{babel} % if using babel
 % next line calls fontspec and loads TeXGyrePagellaX otf
-\usepackage[theoremfont,trueslanted,largesc,p,osf]{newpxtext}
+\usepackage[otfmath,theoremfont,trueslanted,largesc,p,osf]{newpxtext}
 % set mono and sans opentype fonts
 %\usepackage{polyglossia} % must load after fontspec, if using polyglossia
 % polyglossia setup commands
@@ -425,7 +425,7 @@
 \begin{verbatim}
 %\usepackage[greek.polutonico,english]{babel} % if using babel
 % next line calls fontspec and loads TeXGyrePagellaX otf
-\usepackage[theoremfont,trueslanted,largesc,p,osf]{newpx}
+\usepackage[otfmath,theoremfont,trueslanted,largesc,p,osf]{newpx}
 % set mono and sans opentype fonts
 %\usepackage{polyglossia} % must load after fontspec, if using polyglossia
 % polyglossia setup commands
@@ -455,7 +455,7 @@
 
 \textsc{Example II: TeXGyrePagellaX Opentype + newpxmath (type1) + polyglossia + other Opentype.}
 \begin{verbatim}
-\renewcommand{\rmdefault}{zplTLF}% Roman and Bold PagellaX for math mode
+\renewcommand{\rmdefault}{zpltlf}% Roman and Bold PagellaX for math mode
 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
 % Next line loads amsmath, then loads amsthm
@@ -478,7 +478,7 @@
 \item The {\tt type1} option to {\tt cabin} is important, preventing it from loading {\tt fontspec}, which would lead to an {\tt option clash} error. \end{itemize}
 With {\tt newpx}, the above is equivalent to:
 \begin{verbatim}
-%\renewcommand{\rmdefault}{zplTLF}% Roman and Bold PagellaX for math mode
+%\renewcommand{\rmdefault}{zpltlf}% Roman and Bold PagellaX for math mode
 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
 % Next line loads amsmath, then loads amsthm
@@ -493,7 +493,7 @@
 
 \textsc{Example III: newpxtext type1 + newpxmath (type1) + polyglossia + other Opentype.}
 \begin{verbatim}
-\renewcommand{\rmdefault}{zplTLF}% Roman and Bold Pagella for math mode
+\renewcommand{\rmdefault}{zpltlf}% Roman and Bold Pagella for math mode
 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
 %Uncomment either the following line
@@ -541,9 +541,7 @@
 \usepackage{newpxtext}
 \usepackage[scaled=.85]{beramono}% used only by \mathtt, optional
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
-\usepackage{amsmath} % must be loaded before amsthm, if using amsthm
-\usepackage{amsthm}% load before newpxmath
-\usepackage[vvarbb]{newpxmath}
+\usepackage[amsthm,vvarbb]{newpxmath}
 \usepackage[scr=rsfso]{mathalpha} % optional
 \usepackage{bm}% load after all math to give access to bold math, optional
 %Now load the otf text fonts using fontspec---won't affect math
@@ -557,7 +555,7 @@
 \begin{verbatim}
 %load LaTeX text components before math
 \usepackage[T1]{fontenc} % affects only \mathrm, \mathbf etc
-\renewcommand{\rmdefault}{zplTLF}% Roman font for use in math mode
+\renewcommand{\rmdefault}{zpltlf}% Roman font for use in math mode
 \usepackage[scaled=.85]{beramono}% used only by \mathtt, optional
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
 \usepackage{amsmath} % must be loaded before amsthm
@@ -573,12 +571,12 @@
 \textsc{Example preamble using polyglossia:}
 
 \begin{verbatim}
-\renewcommand{\rmdefault}{zplTLF}% Roman and Bold for use in math mode
+\renewcommand{\rmdefault}{zpltlf}% Roman and Bold for use in math mode
 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
-\usepackage{amsmath} % must be loaded before amsthm
-\usepackage{amsthm}% load before newpxmath
-\usepackage[vvarbb]{newpxmath}
+%\usepackage{amsmath} % must be loaded before amsthm
+%\usepackage{amsthm}% load before newpxmath
+\usepackage[amsthm,vvarbb]{newpxmath}
 \usepackage[no-math]{newpxtext}% pass no-math option to fontspec
 % Fontspec will be loaded so that Opentype text fonts may be loaded
 \usepackage{polyglossia} % must load after fontspec
@@ -594,7 +592,7 @@
 \begin{itemize}
 \item
 \verb|\textfrac| works more precisely under unicode tex because it is possible to adjust kerning between all characters. The effect should not be very noticeable, at least in regular style. 
-\item {\tt sups}:  the package treats this differently in unicode LaTeX and pdflatex, with handling in the unicode case passed off to the {\tt realscripts} package where the footnote marker font is set to \verb|\normalfont|, meaning that superiors from the current (TeXGyrePagellaX) text font are employed.
+%\item {\tt sups}:  the package treats this differently in unicode LaTeX and pdflatex, with handling in the unicode case passed off to the {\tt realscripts} package where the footnote marker font is set to \verb|\normalfont|, meaning that superiors from the current (TeXGyrePagellaX) text font are employed.
 %\item The \verb|\footnote| macro has been changed and appears to function correctly in KOMA based packages, though for proper handling of multiple footnote markers it may be necessary to add the following line to your preamble:
 \begin{verbatim}
 \usepackage[multiple]{fontmisc}

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2023-10-27 13:08:20 UTC (rev 68673)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2023-10-27 19:56:22 UTC (rev 68674)
@@ -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 at scaled{\CurrentOptionValue}
 }{ % false branch for ifthenelse
 }}
-\newif\ifzpl at otfmath %\zpl at otfmathfalse % default is type1 math
-\DeclareBoolOption{otfmath}% defines \ifnewpx at otfmath
-\ifnewpx at otfmath\iftutex\zpl at otfmathtrue\fi\fi
-%\@nameuse{if#1}\iftutex\zpl at otfmathtrue\fi\fi}
+%\newif\ifzpl at otfmath %\zpl at otfmathfalse % default is type1 math
+\DeclareBoolOption{otfmath}% creates and inits \ifnewpx at otfmath 
+%{\@nameuse{if#1}\iftutex\zpl at otfmathtrue\fi\fi}
 
 \DeclareBoolOption{type1}%[true]{}% no effect now
 %{%\@nameuse{if#1}\zpl at 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 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
+\def\zpl at minfam{zpltlf} %roman font, tabular lining fd, used in math
 }
 \zpl at text % set the defaults%
 
@@ -79,16 +77,14 @@
 %\PassOptionsToPackage{scaled=\zpltext at scale}{\zpl at TF}
 %}
 
-
 \ifzpl at otftext
-  \ifzpl at otfmath %I
+  \ifnewpx at 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 at minfam} % Roman and Bold text for math
     \usepackage[]{newpxmath} % options will be as passed from newpx
     \usepackage[no-math]{fontspec}
     \usepackage{newpxtext}

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty	2023-10-27 13:08:20 UTC (rev 68673)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpxmath.sty	2023-10-27 19:56:22 UTC (rev 68674)
@@ -11,8 +11,8 @@
 % of glyph collisions.
 % These modifications are by Michael Sharpe, msharpe at ucsd dot edu
 
-\def\fileversion{1.51}
-\def\filedate{2023/08/04}
+\def\fileversion{1.532}
+\def\filedate{2023/10/26}
 \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	2023-10-27 13:08:20 UTC (rev 68673)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty	2023-10-27 19:56:22 UTC (rev 68674)
@@ -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.531}
-\def\filedate{2023/10/25}
+\def\fileversion{1.532}
+\def\filedate{2023/10/26}
 \ProvidesPackage{newpxtext}[%
 \filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for TeXGyrePagellaX]
 
@@ -53,7 +53,7 @@
 \newif\ifzpl at nomath\zpl at nomathfalse % load fontspec with no-math
 \newif\ifzpl at lining\zpl at liningtrue
 \newif\ifzpl at tabular\zpl at tabulartrue % default is tabular lining figures
-\@ifundefined{ver at newpxmath.sty}{}{\zpl at nomathtrue}
+%\@ifundefined{ver at newpxmath.sty}{}{\zpl at nomathtrue}
 
 \DeclareOptionX{type1}[true]{%
 %\@nameuse{if#1}\zpl at otffalse\fi
@@ -591,11 +591,11 @@
      \patchcmd{\maketitle}{\@textsuperscript{\normalfont\@thefnmark}}{\normalfont{\textsuperscript\@thefnmark}}{}{}
         \patchcmd{\maketitle}     
 {\hb at xt@1.8em}{\hb at xt@2.18em}{}{}
-	\fi
    \ifzpl at KOMA
       \setkomafont{footnotereference}{\normalfont\sustyle}
       \setkomafont{footnotelabel}{\normalfont\sustyle}
    \fi 
+  \fi
 
     \renewcommand*{\textcircled}[1]{\hmode at bgroup\ooalign{%
     \hfil \raise -.255ex\hbox{{%



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