尝试使用 \begin{align*} 时出现“对齐制表符 & 位置错误”错误

尝试使用 \begin{align*} 时出现“对齐制表符 & 位置错误”错误

\begin{align*}当我尝试使用from进行对齐时出现错误amsmath

这是我的代码:

\begin{align*}  

$[\Gamma(A \otimes B)\Delta, C]             &\cong [\Gamma A B \Delta, C]$,\\
$[\Gamma, A/B]                              &\cong [\Gamma B, A]$, \\
$[\Gamma, A \backslash B]                   &\cong [\Gamma B, A]$, \\
$[\Gamma, A \times B]                       &\cong [\Gamma, A] \times [\Gamma, B]$, \\
$[\Gamma(A + B)\Delta, C]                   &\cong [\Gamma A \Delta C] \times [\Gamma B \Delta, C]$, \\
$[\Gamma I \Delta, C]                       &\cong [\Gamma \Delta, C]$, \\
$[\Gamma, 1]                                &\cong \{*\}$, \\
$[\Gamma 0 \Delta, C]                       &\cong \{*\}$, \\
$[\Gamma, \prod\limits_{x} A(X)]            &\cong [\Gamma, A(X)]x$, \\
$[\Gamma \coprod\limits_{x} A(X) \Delta, C] &\cong [\Gamma A(X) \Delta, C]$.

\end{align*}

以下是错误:

Paragraph ended before \align* was complete.
Missing $ inserted.
Missing \endgroup inserted.
Display math should end with $$.
Misplaced alignment tab character &. $[\Gamma(A \otimes B)\Delta, C] &
Misplaced alignment tab character &. $[\Gamma, A/B] &
Misplaced alignment tab character &. $[\Gamma, A \backslash B] &
Misplaced alignment tab character &. $[\Gamma, A \times B] &
Misplaced alignment tab character &. $[\Gamma(A + B)\Delta, C] &
Misplaced alignment tab character &. $[\Gamma I \Delta, C] &
Misplaced alignment tab character &. $[\Gamma, 1] &
Misplaced alignment tab character &. $[\Gamma 0 \Delta, C] &
Misplaced alignment tab character &. $[\Gamma, \prod\limits_{x} A(X)] &
Misplaced alignment tab character &. ...amma \coprod\limits_{x} A(X) \Delta, C] &
Misplaced \cr. \end{align*}
Misplaced \noalign. \end{align*}
Misplaced \noalign. \end{align*}
Extra }, or forgotten \endgroup. \end{align*}
Missing $ inserted. \end{align*}
Display math should end with $$. \end{align*}

为了澄清起见,我试图使这部分代码(1)在页面中集中,并且(2)在符号中对齐\cong在此处输入图片描述 像这样:

在此处输入图片描述

我该怎么做才能修复我的代码?

答案1

除了 (a) 删除两行全空白行和 (b) 省略所有$符号外,您可能还想 (c) 删除每行末尾看起来繁琐的逗号和 (d) 在最后两行中,使用_{X}而不是_{x}并增加方括号的大小。仍然在最后两行:或者,我会使用\textstyle而不是默认值来调整和符号的\displaystyle大小。\prodcoprod

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}  
[\Gamma(A \otimes B)\Delta, C]  &\cong [\Gamma A B \Delta, C] \\
[\Gamma, A/B]                   &\cong [\Gamma B, A] \\
[\Gamma, A \backslash B]        &\cong [\Gamma B, A] \\
[\Gamma, A \times B]            &\cong [\Gamma, A] \times [\Gamma, B] \\
[\Gamma(A + B)\Delta, C]        &\cong [\Gamma A \Delta C] \times [\Gamma B \Delta, C] \\
[\Gamma I \Delta, C]            &\cong [\Gamma \Delta, C] \\
[\Gamma, 1]                     &\cong \{*\} \\
[\Gamma 0 \Delta, C]            &\cong \{*\} \\
\Bigl[\Gamma,\prod_{X}A(X)\Bigr]&\cong [\Gamma, A(X)]x \\
\Bigl[\Gamma\coprod_{X}A(X) 
    \Delta,C\Bigr]              &\cong [\Gamma A(X) \Delta, C]
\end{align*}
\end{document}

相关内容