summaryrefslogtreecommitdiff
path: root/fonts/newpx/tex/newpxtext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newpx/tex/newpxtext.sty')
-rw-r--r--fonts/newpx/tex/newpxtext.sty21
1 files changed, 16 insertions, 5 deletions
diff --git a/fonts/newpx/tex/newpxtext.sty b/fonts/newpx/tex/newpxtext.sty
index 937112b88c..23be56df16 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.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@scosf
\newif\ifzpl@largesc
\newif\ifzpl@helv \zpl@helvtrue % default is to load helvetica as sans serif font
+\newif\ifzpl@tt \zpl@tttrue % default is to load npxtt
\newif\ifzpl@thrm
\newif\ifzpl@sl
% new sups options
@@ -154,8 +155,10 @@
}
\DeclareOptionX{nohelv}[true]{%
\@nameuse{if#1}\zpl@helvfalse\fi}%
+\DeclareOptionX{nott}[true]{%
+\@nameuse{if#1}\zpl@ttfalse\fi}%
-\def\zpl@helvratio{.94}
+\providecommand\zpl@helvratio{.94}
\DeclareOptionX{helvratio}[0.94]{%
\def\zpl@helvratio{#1}
}
@@ -206,8 +209,16 @@
\def\zpl@sfrSC{#1}}
\ProcessOptionsX\relax
+
\ifzpl@supsflag%
\PackageWarningNoLine{newpxtext}{sups options no longer handled---use superiors package (v2) instead.}\fi
+
+\ifthenelse{\not\equal{\sfdefault}{cmss}}%
+ {\zpl@helvfalse}{}
+\ifthenelse{\not\equal{\ttdefault}{cmtt}}%
+ {\zpl@ttfalse}{}
+\ifzpl@helv\renewcommand*{\sfdefault}{qhv}\fi
+\ifzpl@tt\renewcommand*{\ttdefault}{npxtt}\fi
%\setlength{\zplsups@raise}{\zplsups@raised}
%\setlength{\zplsups@scale}{\zplsups@scaledval\p@}
%\zplsups@scale=\zpl@scale\zplsups@scale %
@@ -493,8 +504,8 @@
% \fi}%
% \fi
% \fi
- \ifzpl@helv\renewcommand*{\sfdefault}{qhv}\fi
- \renewcommand*{\ttdefault}{npxtt}
+% \ifzpl@helv\renewcommand*{\sfdefault}{qhv}\fi
+% \renewcommand*{\ttdefault}{npxtt}
\DeclareRobustCommand\thfamily % new family for theorem font
{\not@math@alphabet\thfamily\relax
\fontfamily\thdefault\selectfont}