% ================================================== % Theorem environments % ================================================== % Keep the PDF destination with the first lines of each numbered statement. \AddToHook{env/theorem/before}{\Needspace{4\baselineskip}} \AddToHook{env/lemma/before}{\Needspace{4\baselineskip}} \AddToHook{env/proposition/before}{\Needspace{4\baselineskip}} \AddToHook{env/corollary/before}{\Needspace{4\baselineskip}} \AddToHook{env/claim/before}{\Needspace{4\baselineskip}} \AddToHook{env/definition/before}{\Needspace{4\baselineskip}} \AddToHook{env/example/before}{\Needspace{4\baselineskip}} \AddToHook{env/question/before}{\Needspace{4\baselineskip}} \AddToHook{env/remark/before}{\Needspace{4\baselineskip}} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{claim}[theorem]{Claim} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{question}[theorem]{Question} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} % ================================================== % cleveref names % ================================================== \crefname{theorem}{theorem}{theorems} \Crefname{theorem}{Theorem}{Theorems} \crefname{lemma}{lemma}{lemmas} \Crefname{lemma}{Lemma}{Lemmas} \crefname{proposition}{proposition}{propositions} \Crefname{proposition}{Proposition}{Propositions} \crefname{corollary}{corollary}{corollaries} \Crefname{corollary}{Corollary}{Corollaries} \crefname{claim}{claim}{claims} \Crefname{claim}{Claim}{Claims} \crefname{definition}{definition}{definitions} \Crefname{definition}{Definition}{Definitions} \crefname{example}{example}{examples} \Crefname{example}{Example}{Examples} \crefname{question}{question}{questions} \Crefname{question}{Question}{Questions} \crefname{remark}{remark}{remarks} \Crefname{remark}{Remark}{Remarks} \NewCommandCopy{\paperBeginProof}{\proof} \RenewDocumentCommand{\proof}{O{\proofname}}{% \paperBeginProof[\upshape\bfseries{#1}]}