[Tex/LaTex] How to use the quote environment inside a \framebox

boxesframedquoting

Now I run into a problem with frameboxes. Why is the following
not valid LaTeX code?

\framebox{
The following text was taken from:
\begin{quote}
Erik Pickles: How it will end
\end{quote}
}

I get the following error:

something's wrong — maybe an missing item?

Best Answer

Framebox doesn't like have an environment inside it. You could consider using the framed package.

\documentclass{article}
\usepackage{framed}
\begin{document}
\begin{framed}
Here is text
\begin{quote}
Here is quote
\end{quote}
\end{framed}
\end{document
Related Question