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