我有以下形式的 3 个元素(每个元素约有 20 个方程式):
\begin{equation}
\begin{aligned}
% LOTS OF EQUATIONS %
\end{aligned}
\end{equation}
如何将这三个元素显示在一页的三列中?
我试过 :
\begin{tabular}{ccc}
\begin{equation}
\begin{aligned}
% LOTS OF EQUATIONS %
\end{aligned}
\end{equation}
&
\begin{equation}
\begin{aligned}
% LOTS OF EQUATIONS %
\end{aligned}
\end{equation}
&
\begin{equation}
\begin{aligned}
% LOTS OF EQUATIONS %
\end{aligned}
\end{equation}
\end{tabular}
但它不起作用并返回以下错误:
You can't use '\eqno' in restricted horizontal mode
我要怎么做我才想做的事?
答案1
您需要隐藏对齐运算符amsmath
环境 -&
和\\
- 来自tabular
。通过对内容进行分组(将其放在{
...内}
)来实现这一点。下面是一个最小示例,展示了它在tabularx
环境(通过这种方式更容易平等地传播它\linewidth
):
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{tabularx}% http://ctan.org/pkg/tabularx
\begin{document}
\noindent
\begin{tabularx}{\linewidth}{@{}XXX@{}}
{\begin{align}
y&=17x \\ y&=7x \\ y&=12x \\ y&=14x \\ y&=1x \\ y&=8x \\ y&=9x \\ y&=5x \\ y&=11x \\ y&=16x \\
y&=18x \\ y&=3x \\ y&=13x \\ y&=4x \\ y&=2x \\ y&=15x \\ y&=6x \\ y&=19x \\ y&=10x \\ y&=20x
\end{align}} &
{\begin{align}
y&=17x \\ y&=7x \\ y&=12x \\ y&=14x \\ y&=1x \\ y&=8x \\ y&=9x \\ y&=5x \\ y&=11x \\ y&=16x \\
y&=18x \\ y&=3x \\ y&=13x \\ y&=4x \\ y&=2x \\ y&=15x \\ y&=6x \\ y&=19x \\ y&=10x \\ y&=20x
\end{align}} &
{\begin{align}
y&=17x \\ y&=7x \\ y&=12x \\ y&=14x \\ y&=1x \\ y&=8x \\ y&=9x \\ y&=5x \\ y&=11x \\ y&=16x \\
y&=18x \\ y&=3x \\ y&=13x \\ y&=4x \\ y&=2x \\ y&=15x \\ y&=6x \\ y&=19x \\ y&=10x \\ y&=20x
\end{align}}
\end{tabularx}
\end{document}