texlive[69792] Master/texmf-dist: newpx (10feb24)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 11 03:15:23 CET 2024


Revision: 69792
          https://tug.org/svn/texlive?view=revision&revision=69792
Author:   karl
Date:     2024-02-11 03:15:22 +0100 (Sun, 11 Feb 2024)
Log Message:
-----------
newpx (10feb24)

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/newpxtext.sty

Modified: trunk/Master/texmf-dist/doc/fonts/newpx/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/newpx/README	2024-02-11 02:14:22 UTC (rev 69791)
+++ trunk/Master/texmf-dist/doc/fonts/newpx/README	2024-02-11 02:15:22 UTC (rev 69792)
@@ -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.535 2024-01-10
+Current version: 1.536 2024-02-09
 
 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.536
+Corrected handling of sans and tt fonts in math mode using newpx.sty.
+
 Changes in version 1.535
 Moved all sups code from newpxtext.sty to superiors.sty, version 2, 
 leaving a stub in place to warn users of the associated newpxtext options 

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	2024-02-11 02:14:22 UTC (rev 69791)
+++ trunk/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex	2024-02-11 02:15:22 UTC (rev 69792)
@@ -188,7 +188,7 @@
 \item \verb|\coloneq| and \verb|\eqcolon| now point to the correct glyphs;
 \item The problem with the {\tt ogonek} accent  and tabular environments (bad definition of \verb|\k|) is fixed;
 \item The default encoding for \textsf{newpxtext} is now T$1$, but support is offered also for OT$1$ and LY$1$. As some add-on packages are available only in T$1$, that seems the best current choice.
-\item The font collection used for rendering text is based on TeXGyrePagella with a number of additions, denoted by TeXGyrePagellaX. The superior figures in this addition are set by default to render footnote markers. (It is also possible customize footnote markers by redefining \verb|\thefootnote| after loading {\tt newpxtext.sty}.) 
+\item The font collection used for rendering text is based on TeXGyrePagella with a number of additions, named TeXGyrePagellaX. The superior figures in this addition are set by default to render footnote markers. (It is also possible customize footnote markers by redefining \verb|\thefootnote| after loading {\tt newpxtext.sty}.) 
 \item Sans serif is by default taken from TeXGyreHeros, a Helvetica clone, and by default at 94\% of the scale factor (set by {\tt scaled}, default value {\tt1}). The option {\tt helvratio=.98} will change that to 98\%. As of newpx version 1.415, there is an option {\tt nohelv} that prevents this loading.
 \item New math accents such as \verb|\widearc| have been introduced in tandem with the {\tt newtx} package, where they are documented.
 \end{itemize}
@@ -240,7 +240,7 @@
 The option \texttt{osf} instructs the text fonts to use old-style figures \oldstylenums{1234567890} rather than the default lining figures \texttlf{1234567890}. As of version 1.23, {\tt newpxtext} loads initially with lining figures so the math package uses lining figures in math mode. The option {\tt osf} switches to old-style figures in text at the very end of the preamble, forcing the use of oldstyle figures in text, but not math. In previous versions, it was necessary to run 
 \verb|\useosf| after loading math. This is no longer required, but does no harm. See the discussion in section 4 for further details. A similar macro \verb|\useproportional| makes proportional figures the default outside math mode. 
 
-As of version 1.415, the new option {\tt nohelv} prevents the loading of the default Helvetica clone as the sans serif text font. If you use this option, you should load your preferred sans serif font, otherwise you will be left with the Computer Modern default, most likely in a metafont version if not using OT1 encoding.
+As of version 1.415, the new option {\tt nohelv} prevents the loading of the default Helvetica clone as the sans serif text font. If you use this option, you should load your preferred sans serif font, otherwise you will be left with the Computer Modern default.
 
 As described above, option {\tt largesc} increases the size of small caps by  5.33\% so that the height matches that of the small caps in Linotype Palatino.
 
@@ -304,7 +304,7 @@
 \textsc{Notes:}
 \begin{itemize}
 \item Your option list to {\tt newpx[text]} must include {\tt otfmath}, otherwise it will load {\tt newpxmath}. 
-\item With {\tt newpx}, you may specify some other otf text fonts.
+\item With {\tt newpx}, you may specify certain other otf text fonts.
 \item After loading {\tt newpx}, you must load your chosen unicode math package with \verb|\setmathfont{}[]|.
 \item
 You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
@@ -331,6 +331,7 @@
 \textsc{Notes:}
 \begin{itemize}
 \item No special option requirements---this is the default case.
+\item You may load sans and tt text fonts before {\tt newpx} if you wish \verb|\mathsf| and \verb|\mathsf| not to be the default {\tt helvetica} and {\tt cmtt}.
 \item Babel, if used, must be specified before {\tt newpx[text]}, which loads {\tt fontspec}.
 \item Polyglossia, if used, must be specified after loading {\tt newpx[text]}.
 \end{itemize}
@@ -372,7 +373,6 @@
     \usepackage[<list of text and math options>]{newpx} 
 \end{verbatim}
 \textsc{Notes:}
-
 \begin{itemize}
 \item Babel, if used, must be specified before {\tt newpx[text]}.
 \end{itemize}

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2024-02-11 02:14:22 UTC (rev 69791)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpx.sty	2024-02-11 02:15:22 UTC (rev 69792)
@@ -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.533}
-\def\filedate{2023/11/08}
+\def\fileversion{1.536}
+\def\filedate{2024/02/09}
 \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]
 
