Fonts and styles\oldstyle

\oldstyleCommand

Changes the font of subsequent numerals in the current group to oldstyle.

x \oldstyle y
Available in
base, textmacros
Kind
declarative
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
presentation, discouraged
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
textmacrosMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\oldstyle

Takes no arguments. Same argspec in base and textmacros. Reading argspecs

Examples#

base

{x \oldstyle y} z

textmacros

\text{\oldstyle 1}

Package variants#

PackageSignatureAllowed modeNotes
basemathChanges the font of subsequent numerals in the current group to oldstyle.
textmacrostextLegacy declaration that switches following text to oldstyle numerals or the corresponding oldstyle variant until the current group ends.

In TeXForm#

TeXForm parses this entry as declarative syntax; the package determines its argument specification.

Equivalent forms#

  • \oldstylenums{#1}approximate

    Prefix command alternative

  • \oldstylenums{...}approximate

    \oldstylenums is a command with arguments, whereas \oldstyle is declarative.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
{\oldstyle a}Positive · baselinePassFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
{\oldstyle a}Positive · baselinePassFailFail
All 80 in Fonts and styles