summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/clara/clara.sty
blob: aa484ec78dbc895f86ac20ccd0282ae1cf08a7f2 (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
%% Generated by autoinst on 2019/12/14
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{clara}
    [2019/12/14 (autoinst)  Style file for Clara.]

\RequirePackage[LY1,T1]{fontenc}
\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

}{}

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

\DeclareOptionX{lining}{\edef\Clara@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\Clara@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\Clara@figurealign{T}}
\DeclareOptionX{mainfont}{
    \renewcommand{\familydefault}{\rmdefault}
}
\DeclareOptionX{bold}{\edef\bfseries@rm{bold}}
\DeclareOptionX{book}{\edef\mdseries@rm{book}}
\DeclareOptionX{regular}{\edef\mdseries@rm{regular}}
\ExecuteOptionsX{oldstyle,tabular,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\rmdefault}
    {Clara-\Clara@figurealign\Clara@figurestyle}

\endinput