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

This is probably a simple question, but I can't find the answer anywhere. How can I tell tex (latex specifically) not to format a piece of text? I.e. I want to keep indentation, line breaks, etc.

share|improve this question
\begin{verbatim}...\end{verbatim} cannot help you? – xport Dec 3 '10 at 2:57
up vote 9 down vote accepted

I think the closest thing that will do what you want is the alltt package:

hello \emph{emph}

Unfortunately alltt doesn't contain any features to globally change the font it uses, but as you can see setting it to use roman manually works fine.

share|improve this answer

What you probably want is actually the "verbatim" environment. http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/PreFormatted.html


This compiles to:

Text as rendered

share|improve this answer

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.