I am writing an essay and I am using amsthm to create "claim" and "proof" math environments. Usually when one uses a "proof" environment, Latex creates an empty line before the proof. For example:
Code: Select all
\documentclass{report}
\usepackage{amsthm}
\theoremstyle{remark}
\newtheorem{claim}{Claim}[chapter]
\begin{document}
\begin{claim}
This is a claim.
\end{claim}
\begin{proof}
This is a proof.
\end{proof}
\end{document}
Code: Select all
\documentclass{report}
\usepackage{amsthm}
\theoremstyle{remark}
\newtheorem{claim}{Claim}[chapter]
\newenvironment{claimproof}
{\vspace{-1pc}\proof}
{\endproof}
\begin{document}
\begin{claim}
This is a claim.
\end{claim}
\begin{claimproof}
This is a proof.
\end{claimproof}
\end{document}
Code: Select all
\documentclass{report}
\usepackage{amsthm}
\usepackage{enumitem}
\theoremstyle{remark}
\newtheorem{claim}{Claim}[chapter]
\newenvironment{claimproof}
{\vspace{-1pc}\proof}
{\endproof}
\begin{document}
\begin{enumerate}
\item Hello. This is some text in a list. Hello hello. This is some text in a list. Some text in a list. ajsdhsdkfjhsdkfjashkdfjdshkf.
\begin{claim}
This is a claim.
\end{claim}
\begin{claimproof}
This is a proof.
\end{claimproof}
\end{enumerate}
\end{document}