\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*}
Generally, as a replacement for \multicolumn within align-like environments, one could try to experiment with \multispan, but it seems to interfere badly with the alignment in this case.
Apparently in math mode, the commands \llap and \rlap for horizontal alignment don't work. The package mathtools provides \mathllap and \mathrlap, which do work there.
发布评论
评论(2)
一般来说,作为类似对齐环境中的
\multicolumn
的替代品,人们可以尝试使用\multispan
进行实验,但在这种情况下它似乎会严重干扰对齐。Generally, as a replacement for
\multicolumn
within align-like environments, one could try to experiment with\multispan
, but it seems to interfere badly with the alignment in this case.显然在数学模式下,用于水平对齐的命令 \llap 和 \rlap 不起作用。 mathtools 包提供了 \mathllap 和 \mahrlap,它们确实可以在那里工作。
资料来源:这篇文章。
Apparently in math mode, the commands \llap and \rlap for horizontal alignment don't work. The package mathtools provides \mathllap and \mathrlap, which do work there.
Source: this post.