I have the following environment:
\documentclass{book}
\usepackage{fancyvrb}
\newenvironment{codesample}
{
\scriptsize
\begin{center}
\BVerbatim
}
{
\endBVerbatim
\end{center}
}
\begin{document}
\begin{codesample}
sdfsdfsdf
\end{codesample}
\end{document}
When I try to use I get error:
File ended while scanning use of \FancyVerbGetLine.
How can I achieve small and centered verbatim text with the environment? Like this:
\BVerbatim
and\endBVerbatim
macros come from? Please provide an MWE (from\documentclass...
to\end{document}
) that we can compile to try and solve your problem.