目录
参考文献
参考文献排版与引用所用到的宏包有:
\usepackage{cite}
\usepackage[number, sort&compress]{natbib}
1、直接插入法
1.1插入文献
找到所要插入的文献引用,一一列举出来。
下面列举了5个参考文献 ,{thebibliography}[100]
的选项100表示参考文献的最大数量为100。\bibitem{label}
表示一条参考文献,其中的 label 则表示的是文献的标注,即在正文的引用中会被用到。
\begin{thebibliography}{100}
\bibitem{ref1}Lv Y, Duan Y, Kang W, et al. Traffic flow prediction with big data: a deep learning approach[J]. IEEE Transactions on Intelligent Transportation Systems, 2014, 16(2): 865-873.
\bibitem{ref2}Wu Y, Tan H, Qin L, et al. A hybrid deep learning based traffic flow prediction method and its understanding[J]. Transportation Research Part C: Emerging Technologies, 2018, 90: 166-180.
\bibitem{ref3}Polson N G, Sokolov V O. Deep learning for short-term traffic flow prediction[J]. Transportation Research Part C: Emerging Technologies, 2017, 79: 1-17.
\bibitem{ref4}Yin H, Wong S C, Xu J, et al. Urban traffic flow prediction using a fuzzy-neural approach[J]. Transportation Research Part C: Emerging Technologies, 2002, 10(2): 85-98.
\bibitem{ref5}Fu R, Zhang Z, Li L. Using LSTM and GRU neural network methods for traffic flow prediction[C]//2016 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC). IEEE, 2016: 324-328.
\end{thebibliography}
1.2引用文献
\usepackage{cite}
:引用参考文献需要的宏包
参考文献的引用要用到命令 \cite
1.2.1单文献引用
We want to cite the paper \cite{ref1}
1.2.2多文献引用
We want to cite the paper \cite{ref1,ref2,ref5} \par
We want to cite the paper \cite{ref1,ref2,ref3}
2、BibTex法
BibTeX 是一种格式和一个程序,用于协调LaTeX的参考文献处理. BibTeX 使用数据库的的方式来管理参考文献. 在当前 .tex 文件所在的文件目录下,创建一个以 .bib
为后缀的格式文件,命名为 lookup.bib
2.1论文类
以下面一篇文献为例。
@article{2015Traffic,
title={Traffic Flow Prediction With Big Data: A Deep Learning Approach},
author={ Lv, Y. and Duan, Y. and Kang, W. and Li, Z. and Wang, F. Y. },
journal={IEEE Transactions on Intelligent Transportation Systems},
volume={16},
number={2},
pages={865-873},
year={2015},
}
-
标签
@article{2015Traffic,
}
其中,2015Traffic
是标签,用于正文中引用文献。标签是可以改动的,只要和本论文中其他的参考文献不重复就行。
-
文献参数
title:论文题目,
author:论文作者,
journal:论文发布期刊、会议或者所属,有些论文用booktitle,
volume:卷,
number:号,
pages:页码,
year:年份
有些论文生成可能没有这么全,就需要我们去找到相关的信息,自己补进来了。
下面例子中我们共添加了五篇文献的BibTex到lookup.bib文件:
@article{2015Traffic,
title={Traffic Flow Prediction With Big Data: A Deep Learning Approach},
author={ Lv, Y. and Duan, Y. and Kang, W. and Li, Z. and Wang, F. Y. },
journal={IEEE Transactions on Intelligent Transportation Systems},
volume={16},
number={2},
pages={865-873},
year={2015},
}
@inproceedings{2017Traffic,
title={Traffic Flow Prediction with Big Data: A Deep Learning based Time Series Model},
author={ Chen, Y. and Lei, S. and Lei, W. },
booktitle={IEEE INFOCOM 2017 -IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS)},
year={2017},
}
@article{2019Big,
title={Big data‐driven machine learning‐enabled traffic flow prediction},
author={ Fanhui, Kong and Jian, Li and Bin, Jiang and Tianyuan, Zhang and Houbing, Song },
journal={Transactions on Emerging Telecommunications Technologies},
volume={30},
pages={e3482-},
year={2019},
}
@article{2019Deep,
title={Deep Transfer Learning for Intelligent Cellular Traffic Prediction Based on Cross-Domain Big Data},
author={ Zhang, C. and Zhang, H. and Qiao, J. and Yuan, D. and Zhang, M. },
journal={IEEE Journal on Selected Areas in Communications},
pages={1-1},
year={2019},
}
@article{Hong2014Deep,
title={Deep Architecture for Traffic Flow Prediction: Deep Belief Networks With Multitask Learning},
author={Hong and H. and Xie and K. and Huang and W. and Song and G.},
journal={IEEE transactions on intelligent transportation systems},
volume={15},
number={5},
pages={2191-2201},
year={2014},
}
main.tex中正文部分:
\section{REFERENCES}
\subsection{An overview of references}
We want to cite the paper \cite{2015Traffic}, \par
We want to cite the paper \cite{2015Traffic,2017Traffic, 2019Big}, \par
We want to cite the paper \cite{2015Traffic,2019Big,Hong2014Deep}, \par
\bibliographystyle{ieeetr}
\bibliography{lookup}
从结果我们可以看出,在lookup.bib
文件中我们添加了五篇参考文献,但在文章参考文献部分只出现四篇。原因是:BibTex方法排版文献,如果某篇论文正文中未被引用,即使.bib
文件中有,参考文献不会显示。
\bibliographystyle{...}
是插入参考文献的样式,不同的杂志期刊的样式不一样。常见的预设样式的可选项有8种,分别是:
-
plain:按字母的顺序排列,比较次序为作者、年度和标题;
-
unsrt:样式同plain,只是按照引用的先后排序;
-
abbrv:类似plain,将月份全拼改为缩写,更显紧凑;
-
ieeetr:国际电气电子工程师协会期刊样式;
-
acm:美国计算机学会期刊样式;
-
siam:美国工业和应用数学学会期刊样式;
2.2网页类
网页的参考文献最终样式是:
[1] 作者. 网页名称. (时间). [Online]. Available: 网页链接(网址)
网页引用需要涉及到五个部分:标签、作者、标题、链接以及时间。其中标签、标题和链接是必不可少的。
@online{标签,
author="作者名称",
title="{网页名称}",
url="网页链接",
note="(年, 月 日)",
}
online表示的是该文献是网页,其中最重要的格式是时间(2021, Jun 1):
-
年要用阿拉伯数字,且年后要加逗号;
-
月要用英文前三个字母,且首字母大写。
-
日要用阿拉伯数字,要和月有一个空格。
将下面网页内容添加进lookup.bib文件,并在main.tex文件中引用(因为这样才能在参考文献中显示)。
@online{PBClibrary,
author="Ben Lynn",
title="{The Pairing-Based Cryptography (PBC) library}",
url="https://crypto.stanford.edu/pbc/",
note="(2013, Jun 14)",
}
3、改变引用颜色
改变引用颜色前最好在导言区导入xcolor
宏包,代码为\usepackage{xcolor}
。 改变引用颜色需要在导言区添加如下代码:
\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=green, linkcolor=red, urlcolor=blue]{hyperref}
citecolor
为参考文献颜色,linkcolor
为图表和公式引用的颜色,urlcolor
为超链接颜色。各颜色可根据偏好或要求自行更改。
\href{http://www.baidu.com}{Baidu} %超链接
As Picture \ref{pic1} %图片
As show in Table \ref{table1} %表格
We want to cite the paper \cite{2015Traffic} %文献
Latex相关内容链接:
Latex学习笔记——总篇(入门、图片、表格、数学公式、伪代码、代码块、参考文献)