Fonts & Character Sets ⇒ Oldstylenums in lmodern?
Oldstylenums in lmodern?
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Oldstylenums in lmodern?
Code: Select all
\documentclass{article}\usepackage{lmodern}\usepackage[T1]{fontenc}\begin{document}\oldstylenums{abc ABC 123 \% \& - . ,}\end{document}
Re: Oldstylenums in lmodern?
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?
Re: Oldstylenums in lmodern?
nice idea. I've tried it already, but it seems that some font characteristics are changed, glyphs etc. Thanks anyway