%% %% The LaTeX Companion, 3ed %% %% Example 4-2-19 on page I-308 in "Customization keys for typesetting". %% %% Copyright (C) 2022 Frank Mittelbach %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% %% See https://www.latex-project.org/lppl.txt for details. %% \documentclass{tlc3exa} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{171.0pt} %StartShownPreambleCommands \usepackage{fancyvrb} %StopShownPreambleCommands \begin{document} \begin{Verbatim}[frame=single,framesep=5mm, label=\fbox{Example code}, labelposition=bottomline] A framed verbatim text. As always, it can consist of several lines. \end{Verbatim} \end{document}