[lucida] Old style numbers

Steve Peter speter at mac.com
Sat May 17 03:29:46 CEST 2008


On May 16, 2008, at 5:55 PM, Thomas S. Dye wrote:

> Aloha all,
>
> I'd like to use old style numbers by default, rather than using
> \oldstylenums{} in the text.  Reading through lucida-sample.pdf, I
> found this line, which I perhaps do not understand correctly but might
> indicate I can get the behavior I'm after:
>
>> The font family hlhj provides the oldstyle figures by default
>
> If this does indeed point the way to old style numbers without the use
> of \oldstylenums{} in the text, then I'd appreciate instruction on how
> to invoke it in my class file.


\renewcommand{\rmdefault}{hlhj} should do the trick.

I would put the change into a mylucida.sty file:

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mylucida}[2008/05/16 v1.0 Lucida]
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{nfssext}
\DeclareOption{lining}{\renewcommand*{\rmdefault}{hlh}}
\DeclareOption{oldstyle}{\renewcommand*{\rmdefault}{hlhj}}
\ExecuteOptions{oldstyle}
\ProcessOptions*
\endinput

You could then say

\usepackage{mylucida}

which will default to oldstyle, or if you need lining for a particular  
file, use

\usepackage[lining]{mylucida}

Steve


More information about the lucida mailing list