Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\newenvironment{proof}[1][\proofname]%
{%
\par\pushQED{\qed}\normalfont\topsep6\p@\@plus6\p@\relax%
\trivlist\item[\hskip\labelsep\bfseries#1\@addpunct{.}]\ignorespaces%
}{%
\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?

share|improve this question
add comment

1 Answer

up vote 10 down vote accepted

Change

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

to

\begin{list}{}{\rightmargin=...\leftmargin=...}%
  \item[\hskip\labelsep\bfseries#1\@addpunct{.}]\ignorespaces

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

share|improve this answer
    
interesting but there is still a slight spurious horizontal space that I cannot remove? –  pluton Nov 17 '11 at 19:39
    
I am not sure what do you mean. Can you give a MWE? –  Boris Nov 17 '11 at 19:41
    
something went wrong but I cannot reproduce it now. Your code works well. Thanks! –  pluton Nov 17 '11 at 20:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.