@@ -14,9 +14,10 @@
 \RequirePackage{ifthen,iftex,etoolbox,scalefnt,trimspaces}
 
 \forcsvlist{\listadd\zpl at mathlst}{vecsep,amsthm,nosubscriptcorrection,subscriptcorrection,varbb,vvarbb,nosymbolsc,noamssymbols,amssymbols,uprightscript,uprightGreek,slantedGreek,frenchmath,upint,smallerops,useBImacros,varg,varvw,noOT1,fracspacing,subscriptcorrectionfile,curlybraces}
-%\show\zpl at mathlst
+
 \RequirePackage{kvoptions}
-
+\def\zpl at scale{1}
+\def\newpx at helvratio{1}
 \DeclareDefaultOption{
 \xifinlist{\CurrentOptionKey}{\zpl at mathlst}
 {% true branch for xifinlist
@@ -27,14 +28,18 @@
 {\CurrentOption}{newpxtext}}
 \ifthenelse{\equal{scale}{\CurrentOptionKey} \OR \equal{scaled}{\CurrentOptionKey}}
 {% true branch for ifthenelse
-%\expandafter\PassOptionsToPackage\expandafter{\CurrentOption}{newpxmath}
-\edef\zpl at scale{\CurrentOptionValue}
-\edef\npxmath at scaled{\CurrentOptionValue}
+\xdef\zpl at scale{\CurrentOptionValue}
+\xdef\npxmath at scaled{\CurrentOptionValue}
 }{ % false branch for ifthenelse
-}}
+\ifthenelse{\equal{helvratio}{\CurrentOptionKey}}
+{% true branch
+\xdef\newpx at helvratio{\CurrentOptionValue}
+}{}}}
 %\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{nohelv}% creates and inits \ifnewpx at nohelv 
+\DeclareBoolOption{nott}% creates and inits \ifnewpx at nott 
 
 \DeclareBoolOption{type1}%[true]{}% no effect now
 %{%\@nameuse{if#1}\zpl at otftextfalse\fi}
@@ -76,7 +81,31 @@
 %\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}}%
+      {\newpx at nohelvtrue}{}
+    \ifthenelse{\not\equal{\ttdefault}{cmtt}}%
+      {\newpx at notttrue}{}
+    \ifnewpx at nohelv
+    \else
+      \renewcommand*{\sfdefault}{qhv}
+      \@tempdima=\zpl at scale\p@
+      \@tempdima=\newpx at helvratio\@tempdima%
+      \edef\qhv at scale{\strip at pt\@tempdima}
+%    \else
+%      \PassOptionsToPackage{nohelv=true}{newtxtext}
+    \fi
+    \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
 \ifzpl at otftext
   \ifnewpx at otfmath %
   \typeout{I}

Modified: trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty	2024-02-11 02:14:22 UTC (rev 69791)
+++ trunk/Master/texmf-dist/tex/latex/newpx/newpxtext.sty	2024-02-11 02:15:22 UTC (rev 69792)
@@ -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.535}
-\def\filedate{2024/01/10}
+\def\fileversion{1.536}
+\def\filedate{2024/02/09}
 \ProvidesPackage{newpxtext}[%
 \filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for TeXGyrePagellaX]
 
@@ -123,6 +123,7 @@
 \newif\ifzpl at scosf
 \newif\ifzpl at largesc 
 \newif\ifzpl at helv \zpl at helvtrue % default is to load helvetica as sans serif font
+\newif\ifzpl at tt \zpl at tttrue % default is to load npxtt
 \newif\ifzpl at thrm
 \newif\ifzpl at sl 
 % new sups options
@@ -154,8 +155,10 @@
 }
 \DeclareOptionX{nohelv}[true]{%
 \@nameuse{if#1}\zpl at helvfalse\fi}%
+\DeclareOptionX{nott}[true]{%
+\@nameuse{if#1}\zpl at ttfalse\fi}%
 
-\def\zpl at helvratio{.94}
+\providecommand\zpl at helvratio{.94}
 \DeclareOptionX{helvratio}[0.94]{%
 \def\zpl at helvratio{#1}
 }
@@ -206,8 +209,16 @@
 \def\zpl at sfrSC{#1}}
 
 \ProcessOptionsX\relax
+
 \ifzpl at supsflag%
 \PackageWarningNoLine{newpxtext}{sups options no longer handled---use superiors package (v2) instead.}\fi
+
+\ifthenelse{\not\equal{\sfdefault}{cmss}}%
+  {\zpl at helvfalse}{}
+\ifthenelse{\not\equal{\ttdefault}{cmtt}}%
+  {\zpl at ttfalse}{}
+\ifzpl at helv\renewcommand*{\sfdefault}{qhv}\fi
+\ifzpl at tt\renewcommand*{\ttdefault}{npxtt}\fi
 %\setlength{\zplsups at raise}{\zplsups at raised}
 %\setlength{\zplsups at scale}{\zplsups at scaledval\p@}
 %\zplsups at scale=\zpl at scale\zplsups at scale %
@@ -493,8 +504,8 @@
 %          \fi}%
 %        \fi
 %    \fi
-  \ifzpl at helv\renewcommand*{\sfdefault}{qhv}\fi
-  \renewcommand*{\ttdefault}{npxtt}
+%  \ifzpl at helv\renewcommand*{\sfdefault}{qhv}\fi
+%  \renewcommand*{\ttdefault}{npxtt}
   \DeclareRobustCommand\thfamily % new family for theorem font
         {\not at math@alphabet\thfamily\relax
          \fontfamily\thdefault\selectfont}



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