summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fbb/fbb.sty
blob: bfbc34de8f1c02b9085973875c2e4e17ad495317 (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
56
57
58
59
60
61
62
63
64
%% fbb.sty
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fbb}
    [2013/08/12 (Michael Sharpe)  Style file for fbb.]

\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
    \def\@makefnmark{\hbox{\textsu{\@thefnmark}}}
}{}

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

\DeclareOptionX{lining}{\edef\fbb@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\fbb@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\fbb@figurealign{T}}
\DeclareOptionX{proportional}{\edef\fbb@figurealign{}}
\DeclareOptionX{bold}{\edef\bfseries@rm{b}}
\DeclareOptionX{regular}{\edef\mdseries@rm{m}}
\ExecuteOptionsX{lining,tabular,bold,regular}
\ProcessOptionsX\relax

\def\useosf{\edef\fbb@figurestyle{OsF}\edef\fbb@figurealign{}%
  \renewcommand*{\rmdefault}{fbb-OsF}}
\@onlypreamble\useosf
\def\usetosf{\edef\fbb@figurestyle{OsF}\edef\fbb@figurealign{T}%
  \renewcommand*{\rmdefault}{fbb-TOsF}}
\@onlypreamble\usetosf

\DeclareRobustCommand{\textlf}[1]{%
  {\fontfamily{fbb-LF}\selectfont #1}%
}% to get lf
\DeclareRobustCommand{\texttlf}[1]{%
  {\fontfamily{fbb-TLF}\selectfont #1}%
}% to get tlf
\DeclareRobustCommand{\textosf}[1]{%
  {\fontfamily{fbb-OsF}\selectfont #1}%
}% to get osf
\DeclareRobustCommand{\texttosf}[1]{%
  {\fontfamily{fbb-TOsF}\selectfont #1}%
}% to get tosf

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

\endinput