latex:公式中统一字体大小(给定大小的字体),与公式内容无关

latex: uniform font size (font of a given size) in the formula, regardless of the content of the formula

告诉我如何使公式的字体大小在整个公式中保持相同。

如果你用标准的方式写公式,那么在连分数和其他一些条目中字体大小开始改变,这是非常糟糕的

例如:

\begin{multline*}
\begin{split}
1+\frac{1}{2+\frac{1}{3+\frac{1}{1+x}}}
\end{split}
\end{multline*}

解决方案:

使用\cfrac代替\frac

您正在设置一个 c 继续 frac 选项,其中存在 \cfrac{<num>}{<denom>}。所以你可以使用

\[
  1 + \cfrac{1}{2 + \cfrac{1}{3 + \cfrac{1}{1 + x}}}
\]

一般来说,TeX 会使用 \scriptstyle\scriptscriptstyle 设置嵌套的 \fracs。如果你想在分数中强制使用常规 \displaystyle\textstyle 字体,你可以使用 \dfrac\tfrac:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\[
  1 + \frac{1}{2 + \frac{1}{3 + \frac{1}{1 + x}}}
\]

\[
  1 + \dfrac{1}{2 + \dfrac{1}{3 + \dfrac{1}{1 + x}}}
\]

\[
  1 + \cfrac{1}{2 + \cfrac{1}{3 + \cfrac{1}{1 + x}}}
\]

\end{document}