# Margins for proof environment

The code below is (almost) the proof environment of amsthm:

\newenvironment{proof}[1][\proofname]%
{%
\par\pushQED{\qed}\normalfont\topsep6\p@\@plus6\p@\relax%
}{%
\popQED\endtrivlist\@endpefalse%
}%


I know how to control the left indentation with a \hangindent but I would like to know how to control the rightmargin in a simple way?

-

Change

\trivlist\item[\hskip\labelsep\bfseries#1\@addpunct{.}]\ignorespaces


to

\begin{list}{}{\rightmargin=...\leftmargin=...}%

and add \end{list} instead of \endtrivlist to the end of your declaration