0

I can't figure out how to work around this problem. I need to indent the word 'Proof' in the proof environment of amsthm without using the xpatch (xpatch is described in here Indent the word “Proof” in environment proof of amsthm).

I want to avoid using any patches because they might stop working in the future. I want to do this using amsthm package only.

This is the minimum working code:

\documentclass[12pt,a4paper]{book}
\usepackage{amsthm}
\usepackage{indentfirst}
\usepackage{lipsum} 

\newtheoremstyle{sltheorem}
{2pt}                % Space above
{-2pt}                % Space below
{\it}        % Theorem body font % (default is "\upshape")
{17pt}                % Indent amount
{\scshape}       % Theorem head font % (default is \mdseries)
{.}               % Punctuation after theorem head % default: no punctuation
{ }               % Space after theorem head
{Theorem \thetheorem}                % Theorem head spec
\theoremstyle{sltheorem}
\newtheorem{theorem}{Theorem}[chapter]

\begin{document}

\chapter{one}
\lipsum[2]

\begin{theorem}
\lipsum[2]
\end{theorem}

\begin{proof}
\lipsum[2]
\end{proof}

\end{document}
12
  • @KersouMan thanks for the edit. – Peppa Pig Sep 8 '20 at 12:17
  • Welcome to TeX.SE ... Is \renewcommand suits for you? – MadyYuvi Sep 8 '20 at 12:22
  • @MadyYuvi yes, it does. – Peppa Pig Sep 8 '20 at 12:22
  • Using \renewcommand is not really better than patching: if the definition of \proof changes, the patch may cease to work (and you may be warned of the failure if you use something like \ddt in the trailing argument (any undefined command would do), but the \renewcommand will pass unnoticed and give an altogether different result. – egreg Sep 8 '20 at 12:36
  • @PeppaPig egreg is one of the Boss in TeX/LaTeX, please follow as he suggested... – MadyYuvi Sep 8 '20 at 12:43

Your Answer

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

Browse other questions tagged or ask your own question.