我们在提交会议论文时需要格式化好我们的论文手稿(这里指的是 tex 文档),如当你使用 IEEE 模板提交论文到 ICSE,ICSME 等会议时,你需要在官网下载 IEEE 的模板,并参考相关规定来撰写你的 Latex 版本的论文手稿。我在这篇博客里简单介绍一些关于 IEEE 模板应用时需要的基本元素及要点。
- Latex 官方网址: https://www.latex-project.org/
- IEEE 模板地址: https://www.ieee.org/conferences_events/conferences/publishing/templates.html
1. 模板文件 cls
不论是 IEEE,Elsevier, 或是 ACM 的模板解压包中,都会提供一个 cls 文件,这个文件规定了 latex 各个标签的表现形式(斜体,大写,对其等)。因此在编译 latex 时,一定要讲 cls 文件加到目录中,并且尽量不要破坏 cls 文件。
2. 头部 Headings
latex 文件的头部格式几乎是固定的,首先以 \documentclass{10pt, conference}[IEEEtran]
开头,这句话表明此文章使用的模板文件名:IEEEtran.cls,文章的文字大小:10pt,格式为:conference。
其次,在 latex 文件头部会引入各种需要导入的包文件 \usepackage{xxx}
,这些包的引入会让文章表现形式更好,如加入 cite
包会增加参考文献引用时的格式,加入 amsmath
包会增加各种数学字符和字体,增加 xcolor
包会让表格中的背景添加颜色等。
Latex 提供的所有包,可以在这里查到 https://www.ctan.org/pkg/
\documentclass[10pt, conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite} % 引入的模块名
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
3. 作者 Authors
在 IEEE 中,我们找到 \author
区域填写文章的作者信息,其中每个作者的信息包含 \IEEEauthorblockN
和 \IEEEauthorblockA
中,前者介绍作者的名字,后者介绍作者的单位、邮箱等信息。
\author{
\IEEEauthorblockN{James Harden}
\IEEEauthorblockA{\textit{School of Computer Science} \\
\textit{Arizona state university}\\
Phoenix, USA \\
james.harden@asu.edu}
\and
\IEEEauthorblockN{Christina Aguilera}
\IEEEauthorblockA{\textit{School of Computer Science} \\
\textit{Wuhan University}\\
Wuhan, China \\
xxxx@whu.edu.cn}
}
4. 摘要和关键字 Abstract & Keywords
论文的摘要部分填写在 \begin{abstract}...\end{abstract}
之间,字数一般控制在 250 字左右。关键字填写在 \begin{IEEEkeywords}...\end{IEEEkeywords}
之间,关键字之间用逗号分隔开。
\begin{abstract}
An abstract is a brief summary of a research article, thesis, review, conference proceeding,
or any in-depth analysis of a particular subject and is often used to help the reader quickly
ascertain the paper's purpose. When used, an abstract always appears at the beginning of
a manuscript or typescript, acting as the point-of-entry for any given academic paper or
patent application. Abstracting and indexing services for various academic disciplines are
aimed at compiling a body of literature for that particular subject.
\end{abstract}
\begin{IEEEkeywords}
abstract, conference, academic, literature
\end{IEEEkeywords}
5. 标题 Section
文章的一级标题用 \section{title}
来分隔,章节中的二级标题用 \subsection{sub-title}
来分隔,不同的章节可以使用 \label{tag}
来做标记方便文章中引用。一般来讲,文章最多设置 3 级标题(即 \subsubsection{}
),过多的标题会让人迷惑。
\section{Introduction}
\label{sect:title}
The section Introduction begins at here ...
\subsection{contribution}
\label{sect:sub-title}
The sub-section contribution begins at here ...
\subsubsection{contribution-1}
sub-sub-section starts here ...
6. 清单项 Itemize
IEEE 模板中存在 itemize
和 enumerate
两种方式表示清单项,不同之处在于 itemize
清单项的符号是一个点,enumerate
清单项的符号是数字。
\begin{itemize} %% 无数字标记的清单项
\item Use either SI (MKS) or CGS as primary units.
\item Avoid combining SI and CGS units, such as current ...
\end{itemize}
\begin{enumerate} %% 有数字标记的清单项
\item Use either SI (MKS) or CGS as primary units.
\item Avoid combining SI and CGS units, such as current ...
\end{enumerate}
7. 数学等式 Equations
数学等式用 \begin{equation}...\end{equation}
包裹起来(会自动分配数字编号),我们可以在数学等式区域做标记 \label{eq1}
,然后在论文中使用 \ref{eq1}
来引用数学等式。
\begin{equation}
a+b=\gamma\label{eq1}
\end{equation}
除了 {equation}
之外,我们可以使用 align*
来使得多行数学等式对齐(注意要引入amsmath 包,即 \usepackage{amsmath}
)。常用的数学符号见 常用数学符号的 LaTeX 表示方法.
\begin{align*}
2x - 5y &= 8 \\
3x + 9y &= -12
\end{align*}
8. 表格和图片 Table & Figure
下面展示了表格(table)的实例,在定义时,我们通过 table
和 tabular
嵌套定义表格,其中 tabular
包含表格的主体,表格的每一行结尾用 \\
换行,每一列用 &
分开。如果需要合并多列或者多行单元格,则分别使用 \multicolumn{3}{c}{cell text}
,和 \multirow{3}{*}{cell text}
来合并(需要添加 multirow
包)。
在调用时我们通过表格标签来调用,即使用 Table~\ref{tab1}
的方式调用,论文中显示为 Table ???
。
\begin{table}[htbp]
\caption{Table Type Styles} %% 表格标题
\begin{center}
\begin{tabular}{|c|c|c|c|} %% 表格列的个数为 4,文字方向为居中对齐
\hline %% 分界线
Table & \multicolumn{3}{|c|}{\textbf{Table Column Head}} \\ %% 第 3 个单元格合
\cline{2-4} %% 从第 2 列到第 4 列的分界线
Head & Column-1 & Column-2 & Column-3 \\
\hline
copy & More table copy$^{\mathrm{a}}$ & & \\
\hline
\multicolumn{4}{l}{$^{\mathrm{a}}$Sample of a Table footnote.}
\end{tabular}
\label{tab1}
\end{center}
\end{table}
下面展示了图片(figure)的实例,我们使用 \includegraphics{fig1.png}
表明了图片的路径。在调用该图片时我们同样使用标签来调用,即使用 Fig.~\ref{fig1}
的方式调用,在 latex 中显示为 Fig. ???
。
\begin{figure}[htbp]
\centerline{\includegraphics{fig1.png}}
\caption{Example of a figure caption.}
\label{fig1}
\end{figure}
此外,在论文中对表格和图片进行编排时应该注意:
- 所有的图片和表格均应放在文章的头部和顶部(不能放在文章中间)
- 图片的标题应该放在图片的底部,表格的标题应该放在表格的头部
9. 致谢 Acknowledgment
论文的致谢部分写在 \section*{Acknowledgment}
章节处(一般处于正文和参考文献之间)。值得注意的是不要在 Acknowledgment
的 d
后多加字母 e
。
\section*{Acknowledgment}
The preferred spelling of the word ``acknowledgment'' in America is without
an ``e'' after the ``g''.
10. 参考文献 References
参考文献是论文的最后部分(不考虑文章的附件 Appendix),一般来讲正常的参考文献占用 2 页纸,现在主流是使用 bibtex 来存储需要的参考文献,我们使用 \bibliographstyle{abbr}
来规定参考文献的格式,即数字缩写格式。使用 \bibliography{references}
来指定 bib 文件的地址。
\bibliographystyle{abbrv}
\bibliography{IEEEabrv,references} % references.bib is the file to save citations.
在书写参考文献时应当注意:
- 当连续引用多个参考文献时,请写成
\cite{A, B, C}
的形式(不要写成\cite{A}, \cite{B}, \cite{C}
的格式) - 参考文献或摘要部分不要用
\footnote{}
做下标 - 除非有 6 个以上的作者,否则不要使用
et. al
等字眼
以上就是构成一篇 IEEE 会议论文的基本元素了,根据上述的元素我们可以排版一篇漂亮的论文(单双栏),当然还有很多细节需要完善,我后续会持续保持更新。【Todo…】