[lucida] Old style numbers

Thomas S. Dye tsd at tsdye.com
Sat May 17 04:00:07 CEST 2008


Aloha Steve,

Thank you very much for an elegant solution!

My MacTeX system appears to lack the file nfssext.sty, but when I  
commented out that line everything worked as advertised.

I really appreciate your help.

Tom

On May 16, 2008, at 3:29 PM, Steve Peter wrote:

>
> 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