latex, problém vložit align* do tabulky
Ahoj, čekal, jsem, že latex bude bez problému umět zanořovat 'tagy' do sebe, ale narazil jsem:
Chci normálně do tabulky vložit prvky align. Nevím, proč to nejde. V čem by mohl být problém?
\documentclass[11pt]{article}
\usepackage{fontspec,amsmath,amssymb}
\usepackage[czech]{babel}
\newcommand{\dd}{\mathrm d}
\begin{document}
\begin{tabular}{ c c}
\begin{align*}
1+2
\end{align*}
&
\begin{align*}
2+3
\end{align*}
\end{tabular}
\end{document}
mám tam fůru chyb:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.10 \end{align*}
! Missing } inserted.
<inserted text>
}
l.10 \end{align*}
! Missing } inserted.
<inserted text>
}
l.10 \end{align*}
! Missing \cr inserted.
<inserted text>
\cr
l.10 \end{align*}
! Missing { inserted.
<inserted text>
{
l.10 \end{align*}
! LaTeX Error: \begin{tabular} on input line 7 ended by \end{align*}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \end{align*}
! Missing $ inserted.
<inserted text>
$
l.10 \end{align*}
! Display math should end with $$.
<to be read again>
\endgroup
l.10 \end{align*}
! Missing } inserted.
<inserted text>
}
l.10 \end{align*}
! Missing $ inserted.
<inserted text>
$
l.10 \end{align*}
! Missing } inserted.
<inserted text>
}
l.10 \end{align*}
! Misplaced alignment tab character &.
l.11 &
Overfull \hbox (17.0pt too wide) in paragraph at lines 7--12
[][]
! Misplaced \crcr.
\endtabular ->\crcr
\egroup \egroup $\egroup
l.15 \end{tabular}
! Too many }'s.
\endtabular ->\crcr \egroup
\egroup $\egroup
l.15 \end{tabular}
! Too many }'s.
\endtabular ->\crcr \egroup \egroup
$\egroup
l.15 \end{tabular}
! Extra }, or forgotten $.
<recently read> \egroup
l.15 \end{tabular}
! LaTeX Error: \begin{document} ended by \end{tabular}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.15 \end{tabular}
! Missing $ inserted.
<inserted text>
$
l.15 \end{tabular}
! Extra \endgroup.
<recently read> \endgroup
l.15 \end{tabular}
Přišel na to někdo?
Setkal se s tím někdo?