summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cabin/cabin-type1.sty
blob: ae192b87ee313d709956f4af247e1e441d52a691 (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
%% Generated by autoinst on 2012/10/31
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cabin-type1}
    [2012/10/31 (autoinst)  Style file for Cabin when using LaTeX or pdfLaTeX.]
\ifxetex
  \PackageError{cabin-type1}{runs only with latex and pdflatex!}{}
\else\ifluatex
  \PackageError{cabin-type1}{runs only with latex and pdflatex!}{}
\else
 % okay
\fi\fi

\RequirePackage{textcomp}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
}{}

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

\edef\Cabin@figurestyle{LF}
\edef\Cabin@figurealign{T}
\DeclareOptionX{semibold}{\renewcommand*{\bfdefault}{sb}}
\DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}}
\DeclareOptionX{medium}{\renewcommand*{\mddefault}{mb}}
\DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}}
\ExecuteOptionsX{bold,regular}
\ProcessOptionsX\relax
\renewcommand*
  {\sfdefault}
  {Cabin-\Cabin@figurealign\Cabin@figurestyle}

\endinput