没有与 IEEE 冲突的编号环境

没有与 IEEE 冲突的编号环境

所以我创建了一个remark环境,它只使用一次,我不想给它编号。要使用\newtheorem*命令,我需要激活amsthm包……但这个包会通过将许多其他东西变成斜体来改变IEEEtran样式……有没有办法我可以手动编号环境,这样我就可以用空格键来编号

%\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
%\documentclass[journal]{IEEEtran}
%\documentclass[journal,12pt,draftclsnofoot,onecolumn]{IEEEtran}

%\documentclass[conference]{IEEEtran}

       % This command is only
                                                          % needed if you want to
                                                          % use the \thanks command
%\overrideIEEEmargins

% *** GRAPHICS RELATED PACKAGES ***
%

% *** MATH PACKAGES ***
%

%\documentclass[letterpaper, 10 pt, conference]{ieeeconf}   
\documentclass[conference]{IEEEtran}
%\IEEEoverridecommandlockouts      
%% INFOCOM 2013 addition:

\makeatletter
\def\ps@headings{%
\def\@oddhead{\mbox{}\scriptsize\rightmark \hfil \thepage}%
\def\@evenhead{\scriptsize\thepage \hfil \leftmark\mbox{}}%
\def\@oddfoot{}%
\def\@evenfoot{}}
\makeatother
\pagestyle{headings}










\usepackage{cite}
\usepackage{url}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
\usepackage{subfig}
\usepackage{amssymb,amsmath,graphicx,charter,latexsym}
\usepackage{enumerate}
\usepackage{comment}
\usepackage{verbatim}

\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma}
\newtheorem{corollary}{Corollary}
\newtheorem{theorem}{Theorem}
\newtheorem{example}{Example}
%\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\abs}[1]{\lvert#1\rvert}
\newtheorem{remark}{Remark}
\newtheorem{observation}{Observation}
% *** SPECIALIZED LIST PACKAGES ***
%


\allowdisplaybreaks[4]
\usepackage{bbm}

% *** ALIGNMENT PACKAGES ***
%

\begin{document}
\title{\bf{xx}}
\author{xx
\thanks{xx}
xx
}
\maketitle

\begin{remark}
AA
\end{remark}
\end{document}

答案1

这里有一种方法:只需重新定义rem计数器以删除标签和冒号之间的空格。

\documentclass{IEEEtran}

\usepackage{lipsum}

\newtheorem{thm}{Theorem}
\newtheorem{rem}{Remark}
\renewcommand{\therem}{\unskip}

\begin{document}

\lipsum[2]

\begin{thm}
\lipsum*[3]
\end{thm}

\lipsum[2]

\begin{rem}
\lipsum*[3]
\end{rem}

\lipsum[4]

\end{document}

在此处输入图片描述

相关内容