我正在使用以下代码,但在使用 amsthm 包时备注没有用斜体显示
\documentclass[letterpaper, 10 pt, conference]{ieeeconf} % Comment this line out if you need a4paper
%\documentclass[a4paper, 10pt, conference]{ieeeconf} % Use this line for a4 paper
\makeatletter
%\let\IEEEproof\proof
%\let\IEEEendproof\endproof
%\let\proof\@undefined
%\let\endproof\@undefined
\let\NAT@parse\undefined
\makeatother
\let\proof\relax
\let\endproof\relax
\usepackage[font=small]{caption}
\usepackage[font=footnotesize]{subcaption}
\usepackage[pdftex]{graphicx} % include this line if your document contains figures
\usepackage{booktabs} % For formal tables
\usepackage{algorithm, algpseudocode, dsfont, color, soul, tikz, amsmath, amssymb, amsfonts, amsthm, bbm, bbold, fixmath, mathtools, multirow, boldline, xcolor, colortbl, url, footnote, cite}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = blue, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = green %Colour of citations
}
%\setlength{\topsep}{3pt}
%\newtheorem{theorem}{Theorem}[section]
%\newtheorem{proposition}{Proposition}[section]
%%\newtheorem{proof}{Proof}
%\theoremstyle{definition}
%\newtheorem{definition}{Definition}[section]
%\newtheorem{problem}{Problem}[section]
%\theoremstyle{remark}
%\newtheorem{remark}{Remark}[section]
\setlength{\topsep}{3pt}
\newtheorem{theorem}{Theorem}[section]
%\newtheorem*{proof*}{Proof}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{algo}[theorem]{Algorithm}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{example}[theorem]{Example}
\newtheorem{claim}[theorem]{Claim}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\newtheorem*{remark*}{Remark}
\IEEEoverridecommandlockouts % This command is only needed if
% you want to use the \thanks command
\overrideIEEEmargins % Needed
\begin{document}
\maketitle
\thispagestyle{empty}
\pagestyle{empty}
\begin{remark}
My remark ...
\end{remark}
\end{document}
答案1
这是前面的结果\theoremstyle{remark}
。如果您希望注释斜体,则需要将其\newtheorem
声明移到该行上方\theoremstyle{definition}
。引用解释不同定理样式的文档:
plain
:斜体文本,上下有额外空格;(这是默认设置)definition
:直立文本,上下有额外空间;remark
:直立文本,上方和下方没有多余的空格。
值得注意的是,\newtheoremstyle
如果上述样式不能满足您的需求,该软件包还提供了一个命令,您可以使用该命令。例如,如果您希望注释为斜体,但没有样式提供的额外间距plain
。