Latex使用IEEE模板的注释总结

 

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<n$; $i++$ }
		\State $//$ Your source here;
		\EndFor
		\For{$i=1$ to $n$}
		\State $//$ Your source here;
		\EndFor
		\State $//$ Reusing recent base classifiers.
		\label{code:recentStart}
		\While {$(|E_n| \leq L_1 )and( D \neq \phi)$}
		\State Selecting the most recent classifier $c_i$ from $D$;
		\State $D=D-c_i$;
		\State $E_n=E_n+c_i$;
		\EndWhile
		\label{code:recentEnd}
	\end{algorithmic}
\end{algorithm}
%算法结束%




\section{Experient}
your text and graphic files separate until after the text has been 
formatted and styled. Do not number text heads---{\LaTeX} will do that 
for you.
\subsection{Abbreviations and Acronyms}\label{AA}
Define abbreviations and acronyms the first time they are used in the text, 
even after they have been defined in the abstract. Abbreviations such as 
IEEE, SI, MKS, CGS, ac, dc, and rms do not have to be defined. Do not use 
abbreviations in the title or heads unless they are unavoidable.



\subsection{Excel}\label{AA}

%表格
\begin{table}[tbp]
	\centering  % 表居中
	\begin{tabular}{lccc}  % {lccc} 表示各列元素对齐方式,left-l,right-r,center-c
		\hline
		Player &Round 1 &Round 2 &Round 3\\ \hline  % \hline 在此行下面画一横线
		Dave &89 &91 &88\\         % \\ 表示重新开始一行
		Don &102 &105 &99\\        % & 表示列的分隔线
		Todd &153 &256 &357\\ \hline
	\end{tabular}
	\caption{Through three rounds at the Muni.}
\end{table}
%结束




\section{Result}
%插入图片,根据不同的编译器,支持jpg和EPS格式的图片,使用tex stuidio是pdf、jpg、jpeg、png共4种格式的图片。Winedt是EPS都可,注意放在同一个文件夹下面。
\includegraphics[width=3.00in,height=3.00in]{memory.jpg}


\begin{itemize}
\item Use either SI (MKS) or CGS as primary units. (SI units are encouraged.) English units may be used as secondary units (in parentheses). An exception would be the use of English units as identifiers in trade, such as ``3.5-inch disk drive''.\cite{zhang2019}
\item Avoid combining SI and CGS units, such as current in amperes and magnetic field in oersteds. This often leads to confusion because equations do not balance dimensionally. If you must use mixed units, clearly state the units for each quantity that you use in an equation.
\item Do not mix complete spellings and abbreviations of units: ``Wb/m\textsuperscript{2}'' or ``webers per square meter'', not ``webers/m\textsuperscript{2}''. Spell out units when they appear in text: ``. . . a few henries'', not ``. . . a few H''.\cite{wu2019}
\item Use a zero before decimal points: ``0.25'', not ``.25''. Use ``cm\textsuperscript{3}'', not ``cc''.)
\end{itemize}




\section{Conclusion}
This is our result.


\bibliographystyle{IEEEtran}
\bibliography{reference}
%引用参考文献 在网站上下载好相应的bib文件,进行保存,放在同一个文件夹下机型编译。



\end{document}

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

 

Now,begin my paper for IEEE Conference!

猜你喜欢

转载自blog.csdn.net/weixin_40679412/article/details/88067893