如何在定理環境中使編號非斜體?

如何在定理環境中使編號非斜體?

我的文檔中的典型定理如下所示 在此輸入影像描述

我想要標籤(A1)(A2)非斜體。恕我直言,這會更美觀,因為這些標籤將與Assumption 1.1..非常感謝您的詳細闡述!

\documentclass{article}
\usepackage{amssymb,amsthm,amsmath,enumitem}
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{assumption}[theorem]{Assumption}

\begin{document}

\section{Introduction}

\begin{assumption} We assume that 
\begin{enumerate}[label=(A\arabic*)]
\item Statement 1
\item Statement 2
\end{enumerate}
\end{assumption}

\end{document}

答案1

使用\textnormal{}\normalfont.

\documentclass{article}
\usepackage{amssymb,amsthm,amsmath,enumitem}
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{assumption}[theorem]{Assumption}

\begin{document}

\section{Introduction}

\begin{assumption} We assume that 
\begin{enumerate}[label=\textnormal{(A\arabic*)}]
\item Statement 1
\item Statement 2
\end{enumerate}
\end{assumption}

\end{document}

在此輸入影像描述

對於全域設置,請使用以下程式碼。

\renewcommand{\labelenumi}{\textnormal{(A\theenumi)}}%\labelenumi the first level of enumerate.

順便說一句,對於假設,最好使用定理以外的定義風格,即假設的內容不應該是斜體。

答案2

我找到了一個全球有效的解決方案答:\setlist{font=\normalfont}。完整的程式碼是

\documentclass{article}
\usepackage{amssymb,amsthm,amsmath,enumitem}
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{assumption}[theorem]{Assumption}

\begin{document}

\setlist{font=\normalfont}

\section{Introduction}

\begin{assumption} We assume that 
\begin{enumerate}[label=(A\arabic*)]
\item Statement 1
\item Statement 2
\end{enumerate}
\end{assumption}

\end{document}

相關內容