Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex's verbatim: how to indent every instance?

Tags:

latex

I have a latex document with a bunch of verbatim text. I would like to indent every single instance of these.

For example:

This is regular text.
\begin{verbatim}
This is verbatim text.
\end{verbatim}

I want "This is verbatim text" to be indented a centimeter or two. How do I do this?

like image 430
carl Avatar asked Jan 27 '10 00:01

carl


1 Answers

You could wrap all your verbatim environments in quote environments:

\begin{quote}
\begin{verbatim}
This is indented verbatim text.
Works for multiple lines, too.
\end{verbatim}
\end{quote}
like image 50
ezod Avatar answered Sep 30 '22 20:09

ezod