# Tag Info

15

tabular switches to textmode, use array in math: \documentclass[12pt]{article} \usepackage{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage[sc,osf]{mathpazo} \linespread{1.025} \usepackage[euler-digits,small]{eulervm} \usepackage[usenames, dvipsnames]{color} \begin{document} \begin{center} Normally, math digits appear as lined figures: \[ ...

13

Change the standard assignment of digits to the text font. \documentclass[12pt,a4paper]{article} \usepackage{cfr-lm} \usepackage{amsmath} % for math \DeclareMathSymbol{0}{\mathalpha}{letters}{0} \DeclareMathSymbol{1}{\mathalpha}{letters}{1} \DeclareMathSymbol{2}{\mathalpha}{letters}{2} \DeclareMathSymbol{3}{\mathalpha}{letters}{3} \DeclareMathSymbol{4}{...

11

This uses Latin Modern which is a revised version of Computer Modern. \documentclass[a4paper,12pt]{extarticle} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{cfr-lm} \begin{document} This is a document in the default font, made on 12/3/2014. The numbers in this document need to be in the oldstyle figures, which means ...

10

I wouldn't do it. Old books are not always examples of good typography. \documentclass{article} \makeatletter \def\changedigit#1{% \begingroup\lccode~=#1\lowercase{\endgroup \edef~}{{\mathchoice {\noexpand\mathnormal{\mathchar\the\mathcode#1}} {\noexpand\mathnormal{\mathchar\the\mathcode#1}} {\mathchar\the\mathcode`#1} {\...

10

There are quite a few Opentype sans-serif font families out there that feature old-style numerals as an option. However, since they are Opentype fonts, you will need to use either XeLaTeX or LuaLaTeX to access them. Not knowing anything about your document, I don't think it's helpful to recommend any particular sans-serif font. The following code shows ten ...

10

If you want to stick with the default TeX font, then you could use cfr-lm. This font isn't exactly Computer Modern, but Latin Modern, a modern clone of CM. The package allows to customize the font loading. \documentclass{article} \usepackage[sf=oldstyle]{cfr-lm} \begin{document} \textsf{1234567890} \end{document} or you could switch to old style numerals ...

10

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'...

10

\input expl3-generic % just for not using ConTeXt \ExplSyntaxOn \cs_set_eq:NN \dorecurse \prg_replicate:nn \ExplSyntaxOff \def\num#1{\unskip\adddot#1\adddot\ignorespaces} \def\adddot{% \cleaders\hbox to 1.5\dimexpr\fontdimen2\font-\fontdimen4\font\relax{\hss.\hss}% \hskip1.5\fontdimen2\font plus \fontdimen3\font minus \fontdimen4\font } \dorecurse{100}...

9

The libertine package per default has the options lining and tabular activated. In normal text you usually want proportional and oldstyle, though. \usepackage[oldstyle,proportional]{libertine} You don't want to set them as package options, though, but only after newtxmath has been loaded to get lining figures in math. This could be done by defining \...

9


9

I recommend looking at http://www.tug.dk/FontCatalogue/sansseriffonts.html for more possibilities. For the following fonts, no fontspec is required, which means they compile in pdflatex. Here is Alegreya Sans. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[sfdefault]{AlegreyaSans} %% Option 'black' gives heavier bold face %% The '...

8

Well, after seeing that my question did not get to enjoy much popularity, after delving into the fonts files in my MiKTeX setup, and after trying unsuccessfully with \renewcommand{\rmdefault}{MinionPro} on the basis of the folders found therein and of the content of my updmap.cfg file, I took a look at the style file MinionPro.sty itself. What I found there ...

7

You can use the command \addfontfeature{Numbers=Lining} to switch to lining numbers. In the following I defined the command \liningnumbers: \newcommand\liningnumbers{\addfontfeature{Numbers=Lining}} This can now be used as any other font switch like \small, \sffamily, etc. So now you only have to find a way to change the font for your four cases. This ...

7

Define a font family with the same font name, but with the Numbers=Lining option and change all places where lining numbers are desired. I don't think you really want this, though. I used Linux Libertine because I don't have Minion Pro. \documentclass{book} \usepackage{fontspec} \usepackage{enumitem} \usepackage{biblatex} %\usepackage{etoolbox} % already ...

7

As egreg points out, cfr-lm with no options is equivalent to: \usepackage[% rm={oldstyle=true,proportional=true},% sf={oldstyle=true,proportional=true},% tt={oldstyle=true,proportional=true,variable=true},% qt=false% ]{cfr-lm} In addition to using oldstyle rather than lining figures, this means that loading cfr-lm without options will do the following: it ...

7

(An up-front comment: I do not think that it's a good idea to use oldstyle numerals in math mode. But, since you asked...) I don't know how to achieve your formatting request with pdfLaTeX. However, it's straightforward to achieve it with LuaLaTeX (or XeLaTeX) and the fontspec and unicode-math packages. %%% compile with LuaLaTeX or XeLaTeX \documentclass{...

6

For the current newtxmath, don't use the osf option before \usepackage[libertine]{newtxmath} but add the following 4 lines immediately after: \makeatletter \def\libertine@figurestyle{OsF} %affects \libertine macro \makeatother \renewcommand*{\rmdefault}{LinuxLibertineT-OsF} % for normal text It's in newtxdoc.pdf.

6

This is straightforward with Xe/LuaTeX. For example: \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{Antykwa Torunska}[Numbers=OldStyle] \begin{document} A\,a B\,b C\,c Ch\,ch D\,d Dd\,dd E\,e F\,f Ff\,ff G\,g Ng\,ng H\,h I\,i J\,j L\,l Ll\,ll M\,m N\,n O\,o P\,p Ph\,ph R\,r Rh\,rh S\,s ...

6

You can change it with the tocpagenumberformat option. There is no need to define your own commands, \oldstylenums works fine. \documentclass{scrbook} \usepackage{newtxtext} \usepackage{siunitx} \usepackage{blindtext} \renewcommand{\sfdefault}{\rmdefault} \addtokomafont{pagenumber}{\oldstylenums} \addtokomafont{chapterentrypagenumber}{\oldstylenums} \...

6

The lucidabr package has no option for choosing oldstyle numbers by default, but you can do it manually. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lucidabr} \renewcommand{\rmdefault}{hlhj}% normally hlh \begin{document} 1234567890 \end{document}

5

Compare the fonts you get with or without the cfr-lm package \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{cfr-lm} %\usepackage{lmodern} \usepackage{fonttable} \newcommand{\printfontdimen}[1]{% \texttt{\string\fontdimen#1: }% \expandafter\texttt\expandafter{\the\fontdimen#1\font}% } \begin{document} \...

5

In mathematical writing, it is not common to use oldstyle (aka "text-style") numerals, whether or not oldstyle numerals are used in ordinary text. I believe lining-style numerals are preferred for math-mode material for two reasons. First, using text-style figures (some of which have descenders, and some of which have ascenders) in superscript and subscript ...

5

Surprisingly the Koma styles do not provide a simple way to hook in to this for all entries in the table of the contents. There are styles for the sectionentrypagenumber for the page numbers of sections (and corresponding ones for chapters and parts), but not for lower level entries. Digging through the code one finds that at the bottom is the standard ...

5

If you use oldstyle digits for section numbers, you should use them for all “nonmath” numbers, that is, all numbers not used in their proper mathematical sense, such as page numbers in addition to section numbers. Some font families provide oldstyle digits, but not Computer Modern other than with the clumsy \oldstyle command. However, you can use cfr-lm ...

5

No feature is defined to use the alternate, but you can add one this way: \documentclass{article} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature{ name = "salt", type = "alternate", data = { ["one.oldstyle"] = "one.Alt.oldstyle", }, } } \setmainfont{XCharter}[Numbers=OldStyle,RawFeature=+salt] \begin{document} ...

5

You can define a new font family for the text mode (here in green): \documentclass{scrreprt} \usepackage{siunitx} \sisetup{% number-text-rm=\unitnumberfont, detect-mode, }% \usepackage{unicode-math} \setmainfont[Numbers=OldStyle,Color=2244FF]{TeX Gyre Pagella} \newfontfamily\unitnumberfont{TeX Gyre Pagella Math}[Color=...

4

The style you've observed is the (so called) "Old Style". You can use that style with the default font using the command \oldstylenums. To see the effect, write \oldstylenums{1234567890}: To have sections numbered as in the document you have linked, you can type \renewcommand{\thesection}{\S\oldstylenums{\textbf{\arabic{section}}}.} as in the following ...

4

The package Libertine (as of the version published on february 11, 2014) provides the \useosf command, which, if used after loading the math font, sets old-style figures only for text (including headers). \documentclass[12pt]{memoir} \usepackage{textcomp} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[libertine]{newtxmath} \useosf \begin{...

4

As noted by @cgnieder the default appearance of numbers for the main text should be set to proportional and osf (old style figures). The chemistry equations should get proportional lining figures. Finally, tables should contain tabular figures (equal width), but personally I think old style figures are fine in a table. In the following code I define three ...

Only top voted, non community-wiki answers of a minimum length are eligible