6

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}
5

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
  • 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
4

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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