赞
踩
参考资料:
共同的.bib
文件
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351"
}
@inproceedings{2019Optimizing,
title={Optimizing Rebalance Scheme for Dock-Less Bike Sharing Systems with Adaptive User Incentive},
author={ Duan, Y. and Wu, J. },
booktitle={2019 20th IEEE International Conference on Mobile Data Management (MDM)},
year={2019},
}
@article{2013Spectral,
title={Spectral Networks and Locally Connected Networks on Graphs},
author={ Bruna, J. and Zaremba, W. and Szlam, A. and Lecun, Y. },
journal={Computer Science},
year={2013},
}
共同的正文
\maketitle{Can Kao Wen Xian }
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}.
cankan1:\cite{2013Spectral}
cankao2:\cite{2019Optimizing}
无论什么类型,引入文献主要包括以下几个步骤.
\documentclass{article}
% article是文章的类型,可选择的还有:elsarticle(爱思唯尔的期刊), book, beamer, letter, reporter
%%%其他引入包,例如:
\usepackage[english]{babel} %引入babel包中的english,指的是识别英文.\usepackage[greek,russian]{babel}指的是识别希腊语和俄语
\usepackage{natbib}%\usepackage[option]{natbib},option是可添加的选项,也可以不添.natbib是对bib(参考文献)的一种排序管理.
\documentclass{}
\usepackage{babel}
\usepackage[utf8]{inputenc}
输入的识别符号格式为utf8cankao0:\cite{greenwade93}.
cankan1:\cite{2013Spectral}
cankao2:\cite{2019Optimizing}
命令\citet{...}
和\citet*{...}
表示只给年份加括号. 例如
\citet{Fleming1975-Deterministic}
的编译结果为: Fleming and Rishel (1975).\citet{...}
编译结果中只会显示第一作者和年份, 例如: \citet{Chong2013TiB-mathematical}
(此条文献共三位作者)的编译结果为: Chong et al. (2013)
.\citet*{...}
来处理, 例如 \citet*{Chong2013TiB-mathematical}
的编译结果为: Chong, Tchuenche, and Robert (2013)
.命令 \citep{...}
和 \citep*{...}
表示给作者和年份都加括号, 效果为: (作者, 年份). 例如
\citep{Hattaf2012IB-Optimal}
编译结果为: (Hattaf and Yousfi, 2012).\citep{...}
也会只显示第一作者,\citep*{Lahrouz2018PASMaiA-Dynamics}
(此条文献共有四位作者)编译结果为: (Lahrouz, Mahjour, Settati, and Bernoussi, 2018).只显示作者,不显示年份.例如:
代码
\documentclass{article}
\usepackage[round,authoryear]{natbib}
\bibliographystyle{unsrtnat}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}. \citeauthor{greenwade93}, \citep{greenwade93}
cankan1:\cite{2013Spectral}. \citeauthor{2013Spectral} ,\citep{2013Spectral}
cankao2:\cite{2019Optimizing}. \citeauthor{2019Optimizing} , \citep{2019Optimizing}
\bibliography{sample}
\end{document}
成果
指的提醒的是,这里指的附录(或者说文献的结尾部分)中参考文献所呈现的样式. 通常有8种.见 《bibliographystyle类型》
\bibliography{sample}
这里的sample是指同目录下的sample.bib
文件.这里的后缀.bib
可省略.
\usepackage[option]{natbib}中的option的选项:
指的提醒的是,这里的选项是指正文引入中呈现的风格.
alpha是用作者名首字母+年份后两位作标号,以字母顺序排序.. 并以该方式生成一个默认的索引序列.
BZSL13
DW19
Gre93
以首字母B>D>G的顺序在参考文献中排序.
代码
\documentclass{article}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}.
cankan1:\cite{2013Spectral}
cankao2:\cite{2019Optimizing}
\bibliographystyle{alpha}
\bibliography{sample}
\end{document}
成品
plain,按字母的顺序排列,比较次序为作者、年度和标题.
代码
\documentclass{article}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}.
cankan1:\cite{2013Spectral}
cankao2:\cite{2019Optimizing}
\bibliographystyle{plain}
\bibliography{sample}
\end{document}
成品
样式同plain,只是按照引用的先后排序.
代码
\documentclass{article}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}.
cankan1:\cite{2013Spectral}
cankao2:\cite{2019Optimizing}
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
成品
代码1
\usepackage{natbib}
\bibliographystyle{plainnat}
成品1
代码2 :round的作用是方括号变为圆括号
\usepackage[round]{natbib}
\bibliographystyle{plainnat}
代码3
\usepackage[square,numbers]{natbib}
\bibliographystyle{plainnat}
代码
\usepackage[round]{natbib}
\bibliographystyle{unsrtnat}
代码
\usepackage[round]{natbib}
\bibliographystyle{rusnat}
代码2
\usepackage[square,numbers]{natbib}
\bibliographystyle{rusnat}
成品2
部分期刊投稿需要参考文献APA格式,并且正文引用需要(作者,年)形式.
代码
\documentclass{article} %期刊格式
\usepackage[round,authoryear]{natbib} %圆括号, 作者年份的格式
\bibliographystyle{unsrtnat} %按照引用顺序排序
引用
\citep{greenwade93}
\citep{2013Spectral}
\citep{2019Optimizing}
成果
在使用如下包
\documentclass{elsarticle}
\usepackage[round,authoryear]{natbib}
的时候, 会报错: option clash for package nabib
,意思为:nabib的选项冲突了. 本质原因在于:elsarticle中已经导入了nabib包了.又重新导入后则会出现报错. 既然冲突了,尝试解决.
尝试方法一: 删除nabib的导入
\documentclass{elsarticle}
\bibliographystyle{unsrtnat}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}. \citeauthor{greenwade93}, \citep{greenwade93}
cankan1:\cite{2013Spectral}. \citeauthor{2013Spectral} ,\citep{2013Spectral}
cankao2:\cite{2019Optimizing}. \citeauthor{2019Optimizing} , \citep{2019Optimizing}
\bibliography{sample}
\end{document}
结果看到,没有APA的方式,只是数字的方式的引入.
尝试方法二: 在elsarticle中添加option:round,authoryear
\documentclass[round,authoryear]{elsarticle}
\bibliographystyle{unsrtnat}
\title{Can Kao Wen Xian}
\author{You}
\begin{document}
\maketitle % 编译正文前的内容
\section{Introduction}
\subsection{How to add Citations and a References List}
You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this:
cankao0:\cite{greenwade93}. \citeauthor{greenwade93}, \citep{greenwade93}
cankan1:\cite{2013Spectral}. \citeauthor{2013Spectral} ,\citep{2013Spectral}
cankao2:\cite{2019Optimizing}. \citeauthor{2019Optimizing} , \citep{2019Optimizing}
\bibliography{sample}
\end{document}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。