Add tex.
[hacks/latex/texmf.git] / tex / latex / Ubuntu / Ubuntu / UbuntuMono.sty
1 %%Generayed by autoinst on 2012/08/31
2 %%
3 \NeedsTeXFormat{LaTeX2e}
4 \ProvidesPackage{UbuntuMono}
5     [2012/08/31 (autoinst)  Style file for UbuntuMono.]
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*{\UbuntuMono@scale}{1}
54     \RequirePackage{xkeyval}
55     \DeclareOptionX{scaled}{\renewcommand*{\UbuntuMono@scale}{##1}}
56 }{
57     \let\DeclareOptionX\DeclareOption
58     \let\ExecuteOptionsX\ExecuteOptions
59     \let\ProcessOptionsX\ProcessOptions
60 }
61
62 \DeclareOptionX{lining}{\edef\UbuntuMono@figurestyle{LF}}
63 \DeclareOptionX{tabular}{\edef\UbuntuMono@figurealign{T}}
64 \DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}}
65 \DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}}
66 \ExecuteOptionsX{lining,tabular,bold,regular}
67 \ProcessOptionsX\relax
68
69 \renewcommand*
70     {\rmdefault}
71     {UbuntuMono-\UbuntuMono@figurealign\UbuntuMono@figurestyle}
72 \renewcommand*{\familydefault}{\rmdefault}
73
74 \endinput