I want to modify the standard amsthm
environment proof
so that its beginning, including the word "Proof", is indented by the same amount as any normal text paragraph.
How do I refer to the size of a normal text paragraph's indentation so that I can use it as a length with \hskip
, as in:
\makeatlatter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\SOMETHING %% WHAT GOES IN PLACE OF "SOMETHING"
\itshape
#1\@addpunct{.}]\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
}
\makeatother
I'd like this to be independent of any particular documentclass or the class's base font-size option, which is why I want to refer to the size of the normal paragraph indentation rather than specify something specific (looking at the code for the documentclass) like 10pt or 2em, or whatever.
Important I do not want to indent the entire proof, including the first line that contains "Proof" — just that first line.
Minimal example:
\documentclass{memoir}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\labelsep % WHAT GOES IN PLACE OF \labelsep??
\itshape
#1\@addpunct{.}]\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
}
\makeatother
\begin{document}
Lots of text here.
\begin{thm}
This is true.
\end{thm}
\begin{proof}
It's ovvious!
\end{proof}
\end{document}
On the output I've indicated graphically what I want to move.
\hskip\dimexpr\labelsep+\parindent\relax