TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
up vote 5 down vote accepted

Easiest method:

share|improve this answer
That works fine, but the font size is reset. How can I change the font size in a group environment? – Adam May 15 '13 at 8:36
Never mind, it does work. Thanks! :) – Adam May 15 '13 at 8:42
\begin{ttfamily} ... \end{ttfamily} also works. Although I don't like it personally. – Leo Liu May 15 '13 at 10:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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