summaryrefslogtreecommitdiff
path: root/fonts/eco/src/eco.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/eco/src/eco.sty')
-rw-r--r--fonts/eco/src/eco.sty36
1 files changed, 36 insertions, 0 deletions
diff --git a/fonts/eco/src/eco.sty b/fonts/eco/src/eco.sty
new file mode 100644
index 0000000000..14614d881e
--- /dev/null
+++ b/fonts/eco/src/eco.sty
@@ -0,0 +1,36 @@
+%
+% eco.sty
+%
+% 1996/03/17 sebastian_kirsch@kl.maus.de
+%
+% Loads fontenc-package with T1-encoding and redefines the
+% default font families so eco-fonts (ec-fonts with oldstylenums instead of
+% regular digits) are used.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{eco}[1998/07/19 Fontencoding with eco-fonts]
+
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{fontenc}}
+\ProcessOptions\relax
+
+\RequirePackage[T1]{fontenc}
+\RequirePackage{ifthen}
+
+\renewcommand{\rmdefault}{cmor}
+\renewcommand{\sfdefault}{cmoss}
+\renewcommand{\ttdefault}{cmott}
+
+% \newstylenums{} switches back to new-style figures (analogous to
+% \oldstylenums{}.)
+
+\newcommand{\newstylenums}[1]{%
+ \begingroup%
+ \ifthenelse{\equal{\f@family}{cmor}}{\fontfamily{cmr}}{%
+ \ifthenelse{\equal{\f@family}{cmoss}}{\fontfamily{cmss}}{%
+ \ifthenelse{\equal{\f@family}{cmott}}{\fontfamily{cmtt}}}}%
+ \selectfont%
+ #1%
+ \endgroup%
+ }
+
+\endinput