I am trying to write a new enviroment to add text into a \fbox, when I use \fbox on its own, it works quite nicely
\fbox{\begin{minipage}{0.9\textwidth}
does this work, I would love if it did
\end{minipage}}
If I then add this into a new comand called notes Latex dosen't seem to like it
\newenvironment{notes}
{\fbox{\begin{minipage}{0.9\textwidth}}}
{\end{minipage}}
When I then enter something into this environment in my document it comes up with errors
\begin{notes}
Does this work, I would love if it did
\end{notes}
The error I recieve is:
! Extra }, or forgotten \endgroup.
\fbox ...xsep {#1}\kern \fboxsep \color@endgroup }
\@frameb@x \relax
l.80 \begin{notes}
?

\newcommand\notes[1]{\fbox{\begin{minipage}{0.9\textwidth}#1\end{minipage}}}. Then the usage is\notes{Does this work, I would love if it did}– Steven B. Segletes Nov 19 '13 at 15:19lrboxin latex2e, see the fbox/lrbox example on page 13 ofusrguide(texdoc usrguidein texlive at least or http://texdoc.net/texmf-dist/doc/latex/base/usrguide.pdf – David Carlisle Nov 19 '13 at 15:34