Add tex.
[hacks/latex/texmf.git] / tex / latex / DIN / DINLight.sty
diff --git a/tex/latex/DIN/DINLight.sty b/tex/latex/DIN/DINLight.sty
new file mode 100644 (file)
index 0000000..d26fcc3
--- /dev/null
@@ -0,0 +1,73 @@
+%%Generayed by autoinst on 2012/09/01
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{DINLight}
+    [2012/09/01 (autoinst)  Style file for DINLight.]
+    
+\RequirePackage[T1,T5,LY1]{fontenc}
+\RequirePackage{textcomp}
+\IfFileExists{fontaxes.sty}{
+    \RequirePackage{fontaxes}
+    \providecommand{\tldefault}{tl}
+    \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax
+        \fontsecondaryshape\tldefault\selectfont}
+    \DeclareTextFontCommand{\texttl}{\tlshape}
+    \let\texttitling\texttl
+    \fa@naming@exception{shape}{{n}{tl}}{tl}
+    \fa@naming@exception{shape}{{it}{tl}}{tlit}
+    
+    \DeclareRobustCommand\swshape{\not@math@alphabet\swshape\relax
+        \fontprimaryshape\itdefault\fontsecondaryshape\swdefault\selectfont}
+    \fa@naming@exception{shape}{{n}{sw}}{nw}
+    \fa@naming@exception{shape}{{it}{sw}}{sw}
+    
+    \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
+    
+    \fa@naming@exception{figures}{{inferior}{proportional}}{Inf}
+    \fa@naming@exception{figures}{{inferior}{tabular}}{Inf}
+    \def\infigures{\@nomath\infigures
+        \fontfigurestyle{inferior}\selectfont}
+    \DeclareTextFontCommand{\textin}{\infigures}
+    \let\textinferior\textin
+    
+    \fa@naming@exception{figures}{{ornament}{proportional}}{Orn}
+    \fa@naming@exception{figures}{{ornament}{tabular}}{Orn}
+    \def\ornaments{\@nomath\ornaments
+        \fontencoding{U}\fontfigurestyle{ornament}\selectfont}
+    \DeclareTextFontCommand{\textornaments}{\ornaments}
+    \providecommand{\ornament}[1]{\textornaments{\char##1}}
+    
+    \fa@naming@exception{figures}{{numerators}{proportional}}{Numr}
+    \fa@naming@exception{figures}{{numerators}{tabular}}{Numr}
+
+    \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom}
+    \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom}
+}{}
+
+\IfFileExists{xkeyval.sty}{
+    \newcommand*{\DINLight@scale}{1}
+    \RequirePackage{xkeyval}
+    \DeclareOptionX{scaled}{\renewcommand*{\DINLight@scale}{##1}}
+}{
+    \let\DeclareOptionX\DeclareOption
+    \let\ExecuteOptionsX\ExecuteOptions
+    \let\ProcessOptionsX\ProcessOptions
+}
+
+\DeclareOptionX{lining}{\edef\DINLight@figurestyle{LF}}
+\DeclareOptionX{tabular}{\edef\DINLight@figurealign{T}}
+\DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}}
+\ExecuteOptionsX{lining,tabular,regular}
+\ProcessOptionsX\relax
+
+\renewcommand*
+    {\rmdefault}
+    {DINLight-\DINLight@figurealign\DINLight@figurestyle}
+\renewcommand*{\familydefault}{\rmdefault}
+
+\endinput