I would like to display \begin{verbatim}...\end{verbatim}
inside the environment verbatim like in the folowing piece of code. Is it possible ?
\begin{verbatim}
Bla, bla,
\begin{verbatim}...\end{verbatim}
Bla, bla,...
\end{verbatim}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI would like to display \begin{verbatim}...\end{verbatim}
inside the environment verbatim like in the folowing piece of code. Is it possible ?
\begin{verbatim}
Bla, bla,
\begin{verbatim}...\end{verbatim}
Bla, bla,...
\end{verbatim}
You could use the verbatim
package then define your own variant
\newenvironment{myverbatim}%
{\verbatim}%
{\endverbatim}
then you can use myverbatim
if you want to have literal \end{verbatim}
\begin{myverbatim}
Bla, bla,
\begin{verbatim}...\end{verbatim}
Bla, bla,...
\end{myverbatim}
verbatim
, could you use thelistings
package instead?