I have blocks surrounded by \begin{verbatim}
and \end{verbatim}
. I'd like to indent these about half an inch. I'm using pandoc to write pdfs via XeLaTeX and the default.latex pandoc template, so I'd like not to create a new environment, but to revise the behavior of verbatim in default.latex so that it is indented a little.
[Tex/LaTex] How to indent verbatim blocks
verbatim
Best Answer
The package
fancyvrb
has the enhancedVerbatim
environment, and the keyxleftmargin
:Moreover, you can redefine the standard
verbatim
like this:This gives the same result as above