我将 Palatino 字体与 Euler 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:
\[
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}
答案1
tabular
切换到文本模式,array
在数学中使用:
\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
\]
and in an array too:
\[
x =
\left \{
\begin{array}{cc}
0123 & 4567 \\
8910 & 0101
\end{array}
\right \}
\]
\end{center}
\end{document}