Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: None | XeTeX: None |
textmacros | MathJax: Full | KaTeX: None | XeTeX: None |
Syntax#
\oldstyleTakes no arguments. Same argspec in base and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | | math | Changes the font of subsequent numerals in the current group to oldstyle. |
textmacros | | text | Legacy 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}approximatePrefix command alternative
\oldstylenums{...}approximate\oldstylenumsis a command with arguments, whereas\oldstyleis declarative.
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
{\oldstyle a} | Positive · baseline | Pass | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
{\oldstyle a} | Positive · baseline | Pass | Fail | Fail |