Why is defining a new name for environment for a command produces different result than when using the environment directly without defining a name for it?
Here are 2 examples, one uses a name for the env. and one does it. The second one is missing the first line in the verbatim text. Same text is used in both examples.
Code is below:
\documentclass{article}
\usepackage{fancybox}
\newenvironment{myStuff}%
{\VerbatimEnvironment\begin{Sbox}\begin{BVerbatim}}%
{
\end{BVerbatim}\end{Sbox}\fbox{\TheSbox}
}
\begin{document}
\begin{myStuff}
line 1
line 2
line 3
\end{myStuff}
\end{document}
second example
\documentclass{article}
\usepackage{fancybox}
\begin{document}
\begin{Sbox}\begin{BVerbatim}%
line 1
line 2
line 3
\end{BVerbatim}
\end{Sbox}\fbox{\TheSbox}
\end{document}
Texlive 2014