# Longtable monospace font

How do I format all the text in a longtable to monospace. Adding \texttt{ before or after the \begin{longtable} and a } at the end gives me a

Runaway argument?
{ \begin {longtable}{lll}
! Paragraph ended before \text@command was complete.


error.

\begingroup

• \begin{ttfamily} ... \end{ttfamily} also works. Although I don't like it personally. – Leo Liu May 15 '13 at 10:51