1 % Change margins on the fly
2 \newenvironment{changemargin}[2]{%
4 \setlength{\topsep}{0pt}%
5 \setlength{\leftmargin}{#1}%
6 \setlength{\rightmargin}{#2}%
7 \setlength{\listparindent}{\parindent}%
8 \setlength{\itemindent}{\parindent}%
9 \setlength{\parsep}{\parskip}%
12 % Get rid of the extra space inserted by the previous line