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.

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
4  
\begin{verbatim}...\end{verbatim} cannot help you? –  xport Dec 3 '10 at 2:57

1 Answer 1

up vote 7 down vote accepted

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

\documentclass{article}
\usepackage{alltt}
\begin{document}
\begin{alltt}
\rmfamily
hello \emph{emph}
  there
lipsum
\end{alltt}
\end{document}

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

Your Answer

 
discard

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.