在会议论文中,预定义的摘要很小且为斜体。我可以更改摘要的大小和位置,但我找不到如何取消斜体的方法。有办法吗?
\documentclass[10pt, conference]{IEEEtran}
\renewcommand{\abstractname}{\large ABSTRACT\\}
\title{Example}
\author{}
\begin{document}
\maketitle
\begin{abstract}
\end{abstract}
\end{document}
答案1
您可以局部修改原始定义。原始行已注释。
\documentclass[10pt, conference]{IEEEtran}
\renewcommand{\abstractname}{\large ABSTRACT\\}
\title{Example}
\author{}
\begin{document}
\makeatletter
\ifCLASSOPTIONconference% compsoc conference
%\def\abstract{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\bfseries
\def\abstract{\itshape\@IEEEtweakunitybaselinestretch{1.15}\bfseries
\if@twocolumn
\@IEEEabskeysecsize\noindent\textit{\abstractname}---\relax
\else
\bgroup\par\addvspace{0.5\baselineskip}\centering\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize%
\fi\@IEEEgobbleleadPARNLSP}
\makeatother
\maketitle
\begin{abstract}
This is abstract.
\end{abstract}
\end{document}
答案2
您也可以\textit
在本地解除武装:
\documentclass[10pt,conference]{IEEEtran}
\renewcommand{\abstractname}{\large ABSTRACT\\}
\let\oldabstract\abstract
\renewcommand\abstract{%
\begingroup
\let\textit\relax
\oldabstract
\endgroup
\bfseries
}
\makeatletter
\g@addto@macro\endabstract{\vspace{1em}\par}
\makeatother
\usepackage{lipsum}
\title{Example}
\author{Scarlet}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\lipsum[2-10]
\end{document}
(我在摘要后面留了一些空间,即\g@addto@macro\endabstract{\vspace{1em}\par}
。我认为它看起来更好一些。)