summaryrefslogtreecommitdiff
path: root/fonts/tempora/tex/tempora.sty
blob: 01bb715194bd314cc8d29f8a8bc499ce7677af17 (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tempora}
    [2016/02/02 (msharpe)  Style file for Tempora.]

\RequirePackage[OT2,T2C,T2B,T2A,LGR,T1]{fontenc}
\RequirePackage{textcomp}
\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}{
    \providecommand*{\LGCscale}{1}
    \newcommand*{\Tempora@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\Tempora@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\Tempora@scale}{##1}}
    \let\LGCscale\Tempora@scale
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\Tempora@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\Tempora@figurestyle{OsF}}
\ExecuteOptionsX{lining}
\ProcessOptionsX\relax

\renewcommand*{\rmdefault}{Tempora-T\Tempora@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput