Hi,
I was wondering if anyone knows a way to turn oldstylenums in lmodern fonts as a global option (i.e. in the preamble). I do know other fonts that have this option, such as the kpfonts. However, I would like to know if there is a way to do this with the lmodern ones, probably, by renewing a command that I'm not aware of.
Thanks
Fonts & Character Sets ⇒ Oldstylenums in lmodern?
Oldstylenums in lmodern?
Unfortunately, this is not possible. Because of some historical quirk that was inherited from the Computer Modern fonts, the Latin Modern fonts contain the text figures in the math italic font. Enabling text figures globally would imply using the math italic font for the whole document, with disastrous results. Consider this simple example:
Nothing but the digits appears right.
Code: Select all
\documentclass{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
\oldstylenums{abc ABC 123 \% \& - . ,}
\end{document}
Re: Oldstylenums in lmodern?
Phi,
thanks for your reply. Yeap, I agree with you. Although I tested many ways to make it work, I gave it up. Kpfonts seem to work better, though, unfortunately I get a number of LaTeX warnings concerning the shape.
thanks for your reply. Yeap, I agree with you. Although I tested many ways to make it work, I gave it up. Kpfonts seem to work better, though, unfortunately I get a number of LaTeX warnings concerning the shape.
Oldstylenums in lmodern?
What about the eco package? Never tested it, but you might give it a try.
Re: Oldstylenums in lmodern?
Keta,
nice idea. I've tried it already, but it seems that some font characteristics are changed, glyphs etc. Thanks anyway
nice idea. I've tried it already, but it seems that some font characteristics are changed, glyphs etc. Thanks anyway