I have a tex file:
\documentclass{article} \usepackage{amsthm,mathtools,amssymb,enumitem} \usepackage{zref-clever} \zcsetup{cap=true,comp=false,sort=false} \newcommand{\addtheorem}[2]{% \AddToHook{env/#1/begin}{% \zcsetup{countertype={theorem=#1}}% }% \zcRefTypeSetup{#1}{Name-sg=#2}% \newtheorem{#1}[theorem]{#2}% } \numberwithin{equation}{section} \theoremstyle{definition} \newtheorem{theorem}{Theorem}[section] \addtheorem{corollary}{Corollary} \addtheorem{lemma}{Lemma} \addtheorem{proposition}{Proposition} \addtheorem{definition}{Definition} \addtheorem{assumption}{Assumption} \addtheorem{remark}{Remark} \addtheorem{example}{Example} \let\oldproofname=\proofname \renewcommand{\proofname}{\rm\bf{\oldproofname}} \renewcommand\qedsymbol{$\blacksquare$} \usepackage{tcolorbox} \tcbuselibrary{skins,breakable} \tcbset{skin=enhanced, breakable, colframe=black, colback=white, boxrule=0.4pt} \ExplSyntaxOn \clist_map_inline:nn {theorem,corollary,lemma,proposition} {\tcolorboxenvironment{#1}{}} \ExplSyntaxOff \setlist[enumerate]{wide=\parindent} \setlist[enumerate,2]{labelindent=2\parindent} \begin{document} \section{Introduction} \begin{theorem} \label{thm} \begin{enumerate} \item Generally, it extends the idea of the derivative from realvalued functions of one real variable to functions on normed spaces. \item The Fréchet derivative should be contrasted to the more general Gateaux derivative which is a generalization of the classical directional derivative. \end{enumerate} \end{theorem} The proof of \zcref{thm} is \begin{proof} We have something. \end{proof} \end{document} Could you explain how to indent the head proof by \parindent? My desired output (taken from here) is



amsthmbykeytheoremsand add the lines starting with\newkeytheoremstyleand\renewkeytheoremfrom the answer there … So IMHO this is a real duplicate.keytheorems). BTW: Usingkeytheoremsis a kind ofamsthmsolution, because the package usesamsthm.