![用细间隙框住 4 个方程](https://linux22.com/image/301989/%E7%94%A8%E7%BB%86%E9%97%B4%E9%9A%99%E6%A1%86%E4%BD%8F%204%20%E4%B8%AA%E6%96%B9%E7%A8%8B.png)
目前我有。
\begin{equation*}
\boxed{
\begin{split}
EQUATION1 \\
\\
EQUATION2 \\
\\
EQUATION3 \\
\\
EQUATION4
}
\end{equation*}
然而,两者之间的差距看起来很荒谬,并且希望差距更小,这可能吗?
答案1
通过添加额外的换行符 ( \\
),预计方程式之间会有额外的垂直空间。只需删除多余的换行符\\
并按照以下示例完成:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\boxed{
\begin{split}
y = x^2 + x -2 \\[-.1cm] % adjust the value as you wish
y = x^2 + x -2 \\[-.1cm]
y = x^2 + x -2 \\[-.1cm]
y = x^2 + x -2
\end{split}
}
\end{equation*}
\end{document}
输出为: