[Latex]参考文献的格式:数字,作者+年份

参考资料:

一、共同的参考文献和正文

共同的.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}

二、参考文献的引入方法

无论什么类型,引入文献主要包括以下几个步骤.

2.1 声明引入的使用包(usepackage)

\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(参考文献)的一种排序管理.
  1. 声明文章的类型(开头必有的):\documentclass{}
  2. 声明语言类型(英语,中文,俄语)等.几乎也是必有的: \usepackage{babel}
  3. 声明其他的类型的usepackage: 例如,\usepackage[utf8]{inputenc}输入的识别符号格式为utf8
  4. 声明参考文献的usepackage: babel,

2.2 正文的引用

《LaTeX中的参考文献——作者年代引用》

\cite{}
cankao0:\cite{greenwade93}. 

cankan1:\cite{2013Spectral}

cankao2:\cite{2019Optimizing}

在这里插入图片描述

\citet{}

命令\citet{...}\citet*{...}表示只给年份加括号. 例如

  • \citet{Fleming1975-Deterministic}的编译结果为: Fleming and Rishel (1975).
  • 当作者数量 ≥ 3 \geq3≥3 时, \citet{...}编译结果中只会显示第一作者和年份, 例如: \citet{Chong2013TiB-mathematical}(此条文献共三位作者)的编译结果为: Chong et al. (2013).
  • 若我们希望显示所有的作者, 可用\citet*{...}来处理, 例如 \citet*{Chong2013TiB-mathematical} 的编译结果为: Chong, Tchuenche, and Robert (2013) .
\citep{}

命令 \citep{...} \citep*{...}表示给作者和年份都加括号, 效果为: (作者, 年份). 例如

  • \citep{Hattaf2012IB-Optimal}编译结果为: (Hattaf and Yousfi, 2012).
  • 当作者数量 ≥ 3 \geq3≥3 时, \citep{...}也会只显示第一作者,
  • 我们可以使用\citep*{…}使其显示全部作者, 例如\citep*{Lahrouz2018PASMaiA-Dynamics}(此条文献共有四位作者)编译结果为: (Lahrouz, Mahjour, Settati, and Bernoussi, 2018).
\citeauthor{}

只显示作者,不显示年份.例如:

  • 只有一个人名:只显示第一作者
  • 两个人名:用and连接两个作者
  • 3个及以上的人名:只显示第一作者+et al.
案例

代码

\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}

成果

在这里插入图片描述

2.3 文献格式的命令

指的提醒的是,这里指的附录(或者说文献的结尾部分)中参考文献所呈现的样式. 通常有8种.见 《bibliographystyle类型》

  • plain,按字母的顺序排列,比较次序为作者、年度和标题.
  • unsrt,样式同plain,只是按照引用的先后排序.
  • alpha,用作者名首字母+年份后两位作标号,以字母顺序排序.
  • abbrv,类似plain,将月份全拼改为缩写,更显紧凑.
  • ieeetr,国际电气电子工程师协会期刊样式.
  • acm,美国计算机学会期刊样式.
  • siam,美国工业和应用数学学会期刊样式.
  • apalike,美国心理学学会期刊样式.

2.4 导入bib文件

\bibliography{sample}这里的sample是指同目录下的sample.bib文件.这里的后缀.bib可省略.
在这里插入图片描述

三、参考文献包

3.1 参考文献的usepackage–nabib

\usepackage[option]{natbib}中的option的选项:
指的提醒的是,这里的选项是指正文引入中呈现的风格.

  • round:圆括号
  • square:方括号
  • curly:大括号
  • angle:尖括号
  • semicolon:用分号来分割多个引用
  • colon:与semicolon相同
  • comma:用逗号来分割多个引用
  • authoryear:作者-年份 引用格式
  • number:数字 引用格式
  • super:位于上标的数字 引用格式,例如在 Nature 期刊中
  • sort:根据参考文献的列表来对多个引用排序
  • sort&compress:与sort相同,不过会尽可能地压缩多个数字引用
  • compress:压缩引用,不排序
  • longnamefirst:任何参考文献的第一个引用将会打印作者的全名
  • sectionbib:与chapterbib包配合使用,把参考文献添加在目录中,当作一个不编号的节(section),而不是一个不编号的章(chapter)。
  • nonamebreak:避免作者名字用连字号连接
  • elide:忽略合并参考文献的共同部分

3.2 与babel可搭配的biliographystyle

《Natbib书目样式》

  • dinat
  • plainnat
  • abbrvnat
  • unsrtnat
  • rusnat

四、 案例演示

4.1 没有nabib+ alpha

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}

成品
在这里插入图片描述

4.2 没有nabib包+plain

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}

成品

在这里插入图片描述

4.3 没有nabib包+unsrt

样式同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}

成品
在这里插入图片描述

4.4 nabib+plainnat

代码1

\usepackage{natbib}
\bibliographystyle{plainnat}

成品1
在这里插入图片描述

代码2 :round的作用是方括号变为圆括号

\usepackage[round]{natbib}
\bibliographystyle{plainnat}

在这里插入图片描述

代码3

\usepackage[square,numbers]{natbib}
\bibliographystyle{plainnat}

在这里插入图片描述

4.5 nabib+unsrtnat

代码

\usepackage[round]{natbib}
\bibliographystyle{unsrtnat}

在这里插入图片描述

4.6 nabib +rusnat

代码

\usepackage[round]{natbib}
\bibliographystyle{rusnat}

在这里插入图片描述

代码2

\usepackage[square,numbers]{natbib}
\bibliographystyle{rusnat}

成品2
在这里插入图片描述

五、APA案例演示:(作者+年份)

部分期刊投稿需要参考文献APA格式,并且正文引用需要(作者,年)形式.

5.1 普通的使用

代码

\documentclass{article} %期刊格式
\usepackage[round,authoryear]{natbib} %圆括号, 作者年份的格式
\bibliographystyle{unsrtnat} %按照引用顺序排序

引用

\citep{greenwade93}
\citep{2013Spectral}
\citep{2019Optimizing}

成果

在这里插入图片描述

5.2 爱思唯尔的使用

在使用如下包

\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}

在这里插入图片描述

  • 26
    点赞
  • 108
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
LaTeX 中引用参考文献的方法一般有两种:手动引用和使用 BibTeX。 1. 手动引用 手动引用方法比较麻烦,需要自己将参考文献信息写入文档中,并且需要手动维护引用序号。步骤如下: 1)在正文中需要引用参考文献的位置插入引用命令,格式为 \cite{参考文献标识},其中“参考文献标识”是你在文献列表中给该文献指定的标识符。 2)在文档末尾插入参考文献列表,格式为: \begin{thebibliography}{99} \bibitem{参考文献标识} 参考文献信息 \end{thebibliography} 其中“99”是参考文献条目数的最大值。在每个参考文献条目中,可以根据需要包含作者、题目、期刊名、卷号、页码等信息。 2. 使用 BibTeX BibTeX 是一个用于生成参考文献列表的工具,它可以自动从一个或多个 .bib 文件中读取参考文献信息,并按照指定的格式生成参考文献列表。使用 BibTeX 引用参考文献的步骤如下: 1)创建一个 .bib 文件,将需要引用的参考文献信息添加到其中,格式为: @article{参考文献标识, author = {作者}, title = {题目}, journal = {期刊名}, volume = {卷号}, pages = {页码}, year = {年份}, } 其中“参考文献标识”是你给该文献指定的标识符。 2)在 LaTeX 文档中插入引用命令,格式为 \cite{参考文献标识}。 3)在文档末尾插入以下命令,生成参考文献列表: \bibliographystyle{样式文件名} \bibliography{参考文献文件名} 其中“样式文件名”是指定的参考文献格式样式,例如 plain、unsrt、alpha 等。参考文献格式样式文件一般为 .bst 文件,可以从网络上下载。而“参考文献文件名”是你创建的 .bib 文件名。 4)使用 LaTeX 编译器编译文档,生成参考文献列表。 以上是引用参考文献的两种方法,使用 BibTeX 可以大大减轻手动维护参考文献的工作量。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值