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.

I am using the proof environment in amsbook. Unlike amsart, the proof is automatically indented. Is there a way of cancelling the indentation?

\documentclass{amsbook}
\begin{document}
\noindent This is a non-indented sentence.
\begin{proof}
This is a proof.
\end{proof}
\end{document}
share|improve this question
    
Thanks @egreg for editing. –  user8190 Sep 27 '11 at 12:39

2 Answers 2

up vote 5 down vote accepted

Say

\usepackage{etoolbox}
\expandafter\patchcmd\csname\string\proof\endcsname
  {\normalparindent}{0pt }{}{}

which is equivalent (but shorter) to redefining the proof environment as follows

\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
  \pushQED{\qed}%
  \normalfont \topsep6\p@\@plus6\p@\relax
  \trivlist
  \itemindent\z@ % original has \normalparindent
  \item[\hskip\labelsep
        \scshape
    #1\@addpunct{.}]\ignorespaces
}{%
  \popQED\endtrivlist\@endpefalse
}
\makeatother
share|improve this answer
    
The first block somehow doesn't work for me, but the second does exactly what I want! Thanks! –  user8190 Sep 27 '11 at 16:06

amsbook defines \normalparindent (18 pt) and uses it for \itemindent within the proof environment. Here's a redefinition which avoids that, I simply redefined and commented one line out:

\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
  \pushQED{\qed}%
  \normalfont \topsep6\p@\@plus6\p@\relax
  \trivlist
  %\itemindent\normalparindent
  \item[\hskip\labelsep
        \scshape
    #1\@addpunct{.}]\ignorespaces
}{%
  \popQED\endtrivlist\@endpefalse
}
\makeatother
share|improve this answer
    
Thanks Stefan, this is exactly what I wanted! –  user8190 Sep 27 '11 at 16:07

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.