I have the following document:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{defn}[thm]{Definition}
\newtheorem{rem}[thm]{Remark}
\newtheorem{proof}{Proof}
\numberwithin{equation}{section}
\begin{document}
\section{Section 1}
\begin{thm}
Theorem.
\end{thm}
\begin{rem}
Remark.
\end{rem}
\begin{lem}
Lemma
\end{lem}
\begin{prop}
Proposition.
\end{prop}
\begin{cor}
Corollary.
\end{cor}
\begin{defn}
Definition.
\end{defn}
\begin{thm}
Theorem.
\end{thm}
\begin{proof}
Proof.
\end{proof}
\end{document}
which provides the following:
How do I remove \textit from the content of the proof (in my example that is: some proof here), definition and remark? I have tried to change the \newtheorem command but it didn't work.



\newtheoremcommand but it didn't work" isn't actionable. It would be very helpful if you provided some information about what you tried in terms of modifying\newtheorem. Anyway, please see the answer I posted for a solution which (a) modifes the\newtheoremcommand and (b) works. :-) – Mico Nov 18 '23 at 12:55