diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:54:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:54:34 +0000 |
commit | 74afab51373336875080fafee169c9b078efdb2e (patch) | |
tree | 0733f16de4915763ae6b2eb57ba0f22408b9fced /Master/texmf-dist/tex/latex/eco/eco.sty | |
parent | 805344f28ed18694af2af866bb17dcd325dff2a6 (diff) |
eco
git-svn-id: svn://tug.org/texlive/trunk@846 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eco/eco.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/eco/eco.sty | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/eco/eco.sty b/Master/texmf-dist/tex/latex/eco/eco.sty new file mode 100644 index 00000000000..14614d881e7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/eco/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 |