summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cabin/Cabinauto.sty
blob: 9f44a0564ce8d7ef24dace95b9fcb21f95472fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%% Generated by autoinst on 2019/04/04
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Cabin}
    [2019/04/04 (autoinst)  Style file for Cabin.]

\RequirePackage[T1,LY1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
    \providecommand{\tldefault}{tl}
    \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax
        \fontsecondaryshape\tldefault\selectfont}
    \DeclareTextFontCommand{\texttl}{\tlshape}
    \let\texttitling\texttl
    \fa@naming@exception{shape}{{n}{tl}}{tl}
    \fa@naming@exception{shape}{{it}{tl}}{tlit}
    \fa@naming@exception{shape}{{sl}{tl}}{tlsl}

    \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

}{}

\IfFileExists{xkeyval.sty}{
    \newcommand*{\Cabin@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\Cabin@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\Cabin@scale}{##1}}
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\Cabin@figurestyle{LF}}
\DeclareOptionX{tabular}{\edef\Cabin@figurealign{T}}
\DeclareOptionX{semibold}{\edef\bfseries@rm{semibold}}
\DeclareOptionX{bold}{\edef\bfseries@rm{bold}}
\DeclareOptionX{medium}{\edef\mdseries@rm{medium}}
\DeclareOptionX{regular}{\edef\mdseries@rm{regular}}
\ExecuteOptionsX{lining,tabular,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\rmdefault}
    {Cabin-\Cabin@figurealign\Cabin@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput