Questions tagged [oldstylenums]

"Old Style Numbers" are numerals typeset with varying heights in a fashion that resembles a typical line of running text.

Filter by
Sorted by
Tagged with
4 votes
2 answers
332 views

Changing mono font with PDFLaTeX

I'd like to change the default monofont (used with \texttt{} and \url{}) to "CMU Typewriter Text Variable Width", without touching the default main font. I was able to do it with \usepackage{...
Flip Tis's user avatar
0 votes
1 answer
45 views

Error between microtype, hyperref, and listings when setting oldstylenums for listings

I am using the listings package for displaying source code, and want to reformat the numbering to use the oldstylenums. The problem comes when using microtype, as it throws errors for every line of ...
asbjos's user avatar
  • 23
1 vote
2 answers
102 views

XCharter with old style figures prints 1 like a shortened I instead of 1 like a shortened 1

I'm trying to create a template in pdfLaTeX using the excellent XCharter package. According to the documentation, the osf package option should load old-style figures, and the numeral 1 should be ...
Venkat's user avatar
  • 179
0 votes
0 answers
22 views

Old-style numbers including in small-caps acronyms but not in glossary

I want to consistently use old-style numbers and also small-caps for acronyms. However in the list of acronyms I actually want to make the acronym all upper case and have the number be lining as well. ...
Hans's user avatar
  • 323
0 votes
2 answers
64 views

Use oldstylenums with kpfonts in report class on everything BUT chapter/section heading counters

Kepler fonts (kpfonts) includes an oldstylenums options, which turns all numbers, including counters, in oldstyle numbers. Is there a way to use modern lining numbers for chapter and section counters ...
Akul Bhatt's user avatar
3 votes
2 answers
163 views

How to use Old Style Numbers in XeLaTeX

I wish to use old style numbers, and I can do this fairly easily with PDFLaTeX with the following code: \documentclass[a4paper,10pt]{article} \usepackage[osf]{mathpazo} \begin{document} 1234567890 \...
JRCSalter's user avatar
  • 129
2 votes
1 answer
114 views

Activate microtype-Protrusion for superscript old style numbers with LuaLaTex

