diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/newpx/newpxtext.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/newpx/newpxtext.sty | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/newpx/newpxtext.sty b/Master/texmf-dist/tex/latex/newpx/newpxtext.sty index 3d6b077a6c2..6db4282c577 100644 --- a/Master/texmf-dist/tex/latex/newpx/newpxtext.sty +++ b/Master/texmf-dist/tex/latex/newpx/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.318} -\def\filedate{2017/03/11} +\def\fileversion{1.319} +\def\filedate{2017/05/28} \ProvidesPackage{newpxtext}[\filedate\space v\fileversion] \message{`newpxtext' v\fileversion, \filedate\space Text macros taking advantage of TeXGyre Pagella and its extensions (msharpe)} @@ -25,6 +25,9 @@ \@onlypreamble\useproportional \newif\ifzpl@defaultsups +\newif\ifzpl@KOMA +\@ifundefined{KOMAClassName}{}{\zpl@KOMAtrue} +\@ifundefined{ver@scrextend.sty}{}{\zpl@KOMAtrue} \newif\ifzpl@adobesc % we don't use this exc. in fd, but may in future \newif\ifzpl@scosf \newif\ifzpl@largesc @@ -89,20 +92,23 @@ \not@math@alphabet\sustyle\relax \fontfamily{zplsups}\selectfont} -%\def\@makefnmark{\ifx \thefootnote\orig@footnote \hbox{\sustyle\hspace*{.04em}\@thefnmark}\else\orig@makefnmark\fi} \ifzpl@defaultsups % \else - \def\f@@tn@te{footnote} - \def\@makefnmark{% - \ifx\@mpfn\f@@tn@te% - \ifx\thefootnote\orig@footnote% - \hbox{\sustyle\hspace*{.05em}\@thefnmark\hspace*{.05em}}% + \ifzpl@KOMA + \let\textsuperscript\sustyle + \else + \def\f@@tn@te{footnote} + \def\@makefnmark{% + \ifx\@mpfn\f@@tn@te% + \ifx\thefootnote\orig@footnote% + \hbox{\sustyle\hspace*{.05em}\@thefnmark\hspace*{.05em}}% + \else% + \orig@makefnmark% + \fi \else% \orig@makefnmark% - \fi - \else% - \orig@makefnmark% - \fi} + \fi}% + \fi \fi \ifzpl@scosf % \DeclareRobustCommand{\textsc}[1]{% |