Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

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

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 3 down vote accepted

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}
share|improve this answer
    
Thanks so much! –  Thomas Dec 7 '11 at 3:42
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.