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]{mathpazo}), but want to use lining figures for
- equations
- equation number in brackets
- table of contents
- page numbers
- table and figure labels (e.g. the caption: "Fig 1.1: Comparison of ...", I would like "1.1" to use lining figures)
- tables
For various reasons, I need to use pdftex.
How can I use mathpazo with these requirements? If you have typographical arguments against any of these points, please let me know!
A MWE with only text figures:
\documentclass{memoir}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[osf]{mathpazo}
\begin{document}
\tableofcontents
\section{Old style numbers}
Old style numbers belong in text 0123456789. Not in in-line equations $\sqrt{4+x^2} = y$
Not in equations:
\begin{align}
\min_{x,y} &\quad y^2 \\
\mathrm{s.t} &\quad x > 4\\
&\quad x < y^2
\end{align}
Nor in tables.
\begin{table}[!htb]
\caption{mean, median and standard deviation}
\label{tab:mean}%\libertineTabular
\begin{tabular}{lccccr}
\toprule
climate & species & mean & median & standard deviation & number of experiments \\
\midrule
1 & \textit{Picea abies} & 20,3699 & 20,0335 & 4,453 & 30 \\
2 & \textit{Picea abies} & 23,9864 & 12,6398 & 7,236 & 98 \\
\bottomrule
\end{tabular}
\end{table}
\[ a^2 + b^2 = c^2 \qquad 1234567890 \]
Old style numbers belong in text 0123456789.
\section{New section}
\section{Newer section}
\section{Newest section}
\end{document}
memoirtag, as this document class has lots of specialized font-handling capabilities. – Mico Apr 20 '18 at 05:19newpxtextandnewpxmathpackages in lieu of the somewhat-ancientmathpazopackage? – Mico Apr 20 '18 at 05:20newpxtextandnewpxmathin this context. – gusbrs Apr 20 '18 at 12:13newpxbecause I like oldstyle figures and the LaTeX Font Catalogue does not even suggestnewpxincludes them. So, thank you for pointing me to that! – gusbrs Apr 20 '18 at 13:26unicode-mathwith Asana Math as the math font and Palatino (or TeX Gyre Pagella) as the text font, loaded withNumbers=OldStyle. You can then use the method in my answer to switch to lining fixed-width numbers in tables. – Davislor Apr 20 '18 at 20:08fontencto set the text encoding to either T1 or LY1. Also a good idea to usemicrotype, which supports Palatino and its clones in both Type 1 and OpenType. – Davislor Apr 20 '18 at 20:10newpxtextandnewpxmathare fine and work with my document – maero21 Apr 21 '18 at 09:51