【问题标题】:Latex - \multicolumn within an align* environment [closed]乳胶 - align* 环境中的 \multicolumn [关闭]
【发布时间】:2010-10-07 13:44:24
【问题描述】:

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

我该如何做到这一点?

非常感谢!

【问题讨论】:

标签: latex equations


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    来源:this post

    【讨论】:

      猜你喜欢
      • 2017-08-11
      • 1970-01-01
      • 2022-01-17
      • 2021-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多