The following code gives a compilation error.
\documentclass{report}
\usepackage{changepage}
\begin{document}
\chapter{Text1}
\begin{adjustwidth}{1cm}{2cm}
\section{Text2}
Text3
\begin{quote}
Text4
\end{quote}
\end{adjustwidth}
\end{document}
The error says: "Something's wrong--perhaps a missing \item." in the line of \begin{quote}. The error disappears when I remove either of
- the line
\chapter{Text1} - the line
\section{Text2} - the line
Text3 - the
adjustwidthenvironment
How can this be?
\leavevemodebefore you set thesection:\begin{adjustwidth}{1cm}{2cm} \leavevmode– Marco Daniel Jun 24 '12 at 07:50\vspacewould not work, because I want to number the lines. – Niels Lohmann Jun 24 '12 at 10:50