diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty b/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty index b633978943b..f55bb68a186 100644 --- a/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty +++ b/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty @@ -1,14 +1,13 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ysabeau} - [2024/01/19 Style file for Ysabeau fonts (NMH).] +\def\fileversion{1.5} +\def\filedate{2024/11/06} +\ProvidesPackage{ysabeau}[\filedate\space v\fileversion\space Ysabeau fonts for LaTeX (NMH).] % Large portions of code was stolen from Michael Sharpe (cochineal.sty). Credits for him. \DeclareEncodingSubset{TS1}{Ysabeau-*}{0} \DeclareEncodingSubset{LGR}{Ysabeau-*}{0} -%\RequirePackage[QX,L7X,CS,LGR,T5,T4,TS3,T3,T2C,T2B,T2A,LY1,T1]{fontenc} % Default -\RequirePackage[TS1,T1]{fontenc} -\RequirePackage[full]{textcomp} +\RequirePackage{fontenc,textcomp} \RequirePackage{mweights} \RequirePackage{xstring,ifthen,scalefnt} % For \textfrac \RequirePackage{etoolbox} % For new commands @@ -165,6 +164,13 @@ OsF}\fontshape{sc}\selectfont #1}% }\fi% use OsF in small caps +% Here we provides some aliases for figure commands + +\let\liningnums\lfstyle +\let\tabularliningnums\tlfstyle +\let\oldstylenums\osfstyle +\let\tabularoldstylenums\tosfstyle + \IfFileExists{fontaxes.sty}{ \RequirePackage{fontaxes} \DeclareRobustCommand\swshape{\not@math@alphabet\swshape\relax @@ -180,15 +186,16 @@ OsF}\fontshape{sc}\selectfont #1}% \DeclareTextFontCommand{\textsup}{\supfigures} \let\textsu\textsup \let\textsuperior\textsup - \let\supstyle\supfigures % Add by me + \let\supstyle\supfigures + \let\supscript\supfigures \let\@oldtextsuperscript\textsuperscript \def\textsuperscript{\@ifstar\@oldtextsuperscript\textsup} \def\@makefnmark{% \mbox{\footnotemarkfont\textsuperscript{\@thefnmark}}} \@ifundefined{ftntm@font}% {\let\footnotemarkfont\normalfont}% - {\let\footnotemarkfont\ftntm@font} - + {\let\footnotemarkfont\ftntm@font} + \fa@naming@exception{figures}{{inferior}{proportional}}{Inf} \fa@naming@exception{figures}{{inferior}{tabular}}{Inf} \def\inffigures{\@nomath\inffigures @@ -197,7 +204,8 @@ OsF}\fontshape{sc}\selectfont #1}% \DeclareTextFontCommand{\textinf}{\inffigures} \let\textin\textinf \let\textinferior\textinf - \let\infstyle\inffigures % Add by me + \let\infstyle\inffigures + \let\subscript\inffigures \let\@oldtextsubscript\textsubscript \def\textsubscript{\@ifstar\@oldtextsubscript\textinf} @@ -208,10 +216,9 @@ OsF}\fontshape{sc}\selectfont #1}% \def\numfigures{\@nomath\numfigures \fontfigurestyle{numerators}\selectfont} \let\nufigures\numfigures - \DeclareTextFontCommand{\textnum}{\numfigures} - %\let\textnu\textnum % Clash when you use T1 and LGR encodings (babel package). Fix later (from XCharter package) + \DeclareTextFontCommand{\textnum}{\numfigures} \let\textnumerators\textnum - \let\numstyle\numfigures % Add by me + \let\numstyle\numfigures \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom} %\fa@naming@exception{figures}{{denominator}{proportional}}{Dnom} @@ -223,7 +230,7 @@ OsF}\fontshape{sc}\selectfont #1}% \DeclareTextFontCommand{\textden}{\denfigures} \let\textde\textden \let\textdenominators\textden - \let\denstyle\denfigures % Add by me + \let\denstyle\denfigures }{} |