IEEE模板的latex使用

IEEE模板下载

下载IEEE的conference和transaction的latex模板文件:
conference:https://www.ieee.org/conferences/publishing/templates.html
transaction模板:https://ieeeauthorcenter.ieee.org/create-your-ieee-article/use-authoring-tools-and-ieee-article-templates/ieee-article-templates/
以conference模板为例进行说明:
下载正文的模板文件:LaTeX Template Instructions
里面包括4个文件:

conference_041818.pdf tex文件编译后的pdf
conference_041818.tex  正文tex文件
IEEEtran.cls  
IEEEtran_HOWTO.pdf  IEEEtran.cls的使用方法

cls文件
cls文件是latex2e(latex的标准版本)的格式文件,它决定了latex源文件的排版布局。最一般的cls文件就是我们常用的article.cls,这表现在\documentclass{article}这一句里面。如果出版方提供了cls文件,我们可以下面两个方法使用(假如cls文件名为xxx.cls):
cls文件和你自己的latex文件放到同一个文件夹里面,在源文件里面用
\documentclass{xxx}

下载参考文件模板:LateX Bibliography Files

宏包

查找宏包:http://www.ctex.org/documents/packages/
举例:

引用: \usepackage{cite}
图片: \usepackage{graphicx}
数学公式: \usepackage{amsmath}
解决最后一页两边不平衡问题: \usepackage{flushend}

可以为包单独创建一个package.tex文件:

\usepackage{cite}
\usepackage{graphicx}
\usepackage{amsmath}

然后在正文.tex文件中,使用input将package.tex文件中的内容复制过来:

\input{package}

章节的引用

\documentclass{article}

\begin{document}

\section{introduction}  建立新的章节
\label{sec:intro}    章节的label,方便被引用
I'm very happy.

\subsection{subA}    建立子章节
OK.This is \ref{sec:intro}   引用章节
\end{document}

添加参考文献

在百度学术里搜文献,并点击BibTeX生成对应的代码。
这里写图片描述
在IEEE给出的模板文件中,有.bst.bib文件。bib文件中以固定格式保存参考文献内容,bst文件为参考文献的显示样式。
在正文中,引用了给出的IEEEexample.bibIEEEtrans.bst。例如在bib文件中添加引用参考的website,紧随@后的字符串为参考文献类型,大括号后的第一个字符串IEEEexample:IEEEwebsite为该条参考文献的标签,在正文中通过 \cite{标签}来引用参考文献。

@electronic{IEEEexample:IEEEwebsite,
  title         = "The {IEEE} Website",
  url           = "http://www.ieee.org/",
  year          = "2007",
  key           = "IEEE"
}
\documentclass{article}

\begin{document}

\section{introduction}

I'm very happy.cite \cite{IEEEexample:IEEEwebsite}

\bibliographystyle{IEEEtrans}
\bibliography{IEEEexample}

\end{document}

猜你喜欢

转载自blog.csdn.net/winycg/article/details/80890600