align in tabular

[email protected]
Newsgroups gmane.comp.tex.tetex.general
Message-ID <20040416063129.GA4652@adelie>
hello,

i am trying to typeset a math align environment inside a tabular but the use of the ampersands seems to clash. does anyone know how to do this?

for example, this works:

\begin{tabular}{|p{0.9\textwidth}|}
  foo \\
  \begin{equation}
  x = y
  \end{equation} 
\end{tabular}

but this breaks latex:

\begin{tabular}{|p{0.9\textwidth}|}
  foo \\
  \begin{align}
  x &= y \\
  a &= b
  \end{align} 
\end{tabular}

cheers,
andrew.

-- 
Andrew B. Collier

Antarctic Research Fellow                         tel: +27 31 2601157
Space Physics Research Institute                  fax: +27 31 2616550
University of KwaZulu-Natal, Durban, 4041, South Africa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.