2010-10-07 45 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