为什么我的定理不是斜体?

为什么我的定理不是斜体?

我正在用论文latex 中的文档类。但是,我的所有定理都不是用斜体字体的。我不确定问题出在哪里。

供您参考,以下是我的 latex 文件的序言。

\documentclass[12pt,a4paper,twoside]{Thesis} % Paper size, default font size and one-sided paper

\DeclareMathOperator{\Tr}{Tr}
\let\savedegree\degree
\let\degree\relax
\let\savedegree\ref
\let\rem\relax

\usepackage{amscd,amssymb,verbatim}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[usenames, dvipsnames]{color}
\usepackage{amsfonts}
\usepackage{graphicx}
\setcounter{MaxMatrixCols}{30}
\providecommand{\U}[1]{\protect\rule{.1in}{.1in}}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{cor}[theorem]{Corollary}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{Def}[theorem]{Definition}
\newtheorem{ex}[theorem]{Example}
\newtheorem{question}[theorem]{Question}
\numberwithin{equation}{section}

\usepackage{adjustbox}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage[ruled,vlined,noresetcount]{algorithm2e}
\usepackage[square, numbers, comma, sort&compress]{natbib} % Use the natbib reference package - read up on this to edit the reference style; if you want text (e.g. Smith et al., 2012) for the in-text references (instead of numbers), remove 'numbers' 

\title{\ttitle} % Defines the thesis title - don't touch this

%extra packages
\usepackage{float}
\usepackage{color,soul} 

该模板的来源取自github 页面。所有必要的文件都可以在那里找到。请注意,上面的序言与 github 页面中给出的并不完全相同,因为我对其进行了修改以适合我的目的。

答案1

您的示例无法编译,问题出在您包含但未共享的文件中。不幸的是,这使得无法测试可能的解决方案。如果您提供 MCVE,我们将更容易为您提供帮助(删除多余的行,直到只剩下重现问题的最少命令集,这是一种缩小范围的好方法)。

然而,后续问题表明你Thesis.cls定义了一种新的定理样式。由于这是最近定义的定理样式,因此它适用于你创建的每种新类型的定理。

\theoremstyle{plain}您可以通过将该命令放在第一个之前来重置定理格式\newtheorem

相关内容