IEEE trans的Latex模板使用方法

LATEX学习笔记

以IEEE论文为例,一个完整的论文分为(A)标题名称,(B)作者,(C)摘要,(D)关键词,正文部分分为(1)介绍,(2)理论,(3)实验,(5)结果,(6)结论,(7)致谢,还有(7)参考文献 等部分,下面讲一下自己的使用。

\documentclass[conference]{IEEEtran}%文档类型
     
\IEEEoverridecommandlockouts
\usepackage{cite}  %使用文献引用
\usepackage{amsmath,amssymb,amsfonts}%编辑数学公式的宏包
\usepackage{algorithmic}
\usepackage{textcomp}
\usepackage{xcolor}    %颜色
\usepackage{amsthm}  %编辑数学定理和证明过程的宏包
\usepackage{graphicx}  %插入图片的宏包
\usepackage{multirow}  %复杂表格的宏包
\usepackage{algpseudocode}
     
\renewcommand{\algorithmicrequire}{\textbf{Input:}} %使用算法格式输入
\renewcommand{\algorithmicensure}{\textbf{Output:}} %使用算法格式输出
     
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
            T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
%参考文献的格式
     
     
\begin{document}   %开始文档内容,从这里开始对应\end{document}

\title{Paper Title*\\   %\\强制换行 文章名称 文字大小
{\footnotesize \textsuperscript{*}Note: Sub-titles are not captured}
\thanks{Identify applicable funding agency here. If none, delete this.}  %下面的感谢基金
}
     
% 写明作者的名字和机构 城市 国家 邮件地址
\author{\IEEEauthorblockN{1\textsuperscript{st} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
     
\and   %连接多个作者
\IEEEauthorblockN{2\textsuperscript{nd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
     
\and
%省略4位作者%
     
\maketitle   %标题结束
     
\begin{abstract}   %开始摘要
This document is a model and instructions for \LaTeX.
This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes,
or Math in Paper Title or Abstract.    %正文
\end{abstract}     %结束摘要
     
     
\begin{IEEEkeywords}    %开始关键字
component, formatting, style, styling, insert   %正文
\end{IEEEkeywords}      %结束关键字
     
     
\section{Introduction}   %正文部分 (1)介绍
This document is a model and instructions for \LaTeX   %正文.
Please observe the conference page limits.
     
\section{Method}  %正文部分 (2)方法   %
\subsection{Method A }    %二级标题 方法(A)
The IEEEtran class file is used to format your paper and style the text. All margins,
column widths, line spaces, and text fonts are prescribed; please do not
alter them. You may note peculiarities. For example, the head margin
measures proportionately more than is customary. This measurement
and others are deliberate, using specifications that anticipate your paper
as one part of the entire proceedings, and not as an independent document.
Please do not revise any of the current designations.
     
     
     
     
     
     
\subsection{Method B}
The IEEEtran class file is used to format your paper and style the text. All margins,
column widths, line spaces, and text fonts are prescribed; please do not
alter them. You may note peculiarities. For example, the head margin
measures proportionately more than is customary. This measurement
and others are deliberate, using specifications that anticipate your paper
as one part of the entire proceedings, and not as an independent document.
Please do not revise any of the current designations.
column widths, line spaces, and text fonts are prescribed; please do not
alter them. You may note peculiarities. For example, the head margin
measures proportionately more than is customary. This measurement
and others are deliberate, using specifications that anticipate your paper
as one part of the entire proceedings, and not as an independent document.
Please do not revise any of the current designations.
     
% 公式开始 首行自动缩进
The Newton's second law is F=ma. \\
The Newton's second law is $F=ma$.\\
The Newton's second law is
$$F=ma$$
The Newton's second law is
\[F=ma\]
Greek Letters $\eta$ and $\mu$
Fraction $\frac{a}{b}$
Power $a^b$
Subscript $a_b$
Derivate $\frac{\partial y}{\partial t} $
Vector $\vec{n}$
Bold $\mathbf{n}$
To time differential $\dot{F}$
Matrix (lcr here means left, center or right for each column)
\[
\left[
\begin{array}{lcr}
a1 & b22 & c333 \\
d444 & e555555 & f6
\end{array}
\right]
\]
Equations(here \& is the symbol for aligning different rows)
\begin{align}
a+b&=c\\
d&=e+f+g
\end{align}
\[
\left\{
\begin{aligned}
&a+b=c\\
&d=e+f+g
\end{aligned}
\right.
\]
Equations(here \& is the symbol for aligning different rows)
\begin{align}
a+b&=c\\
d&=e+f+g
\end{align}
\[
\left\{
\begin{aligned}
&a+b=c\\
&d=e+f+g
\end{aligned}
\right.
\]
%公式结束%
     
%算法开始%
\begin{algorithm}[h]
\caption{An example for format For \& While Loop in Algorithm}
\begin{algorithmic}[1]
\For{each $i\in [1,9]$}
\State initialize a tree $T_{i}$ with only a leaf (the root);
\State $T=T\cup T_{i};$
\EndFor
\ForAll {$c$ such that $c\in RecentMBatch(E_{n-1})$}
\label{code:TrainBase:getc}
\State $T=T\cup PosSample(c)$;
\label{code:TrainBase:pos}
\EndFor;
\For{$i=1$; $i

下面是编译的结果,可以使用不同的编译器,但是LATEX内核是一样的,我最近使用的是TEX studio,师兄推荐,原先用的是Winedt。结果如下:

                          IEEE trans的Latex模板使用方法_第1张图片

                         IEEE trans的Latex模板使用方法_第2张图片

你可能感兴趣的:(写作与图表制作,计算机视觉)