Is there any way to make all numbers written outside of math mode be rendered oldstyle while still using the Computer Modern font? I'm pretty partial to both, and also to not writing \oldstylenum every time I want one. Using Latex, by the way.

  • 2
    \usepackage{hfoldsty} or \usepackage{eco}?
    – jon
    Commented Mar 31, 2016 at 4:02

1 Answer 1


You could load the cfr-lm package, i.e., write \usepackage{cfr-lm} in the preamble. If the package is loaded in this way, old-style numerals will be used in text mode and lining numerals will be used in math mode. Latin Modern is a clone of Computer Modern; the basic glyphs (those in the ASCII set) are essentially indistinguishable from Computer Modern; you'll notice big improvements in some glyphs with accents and diacritics when using Latin Modern.

To get lining numbers, use either math mode or the package's \textl macro.

enter image description here

\obeylines % just for this example

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .