summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty42
1 files changed, 21 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty b/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty
index f5721efeaca..f55bb68a186 100644
--- a/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty
+++ b/Master/texmf-dist/tex/latex/ysabeau/ysabeau.sty
@@ -1,15 +1,13 @@
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.4}
-\def\filedate{2024/11/05}
+\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
@@ -136,22 +134,18 @@
\@nomath\lfstyle\relax
\fontfamily{Ysabeau-LF}\selectfont %
}% Lining Figures
-\let\liningnums\lfstyle % Added 2024/11/05
\DeclareRobustCommand{\tlfstyle}{%
\@nomath\tlfstyle\relax
\fontfamily{Ysabeau-TLF}\selectfont %
}% Tabular Lining Figures
-\let\tabularliningnums\tlfstyle % Added 2024/11/05
\DeclareRobustCommand{\osfstyle}{%
\@nomath\osfstyle\relax
\fontfamily{Ysabeau-OsF}\selectfont %
}% Oldstyle Figures
-\let\oldstylenums\osfstyle % Added 2024/11/05
\DeclareRobustCommand{\tosfstyle}{%
\@nomath\tosfstyle\relax
\fontfamily{Ysabeau-TOsF}\selectfont %
}% Tabular Oldstyle Figures
-\let\tabularoldstylenums\tosfstyle % Added 2024/11/05
\DeclareRobustCommand{\textlf}[1]{%
{\lfstyle #1}%
}% Lining Figures
@@ -170,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
@@ -185,10 +186,10 @@ OsF}\fontshape{sc}\selectfont #1}%
\DeclareTextFontCommand{\textsup}{\supfigures}
\let\textsu\textsup
\let\textsuperior\textsup
- \let\supstyle\supfigures % Add by me
- \let\supscript\supfigures % Added 2024/11/05
- %\let\@oldtextsuperscript\textsuperscript % clash with some serif fonts
- %\def\textsuperscript{\@ifstar\@oldtextsuperscript\textsup} % clash with some serif fonts
+ \let\supstyle\supfigures
+ \let\supscript\supfigures
+ \let\@oldtextsuperscript\textsuperscript
+ \def\textsuperscript{\@ifstar\@oldtextsuperscript\textsup}
\def\@makefnmark{%
\mbox{\footnotemarkfont\textsuperscript{\@thefnmark}}}
\@ifundefined{ftntm@font}%
@@ -203,10 +204,10 @@ OsF}\fontshape{sc}\selectfont #1}%
\DeclareTextFontCommand{\textinf}{\inffigures}
\let\textin\textinf
\let\textinferior\textinf
- \let\infstyle\inffigures % Add by me
- \let\subscript\inffigures % Added 2024/11/05
- %\let\@oldtextsubscript\textsubscript % clash with some serif fonts
- %\def\textsubscript{\@ifstar\@oldtextsubscript\textinf} % clash with some serif fonts
+ \let\infstyle\inffigures
+ \let\subscript\inffigures
+ \let\@oldtextsubscript\textsubscript
+ \def\textsubscript{\@ifstar\@oldtextsubscript\textinf}
\fa@naming@exception{figures}{{numerators}{proportional}}{Numr}
%\fa@naming@exception{figures}{{numerator}{proportional}}{Numr}
@@ -215,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}
@@ -230,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
}{}