diff options
Diffstat (limited to 'fonts/newpx/tex/newpxtext.sty')
-rw-r--r-- | fonts/newpx/tex/newpxtext.sty | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/fonts/newpx/tex/newpxtext.sty b/fonts/newpx/tex/newpxtext.sty index 776533b974..9abba0ef57 100644 --- a/fonts/newpx/tex/newpxtext.sty +++ b/fonts/newpx/tex/newpxtext.sty @@ -8,8 +8,8 @@ % Modified the definition of \k to bypass problem with grouping. % Text is now directed to an extension of TeXGyrePagella rather than ppl. -\def\fileversion{1.415} -\def\filedate{2021/03/22} +\def\fileversion{1.42} +\def\filedate{2021/05/20} \ProvidesPackage{newpxtext}[\filedate\space v\fileversion] \message{`newpxtext' v\fileversion, \filedate\space Text macros taking advantage of TeXGyre Pagella and its extensions (msharpe)} @@ -41,6 +41,7 @@ \define@boolkey{zpl}{largesc}[true]{% \csname zpl@largesc#1\endcsname} \newif\ifzpl@thrm +\newif\ifzpl@sl \define@key{zpl}{helvratio}[0.94]{\def\zpl@helvratio{#1}} \define@key{zpl}{scaled}[1.0]{\def\zpl@scaled{s*[#1]}% \def\zpl@scale{#1}} @@ -56,6 +57,7 @@ \DeclareOption{lining}{\edef\zpl@figurestyle{lf}} \DeclareOption{lf}{\edef\zpl@figurestyle{lf}} \DeclareOption{theoremfont}{\zpl@thrmtrue} +\DeclareOption{trueslanted}{\zpl@sltrue} \DeclareOption{oldstyle}{\useosf} \DeclareOption{osf}{\useosf} \DeclareOption{tabular}{\edef\zpl@figurealign{t}} @@ -158,7 +160,7 @@ \newtheoremstyle{plain} {\medskipamount} % ABOVESPACE, was \topsep {\medskipamount} % BELOWSPACE, was \topsep - {\slshape} % BODYFONT--\slshape is defined to be \itshape with upright figures and punctuation + {\thfamily} % BODYFONT--\thfamily is italic with upright figures and punctuation {} % INDENT (empty value is the same as 0pt) {\bfseries} % HEADFONT--you may want to add \tlfstyle so the number is tab lining, regardless of text figure selection {.} % HEADPUNCT @@ -233,10 +235,29 @@ %\zpl@figurestyle} % \normalfont %\else - \AtEndPreamble{% +\DeclareRobustCommand\thfamily % new family for theorem font + {\not@math@alphabet\thfamily\relax + \fontfamily\thdefault\selectfont} +\DeclareRobustCommand{\textth}[1]{% + {\thfamily #1}% +} +\let\textthit\textth + +\AtEndPreamble{% \renewcommand*{\rmdefault}{zpl\zpl@figurealign% \zpl@figurestyle} - \normalfont} +\def\zpl@thfigurestyle{\zpl@figurestyle} +\ifx\zpl@figurestyle\zpl@dfltfigurestyle + \def\zpl@thfigurestyle{tlf} +\else + \def\zpl@thfigurestyle{osf} +\fi % there just two possible figure styles for the theorem font +\newcommand*{\thdefault}{zplth-\zpl@thfigurestyle} +\ifzpl@thrm + \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 +\normalfont} %\fi \endinput |