3

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.

2

1 Answer 1

3

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

enter image description here

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

Not the answer you're looking for? Browse other questions tagged .