2010-10-07 94 views
7

我想在对齐环境中有一个类似于\多列的效果,如下面的代码片段所示(不起作用)。即,我希望文本与最左边的列对齐,但不应该影响等式的对齐特性。 \ 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*} 

我该如何做到这一点?

非常感谢提前!

+3

您可以在[tex.stackexchange.com](http://tex.stackexchange.com)找到一个完整的社区,其中没有TeX问题太小。 – 2010-11-22 19:41:14

+4

这个问题似乎是脱离主题,因为它属于http://tex.stackexchange.com/ – BartoszKP 2014-01-16 15:21:00

回答

4

\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实验,但它似乎在这种情况下,对准严重干扰。

3

显然,在数学模式下,用于水平对齐的命令\ llap和\ rlap不起作用。包mathtools提供\ mathllap和\ mathrlap,它们在那里工作。

来源:this post