diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-17 03:00:50 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-17 03:00:50 +0000 |
commit | cda3ce3f9172e48d4bc673e57fc617ba0f0b40d1 (patch) | |
tree | 338fb039e5af66237ec0e6557f32b0784f022b61 /fonts/step/latex/step.sty | |
parent | 111dc5512e3db14318e26b6700731c68c41c1724 (diff) |
CTAN sync 201909170300
Diffstat (limited to 'fonts/step/latex/step.sty')
-rw-r--r-- | fonts/step/latex/step.sty | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/fonts/step/latex/step.sty b/fonts/step/latex/step.sty new file mode 100644 index 0000000000..bb9dcfc23b --- /dev/null +++ b/fonts/step/latex/step.sty @@ -0,0 +1,52 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{step} +\RequirePackage{textcomp} +\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{} +\IfFileExists{fontaxes.sty}{ + \RequirePackage{fontaxes} + \fa@naming@exception{figures}{{superior}{proportional}}{Sup} + \fa@naming@exception{figures}{{superior}{tabular}}{Sup} + \def\sufigures{\@nomath\sufigures + \fontfigurestyle{superior}\selectfont} + \DeclareTextFontCommand{\textsu}{\sufigures} + \let\textsuperior\textsu + + \fa@naming@exception{figures}{{inferior}{proportional}}{Inf} + \fa@naming@exception{figures}{{inferior}{tabular}}{Inf} + \def\infigures{\@nomath\infigures + \fontfigurestyle{inferior}\selectfont} + \DeclareTextFontCommand{\textin}{\infigures} + \let\textinferior\textin + +}{} + +\IfFileExists{xkeyval.sty}{ + \newcommand*{\STEP@scale}{1} + \RequirePackage{xkeyval} + \DeclareOptionX{scale}{\renewcommand*{\STEP@scale}{##1}} + \DeclareOptionX{scaled}{\renewcommand*{\STEP@scale}{##1}} +}{ + \let\DeclareOptionX\DeclareOption + \let\ExecuteOptionsX\ExecuteOptions + \let\ProcessOptionsX\ProcessOptions +} + +\DeclareOptionX{lining}{\edef\STEP@figurestyle{LF}} +\DeclareOptionX{oldstyle}{\edef\STEP@figurestyle{OsF}} +\DeclareOptionX{tabular}{\edef\STEP@figurealign{T}} +\DeclareOptionX{mainfont}{ + \renewcommand{\familydefault}{\rmdefault} +} +\DeclareOptionX{bold}{\edef\bfseries@rm{bold}} +\DeclareOptionX{regular}{\edef\mdseries@rm{regular}} +\ExecuteOptionsX{lining,tabular,bold,regular} +\ProcessOptionsX\relax + +\DeclareTextFontCommand{\lining}{\fontfamily{STEP-\STEP@figurealign LF}\selectfont} +\DeclareTextFontCommand{\oldstyle}{\fontfamily{STEP-\STEP@figurealign OsF}\selectfont} + +\renewcommand* + {\rmdefault} + {STEP-\STEP@figurealign\STEP@figurestyle} + +\endinput |