我想在align *环境中有一个\ multipleolumn like效果,如下面的代码片段(不起作用)所示。即,我希望文本与最左边的列对齐,但不应影响等式的对齐特征。不幸的是,\ intertext {...}将所有内容都刷新到左边距,即使方程居中也是如此。
\begin{align*}
1 & 2 & 3 & 4 & 5 \\
\multicolumn{5}{l}{Some text that I want to appear here..} \\
%\intertext{Some text that I want to appear here} \\
7 & 8 & 9 & 10 & 11 & 12
\end{align*}
我该如何实现?
非常感谢提前!
答案 0 :(得分:6)
\begin{align*}
1 & 2 & 3 & 4 & 5 \\
\omit\rlap{Some text that I want to appear here...}\\
7 & 8 & 9 & 10 & 11 & 12
\end{align*}
通常,在类似对齐的环境中替换\multicolumn
时,可以尝试使用\multispan
进行试验,但在这种情况下它似乎会严重干扰对齐。
答案 1 :(得分:4)
显然在数学模式下,水平对齐的命令\ llap和\ rlap不起作用。包mathtools提供了\ mathllap和\ mathrlap,它们可以在那里工作。
来源:this post。