Typing “&” in tables [duplicate]

Possible Duplicate:
Escape character in LaTeX
How to type & in LaTeX?

\begin{tabular}{ l | c || r | }
A&B & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}


How would I type & in LaTeX? Because I want for example, A&B to be in one box, but I cant seem to figure out how.

-

marked as duplicate by Alan Munn, Torbjørn T., Caramdir, Leo Liu, Stefan Kottwitz♦Dec 7 '11 at 7:09

Can you try \& and let us know? –  percusse Dec 7 '11 at 3:38
Duplicate of How to type & in LaTeX which is a duplicate of Escape character in LaTeX. –  Alan Munn Dec 7 '11 at 3:46

Since & is reserved, you need to escape it using \&:

\documentclass{article}
\begin{document}
\begin{tabular}{ l | c || r | }
A\&B & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{tabular}
\end{document}

-
Thanks so much! –  Thomas Dec 7 '11 at 3:42