Add tex.
[hacks/latex/texmf.git] / tex / latex / Ubuntu / Ubuntu / Ubuntu.sty
1 %%Generayed by autoinst on 2012/08/31
2 %%
3 \NeedsTeXFormat{LaTeX2e}
4 \ProvidesPackage{Ubuntu}
5     [2012/08/31 (autoinst)  Style file for Ubuntu.]
6     
7 \RequirePackage[T1,T5]{fontenc}
8 \RequirePackage{textcomp}
9 \IfFileExists{fontaxes.sty}{
10     \RequirePackage{fontaxes}
11     \providecommand{\tldefault}{tl}
12     \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax
13         \fontsecondaryshape\tldefault\selectfont}
14     \DeclareTextFontCommand{\texttl}{\tlshape}
15     \let\texttitling\texttl
16     \fa@naming@exception{shape}{{n}{tl}}{tl}
17     \fa@naming@exception{shape}{{it}{tl}}{tlit}
18     
19     \DeclareRobustCommand\swshape{\not@math@alphabet\swshape\relax
20         \fontprimaryshape\itdefault\fontsecondaryshape\swdefault\selectfont}
21     \fa@naming@exception{shape}{{n}{sw}}{nw}
22     \fa@naming@exception{shape}{{it}{sw}}{sw}
23     
24     \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
25     \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
26     \def\sufigures{\@nomath\sufigures
27         \fontfigurestyle{superior}\selectfont}
28     \DeclareTextFontCommand{\textsu}{\sufigures}
29     \let\textsuperior\textsu
30     
31     \fa@naming@exception{figures}{{inferior}{proportional}}{Inf}
32     \fa@naming@exception{figures}{{inferior}{tabular}}{Inf}
33     \def\infigures{\@nomath\infigures
34         \fontfigurestyle{inferior}\selectfont}
35     \DeclareTextFontCommand{\textin}{\infigures}
36     \let\textinferior\textin
37     
38     \fa@naming@exception{figures}{{ornament}{proportional}}{Orn}
39     \fa@naming@exception{figures}{{ornament}{tabular}}{Orn}
40     \def\ornaments{\@nomath\ornaments
41         \fontencoding{U}\fontfigurestyle{ornament}\selectfont}
42     \DeclareTextFontCommand{\textornaments}{\ornaments}
43     \providecommand{\ornament}[1]{\textornaments{\char##1}}
44     
45     \fa@naming@exception{figures}{{numerators}{proportional}}{Numr}
46     \fa@naming@exception{figures}{{numerators}{tabular}}{Numr}
47
48     \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom}
49     \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom}
50 }{}
51
52 \IfFileExists{xkeyval.sty}{
53     \newcommand*{\Ubuntu@scale}{1}
54     \RequirePackage{xkeyval}
55     \DeclareOptionX{scaled}{\renewcommand*{\Ubuntu@scale}{##1}}
56 }{
57     \let\DeclareOptionX\DeclareOption
58     \let\ExecuteOptionsX\ExecuteOptions
59     \let\ProcessOptionsX\ProcessOptions
60 }
61
62 \DeclareOptionX{lining}{\edef\Ubuntu@figurestyle{LF}}
63 \DeclareOptionX{oldstyle}{\edef\Ubuntu@figurestyle{OsF}}
64 \DeclareOptionX{tabular}{\edef\Ubuntu@figurealign{T}}
65 \DeclareOptionX{proportional}{\edef\Ubuntu@figurealign{}}
66 \DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}}
67 \DeclareOptionX{light}{\renewcommand*{\mddefault}{l}}
68 \DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}}
69 \ExecuteOptionsX{oldstyle,proportional,bold,regular}
70 \ProcessOptionsX\relax
71
72 \renewcommand*
73     {\rmdefault}
74     {Ubuntu-\Ubuntu@figurealign\Ubuntu@figurestyle}
75 \renewcommand*{\familydefault}{\rmdefault}
76
77 \endinput