1

I'd like to use oldstylenums by default. Now I do it with package kpfonts. But sometimes I need to use lining numbers here and there, for example with capital letter stuff, like ISO 9000. Is there an easy way like with a macro \newstylenums{123}?

MWE:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[oldstylenums]{kpfonts} 
\begin{document}
Numbers 123456789 are oldstyle. BUT 123456789 SHOULD BE NEWSTYLE!
\end{document}

And is there a general solution or does it depend on the font package in use?

4
  • 1
    If you use oldstyle numerals, I suggest using small caps for acronyms. – egreg Jul 18 '16 at 16:24
  • Thanks for the suggestion! Are there any general guidelines for old style figure and smallcap usage? (Yes, I'm ordering "Elements of Typographic Style"). You'd prefer ISO9000 written with smallcaps+old style figures? – Paapaa Jul 18 '16 at 18:10
  • There's no “law” about this. It much depends on the document you're typesetting and the frequency of digits and acronyms. Be as generic as possible by defining appropriate macros, so you can easily compare results. – egreg Jul 18 '16 at 18:17
  • Yes, my plan is to use macros for this kind of acronyms having both letters and numbers. I think it will be either capitals+lining or smallcaps+oldstyle. Both look good. – Paapaa Jul 18 '16 at 18:23
2

The command your looking for is called \classicstylenums:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[oldstylenums]{kpfonts}
\begin{document}
Numbers 123456789 are oldstyle. BUT \classicstylenums{123456789} SHOULD BE NEWSTYLE!
\end{document}

enter image description here

4
  • Great, works perfectly! Didn't know about that command. – Paapaa Jul 18 '16 at 18:08
  • I have no idea, why that command is undocumented... – DG' Jul 18 '16 at 18:12
  • Are there similar commands for controlling figure tabularity/proportionality? – Paapaa Jul 18 '16 at 18:22
  • AFAIK not possible with kpfonts. There is tabfigures which supports fonts with pdflatex (using fontaxes) and lua-, xelatex (using fontspec) – DG' Jul 18 '16 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.