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 example:
Why are these numbers rendered differently? How can I make the digits in the table match the other math digits?
Here's the code for the screenshot above:
\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:
\[
x = 1234567890
\]
However in a table, numbers appear as oldstyle figures:
\[
x =
\left \{
\begin{tabular}{cc}
0123 & 4567 \\
8910 & 0101
\end{tabular}
\right \}
\]
\end{center}
\end{document}
eulerpx
package for a Euler/Palatino mashup, or Khaled Hosny’s OpenType math font Neo Euler, usable withunicode-math
.