I’ve been playing around with microtype’s protusion-capabilities and LuaLaTeX, but faced a problem regarding old-style superscript numbers. The regular numbers protrude. This code \documentclass{...
Kubo's user avatar
  • 278
1 vote
1 answer
147 views

Small caps and old style numerals not working with XeTeX in 2021

As above, I'm having difficulty getting small caps and old style numerals to print properly when using CMU Serif with XeTeX. I'm aware that this is a topic that has been discussed before but I wasn't ...
Tom Hosker's user avatar
1 vote
1 answer
205 views

Why are xfrac-style fractions so ugly in this document?

I seem to have stumbled on a rather robust way of stopping the xfrac package from working properly. This is a MWE of the problem: \documentclass{amsart} \usepackage[a5paper, margin=28mm, ...
Tom Hosker's user avatar
3 votes
1 answer
97 views

Adding a command inside \addcontentsline breaks hyperref

here is my problem: by default I use oldstyle numbers in my document, but for the numbers of the headings (in this case the section headings), I would like to use lining numbers. To do this, I have ...
B Legrand's user avatar
  • 435
3 votes
1 answer
154 views

Lining figures in math mode, but oldstyle figures in URLs

Basically, I want to achieve the same as for instance in this question: Changing the math-mode figures to “old style”. But not in general math, only for URLs, which are set in math mode (in the manual,...
crateane's user avatar
  • 2,187
1 vote
0 answers
88 views

How to combine old style figures and mathematical expressions?

I'm using the ArsClassica package to write my thesis in chemistry. This package uses old style figures for text and inline figures for math. My problem is, that I have to use a couple of figures with ...
Sargos's user avatar
  • 11
1 vote
0 answers
43 views

Getting cfr-lm and titlesec to work together

In my minimal example below, I would like to use the cfr-lm package to make all numbers oldstylenums, but use bold with small caps in the titles. I use pdflatex with TexMaker as my frontend. \...
Miloop's user avatar
  • 569
0 votes
0 answers
71 views

Set oldstylenums as the default writing style throughout the document

I am trying to set all numbers in my document in \oldstylenums format. There are about 345 instances where the numbers need to be changes to oldstylenums in the text. Is it possible to convert them ...
Miloop's user avatar
  • 569
1 vote
2 answers
117 views

Use lining figures in specific places with `newpxtext`

I have a LaTeX document set up with \usepackage[osf]{newpxtext} in the preamble. There are a few places I want to use lining figures (in text mode). How can I switch to lining figures for a short part ...
dbmag9's user avatar
  • 1,401
3 votes
2 answers
176 views

Getting siunitx to use text numerals, but only when it isn't in a table with fontspec

What I want: S column type in tables to use tabular/lining figures. \SI, \num, \SIrange, etc all to use old-style/proportional numbers. I recently asked a question about getting siunitx to work with ...
Canageek's user avatar
  • 17.8k
0 votes
0 answers
47 views

Using oldstylenums with siunitx. Or making it the default style in document

I am attempting to add use siunitx and want all my numbers to be in the oldstyle. However, I am unable to compile it correctly. Something like \SI{\oldstylenums{23}}{\milli\Molar} throws errors at me. ...
Miloop's user avatar
  • 569
1 vote
1 answer
392 views

Getting siunitx to use text numerals, but only when it isn't in a table

I'm using a lot of numbers in my thesis, and I'm use the cfr-lm package to make them old style instead of lining, so that they aren't so distracting- Otherwise it looks like I have random all caps ...
Canageek's user avatar
  • 17.8k
8 votes
0 answers
547 views

When *should* old style numbers be used?

Not sure if this is too subjective but here goes... Using fonts like newpx and ebgaramond, the old style figures options seem to affect all figures (as in numbers) in the document. Is this good ...
jessexknight's user avatar
  • 2,637
5 votes
1 answer
136 views

Oldstyle numerals by default with Lucida Bright T1

I bought the Lucida fonts from TUG. Is it possible to use the T1 version and have old style figures in text by default (that is, without the need of selecting them with \oldstylenums each time? % ...
efl's user avatar
  • 357
11 votes
2 answers
3k views

How to make all digits oldstyle?

What should I put in my document's preamble so that digits are oldstyle? Not "digits in textmode", "digits". Mathmode as well. I know some people dislike oldstyle digits in mathmode because they make ...
Rosie F's user avatar
  • 424
0 votes
1 answer
72 views

Empty citeindex using biblatex DeclareCiteCommand

I want to prevent biblatex using OldStyle figures for supercite indices. MWE: % !TEX engine=xelatex \documentclass{scrreprt} \usepackage{fontspec} \setmainfont [ BoldFont = ...
ju.'s user avatar
  • 311
3 votes
1 answer
217 views

Problem Libertine semi-bold with lining nums

I wish I could use the semi-bold version of the Libertine font. By default, I use elzevirian numbers and there, no problem, I can have elzevirian numbers in semi-bold. On some occasions, I would ...
Bastien's user avatar
  • 447
0 votes
0 answers
197 views

How to use lowercase numbers in-line? [duplicate]

I am wondering how you would make use of lowercase numbers in a document? Specifically, are there any packages that introduce these?
Brennan's user avatar
  • 199
3 votes
2 answers
227 views

XCharter, XeLaTeX, and getting a pointy oldstyle numeral one

I am using the XCharter OTF font with XeLaTeX and I want a pointy oldstyle numeral 1, whereas what I get with my MWE below is something that looks like I. \documentclass{minimal} \usepackage{fontspec}...
chandra's user avatar
  • 3,010
2 votes
1 answer
246 views

Lining numbers for footnotes

Referring to this thread: OldStyle Numbers in Body Text Only—Lining Numbers Otherwisem how can I instruct LuaLatex to use lining numbers for \textsuperscript and footnote markers if my font use by ...
user41063's user avatar
  • 1,947
2 votes
2 answers
221 views

Uppercase numbers in section headers - classicthesis

How can I force an uppercase number in the subsection header of classicthesis? As oldstyle numbers are used through classicthesis, this causes a problem for headers where abbreviations containing ...
anothersimonharris's user avatar
4 votes
1 answer
494 views

siunitx and XeLaTeX with OldStyle in text, but Lining in math

The attached example (not really an MWE) explains the problem better than I probably can here: % !TeX program = xelatex \documentclass{scrreprt} \usepackage{siunitx} \sisetup{% % detect-...
Alex Povel's user avatar
0 votes
1 answer
213 views

Currvita: cirillic and old style figures + right align item labels

I have this document with currvita package: \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage[T1]{fontenc} \usepackage{...
user avatar
13 votes
1 answer
567 views

Why do numbers in a table appear as oldstyle figures when using Palatino/Euler Math?

I'm using the Palatino font in combination with Euler Math. In most cases, digits in math mode appear as standard lined figures. However, in tables, they appear as oldstyle figures. Here's an ...
Nathan Friend's user avatar
6 votes
1 answer
200 views

How to get 'alternate 1' using XCharter with Luatex?

I am interested in using the XCharter font with oldstyle numerals and its 'alternate 1'. Using pdftex, this is simply achieved as \documentclass{article} \usepackage[osf]{XCharter} \usepackage[T1]{...
subtlesplendor's user avatar
3 votes
2 answers
362 views

Typesetting abbreviations in large small caps with numbers

I have trouble displaying an abbreviation nicely. Removing largesmallcaps is a small improvement, but looks really bad in full document. I want normal numbers in the rest of the document. How can I ...
Mats Nilsson's user avatar
4 votes
1 answer
649 views

Mathpazo old style numbers in text, but lining figures in tables, captions or section headings

My question is very similar to lining figures in tables and math, old style figures in text, except I am using the mathpazo font. I would like to use text figures in the body (through usepackage[osf]{...
maero21's user avatar
  • 578
3 votes
1 answer
622 views

Use oldstyle numbers for page numbers only, with KOMA-script

I'm using newtxtext/newpxtext together with scrbook and I'd like to use oldstyle numbers only for page numbers, but also for page numbers in the toc. The former package offers the macro \useosf, ...
Robert Seifert's user avatar
1 vote
0 answers
226 views

Changing font for numbers in entire document

Salam, I would like to ask an advice whether its possible to change font for numbers in the document. In essence, I have prepared a manuscript of a book (some 200 pages). I am using OldStandard font, ...
user136555's user avatar
2 votes
1 answer
516 views

Old style figures in math with newpxmath

I am using the packages newpxtext and newpxmath (both from newpx) with the option \useosf to get old style figures together with Palatino. However, I have searched in vain for a way of getting old ...
Christoffer Østfeldt's user avatar
12 votes
2 answers
763 views

Typeset dots around numbers (old typography)

I am trying to typeset some old book in which I notice that all numbers are surrounded with 1 dot (except if it's first in a line in which case there is no dot before or last in a line in which case ...
Joseph's user avatar
  • 297
1 vote
1 answer
173 views

Lining figures in sidenote marks

I would like my sidenote marks to be lining figures, not old-style figures. I have defined a new font family with lining figures, but how do I get this into the definition of the sidenote marks? \...
J. Bratt's user avatar
2 votes
1 answer
103 views

Babel discarding lining figures?

I am using Baskervaldx’s Baskerville for main text with osf option and Newtx’s Times for math with baskervaldx option. When pdflatex compiles without babel enabled, text figures are oldstyle and math ...
gwenj's user avatar
  • 121
4 votes
1 answer
2k views

Fontspec: Old-style numbers and fonts

I am trying to use old-style numbers in my LuaLaTeX document. My main font is "Cambria", which I do not want to change. As you can see in this picture (line 2) there is a change in font. I do not ...
TeXnician's user avatar
  • 33.3k
0 votes
1 answer
136 views

Numbering theorems with old style numbers, considering appendices

I'm currently writing a document in which I have theorems both in the main chapters and in the appendices. The theorems in the main chapters are numbered 1.1, 1.2, 2.1 and so on, and the ones in the ...
Ignacio Correa's user avatar
1 vote
1 answer
421 views

Monospaced lining figures in tables, proportional lining or oldstyle figures in math, tikz pictures, or normal text

I am trying to set a text where monospaced lining figures are used within tables (tabulars, longtable etc.), proportional lining figures in tikz pictures and math environments, as well as proportional ...
phx's user avatar
  • 1,106
1 vote
1 answer
1k views

My numbers appear as old style numbers in cursive mode

How can I change from old style numbers to normal looking numbers when using cursive modes such as \emph ? My problem occurs when I try to make a reference using the style=chem-acs package, because ...
Gustav Wørmer's user avatar
1 vote
1 answer
128 views

Copy/search of old style numbers with kpfonts

I have old style figures enabled globally with kpfonts. However, numbers are represented as special unicode characters from the point of view of copy-paste or search. I would like them to function as ...
Andreas's user avatar
  • 113
3 votes
2 answers
696 views

TOC with monospaced oldstyle numbers

I'm using oldstyle numbers in my thesis and noticed that the pagenumbers in the table of contents are not providing a straight left line. The following image shows this behaviour for the numbers from ...
Stefan's user avatar
  • 845
1 vote
0 answers
67 views

What is happening with my fonts? [duplicate]

I can't quite install the fonts properly and check the log files, nor can I identify if the font is loading properly. That is, I want to choose the typography but can't notice minor differences ...
nilon's user avatar
  • 554
4 votes
1 answer
573 views

Changing \leftmark number to \oldstylenums in memoir

Referring to the image below, I am trying to change the number '1' on the \leftmark header to \oldstylenums number format. Can anyone help? Here is my MWE: \documentclass[12pt,twoside,openright]{...
Farhan's user avatar
  • 123
2 votes
1 answer
527 views

Temporary use lining (new style) numbers when default is oldstyle numbers?

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 ...
Paapaa's user avatar
  • 633
3 votes
2 answers
2k views

Is there a way to use baskervald font and old style numbers for whole document?

Is there a way to use baskervald for text and old style numbers by default? I want to avoid customizing each number set. Also I want to have text with proper typography. I have a complete text of 138 ...
nilon's user avatar
  • 554
2 votes
2 answers
455 views

Changing font of numbers (Importing from a different font)

I want to use \usepackage[sfdefault]{merriweather}, but without the oldstyle numbers. I wanted to change the font of Sans Serif numbers to Helvetica, Epigrafica, ..., so I can use lining numbers. ...
Costa PR's user avatar