diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:58:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:58:25 +0000 |
commit | 384bbb4cf52ef02cc831c6bd138478c638fcd073 (patch) | |
tree | 12adc01073a4a94c6ab187d7a10d87191a9dd62b /Master/texmf-dist/tex/latex/lucold/lucold.sty | |
parent | 09447ff5ddd2846eee20e66e21912d0b3d65cd96 (diff) |
lucold
git-svn-id: svn://tug.org/texlive/trunk@1058 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lucold/lucold.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lucold/lucold.sty | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lucold/lucold.sty b/Master/texmf-dist/tex/latex/lucold/lucold.sty new file mode 100644 index 00000000000..1426b8cbe4a --- /dev/null +++ b/Master/texmf-dist/tex/latex/lucold/lucold.sty @@ -0,0 +1,62 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{lucold}[1999/05/25 Old-Style Digits for Lucida fonts] + +% Author: Maurizio Loreti, aka MLO or (HAM) I3NOO +% Work: University of Padova - Department of Physics +% Via F. Marzolo, 8 - 35131 PADOVA - Italy +% Phone: +39 (049) 827-7216 FAX: +39 (049) 827-7102 +% EMail: loreti@padova.infn.it +% WWW: http://wwwcdf.pd.infn.it/~loreti/mlo.html +% +% $Id: lucold.sty,v 1.1 1999/05/25 12:16:26 loreti Exp $ +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Options for \usepackage{lucold} : +% +% text (notext) : switch (do not switch) all text numerals to +% old-style digits; +% math (nomath) : switch (do not switch) all math numerals +% to old-style digits. +% +% The default: \usepackage{lucold} is equivalent to +% \usepackage[text,nomath]{lucold} . +% +% Since I think that it has no sense to require old-style +% digits in math and not in text, with [notext,math] a +% warning is printed and the setup is changed to [text,math]. + +\newif\ifluc@ldtext +\newif\ifluc@ldmath + +\DeclareOption{text}{\luc@ldtexttrue} +\DeclareOption{notext}{\luc@ldtextfalse} +\DeclareOption{math}{\luc@ldmathtrue} +\DeclareOption{nomath}{\luc@ldmathfalse} + +\ExecuteOptions{text,nomath} +\ProcessOptions + +\ifluc@ldmath +\ifluc@ldtext\relax\else% + \luc@ldtexttrue\PackageWarningNoLine{lucold}{Old style + digits in math and not in text? Ugh!\MessageBreak + Also the `text' option has been set}\fi + +\DeclareMathSymbol{0}{\mathalpha}{letters}{'060} +\DeclareMathSymbol{1}{\mathalpha}{letters}{'061} +\DeclareMathSymbol{2}{\mathalpha}{letters}{'062} +\DeclareMathSymbol{3}{\mathalpha}{letters}{'063} +\DeclareMathSymbol{4}{\mathalpha}{letters}{'064} +\DeclareMathSymbol{5}{\mathalpha}{letters}{'065} +\DeclareMathSymbol{6}{\mathalpha}{letters}{'066} +\DeclareMathSymbol{7}{\mathalpha}{letters}{'067} +\DeclareMathSymbol{8}{\mathalpha}{letters}{'070} +\DeclareMathSymbol{9}{\mathalpha}{letters}{'071} +\fi + +\ifluc@ldtext +\renewcommand{\rmdefault}{hlos} +\fi + +\endinput |