Latex - \ multicolumn in align * environment

I would like to have the \ multicolumn effect as an effect in the align * environment, as shown in the code snippet (which doesn't work) below. Ie, I want the text to be aligned with the leftmost column, but it should not affect the alignment characteristics of the equation otherwise. \ intertext {...}, unfortunately, resets everything to the left margin, even if the equation is centered.

\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*} 

How to do it?

Thank you very much in advance!

+7
latex
source share
2 answers
 \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*} 

As a rule, as a replacement for \multicolumn in aligned environments, you can try experimenting with \multispan , but it seems to have a bad effect on alignment in this case.

+4
source share

Apparently, in math mode, the \ llap and \ rlap commands for horizontal alignment do not work. The mathtools package provides \ mathllap and \ mathrlap, which work there.

Source: this post .

+3
source share

All Articles