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

I would like to display \begin{verbatim}...\end{verbatim} inside the environment verbatim like in the folowing piece of code. Is it possible ?

Bla, bla,
Bla, bla,...
share|improve this question
Any reasons why you have to use verbatim, could you use the listings package instead? – ArTourter Apr 6 '12 at 22:37
up vote 17 down vote accepted

You could use the verbatim package then define your own variant


then you can use myverbatim if you want to have literal \end{verbatim}

Bla, bla,
Bla, bla,...
share|improve this answer
So simple... Sorry for my to-easy-to-solve-question... – projetmbc Apr 6 '12 at 22:41

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.