LATEX学习和IEEE Tran模板介绍

Latex学习网站:http://www.latexstudio.net/page/tex-documents/
IEEEtrans Latex模板中文翻译:https://wenda.latexstudio.net/data/ueditor/php/upload/file/20190814/1565743586995462.pdf

软件的选择

  首先需要安装编译环境Textlive,然后选择编辑软件Textstudio(推荐),也可以选择vscode,最后在Textstudio中选择编译器pdflatex(中文的选择xelatex)。

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/

以IEEE Trans为例,我们只需要知道:

IEEEtran文件夹(正文)

bare_conf.tex:(会议论文模板,正文tex文件)
bare_jrnl.tex:(期刊论文模板,正文tex文件) 
IEEEtran.cls: 决定latex源文件的排版布局  
IEEEtran_HOWTO.pdf: 模板的使用说明

Transactions-Bibliography文件夹(参考文献)

有.bst和.bib文件。bib文件中以固定格式保存参考文献内容,bst文件为参考文献的显示样式。一般在bib中添加文献,然后在正文的bare_jrnl.tex中通过 \cite{文献在bib中的标签}来引用参考文献

模板正文

一、模板选择

\documentclass[journal]{IEEEtran}:[]为任选参数,包括指定模板类型(期刊还是会议),字号大小,纸张类型,单双面(oneside, twoside,默认为单面,暂且保持默认即可。),单双栏(onecolumn, twocolumn,默认为双栏,暂且保持默认即可。)
{}为必选项,指定模板的排版格式,为.cls的文件名字

二、宏包导入

图:\usepackage{graphicx}
表:\usepackage{multirow}
公式:\usepackage{amsmath}
数学定理和证明过程:\usepackage{amsthm}
参考文献:\usepackage{cite}
等等

三、正文开始

\begin{document} %创建document环境
...  
 正文内容包含在这儿
...  
\end{document}

将相应的部分,如摘要,引言等添加到正文内容即可,其中,Section、subsection和subsubsection分别是一、二和三级标题。
实例如下:

\begin{document}

\title{论文标题}
\author{作者信息和脚注}

%使title栏生效结束
\maketitle

\markboth{头注}

\IEEEpubid{文章出版号}

\begin{abstract}%创建摘要环境
你的摘要
\end{abstract}

\begin{IEEEkeywords}%创建关键字环境
你的关键词
\end{IEEEkeywords}

章节:
\section{Introduction}
%另起一段,回车,空一行

\section{Method}%一级标题
\subsection{Method A}%二级标题

\subsubsection{Method B}%三级标题

\section{Experient}

\section{Conclusion}

\bibliographystyle{IEEEtran}
\bibliography{bib文件名称}%引用参考文献,即bib文件。


\end{document}


%首先我们需要导入和图片有关的宏包
\usepackage{graphicx}%图片
%然后就可以在正文中创建图片环境
%图片展示,在模板中不用管图片的位置,会自动根据文字以及图片大小调整(即浮动体)

%figure是双栏的图片排版

\begin{figure}[!t]
	\centering %居中
	\includegraphics[scale=1]{2.jpg}%图片大小及加载的图片名称			
	\caption{show single picture.}%图片标题
	\label{fig1}%标注该图片,用于在文章内引用
\end{figure} 

%figure*是单栏的图片排版,用于大图片,双栏中放不下的

\begin{figure*}[!t]
	\centering
	\includegraphics[width=6in]{3.jpg}%
	\caption{Sample images of highway test dataset.}
	\label{fig2}
\end{figure*}

需要注意的是,如果想将图片放在指定的位置,而不是浮动体格式,需要进行以下操作:

%首先导入一个宏包
\usepackage{float}

%然后在需要插入图的环境中将\begin{figure}[!t]改为\begin{figure}[!h]

\begin{figure}[!h]
	\centering
	\includegraphics[scale=0.25]{图片名称.png/jpg}
	\caption{The proposed auto-encoder}\label{图片标签}
\end{figure}
%在正文中插入图片还不算结束,有时候单击正文中图片的文字标号时跳转不到图片的位置,这需要建立超链接跳转到图片位置。具体操作如下:

在导入宏包位置,添加如下代码即可:
\usepackage{hyperref}
\hypersetup{hypertex=true,
            colorlinks=true,
            linkcolor=blue,
            anchorcolor=blue,
            citecolor=blue}

如果想在Latex中插入多张图片,实现并排或者多行并排,可参考下面
https://blog.csdn.net/a6822342/article/details/80533135

表格

网页在线生成Latex表格的latex代码:https://www.tablesgenerator.com/latex_tables

公式

算法

该部分可参考:https://blog.csdn.net/lqhbupt/article/details/8723478

参考文献

参考:https://blog.csdn.net/weixin_36670529/article/details/103452672
https://blog.csdn.net/LXX516/article/details/90288544

posted @ 2021-04-12 02:47  阁楼式的幻想  阅读(7107)  评论(0编辑  收藏  举报