The only class I know that defines \quote
as a command with argument is moderncv
(see Problem with \quote and \raggedright in ModernCV for an example).
All other classes I know define a quote
environment. As a consequence, the command \quote
is defined, but it should never be used in a document (unless it's in the moderncv
class, of course).
\documentclass{article}
\usepackage{lipsum}
\begin{document}
This is the first quote:
\begin{quote}
\lipsum[1]
\end{quote}
This sentence and the following quote should not be inside the first quote:
\begin{quote}
\lipsum[2]
\end{quote}
\end{document}
What happens in your example? When TeX sees \begin{quote}
, it issues \begingroup
that acts as a scope for the following setup declarations, such as wider margins, spacing between paragraphs and so on; after opening the group, the command \quote
is issued, which indeed does the setup.
When, later, \end{quote}
is found, a command \endgroup
is issued, that ends the scope and reverts parameters to their previous values. Since you don't have a scope, such setup continues forever.
\quote
is not a command with argument: correct is\begin{quote}text\end{quote}
\begin{quote}\lipsum[2]\end{quote}
moderncv
class, unfortunately, defines\quote
as a command with argument. But it's not so in the standard classes, in Koma classes andmemoir
.