本问题来自这里
@u144184 在排版中遇到了某个很长的公式影响了当前页面layout的问题,需要进行优化:
预期有以下两个处理方式:
如下面的例子:
\documentclass{article}
\usepackage[b6paper,landscape,showframe]{geometry}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\begin{equation}
\scriptstyle
a^2+b^2=c^2
\end{equation}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\begin{equation}
\text{s.t.}=\left\{\scriptscriptstyle
\begin{gathered}
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
1234 \\
\end{gathered}
\right.
\end{equation}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\begin{equation}
\scriptstyle
a^2+b^2=c^2
\end{equation}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\end{document}
注意上面MWE中\geometry{b6paper,landscape}
为为了缩短代码长度刻意构造,不希望改变纸张大小
这样做的顾虑是,由于TeX
本身仅仅只是为数学字体的大小定义了\displaystyle
,\textstyle
,\scriptstyle
以及\scriptscriptstyle
这四个大小样式。且在sources2e
中,使用\DeclareMathSizes
预定义了如下四种样式的字体大小。
如果上一个问题的结果是应该减少公式(4)的内容,保持数学公式字体大小统一。那么“怎么做”自然不许存在。
但如果允许公式(4)将其缩小到版心范围内,我已经尝试过即使使用\scriptscriptstyle
似乎(?)也无法实现目标。此时是否应该自行局部地修改\DeclareMathSizes
?
或者换言之,在排版遇到类似内容超过页面大小的公式时,最佳实践应该是什么?