目录

首先准备bib文件:

1 数字标号型参考文献

2 基于natbib包的参考文献引用

2.1 案例

2.2 命令解析

2.2.1 数字引用格式

2.2.2 错误处理

2.2.3 命令解析

3 引用语法解析

4 不同的引用模式探讨

4.1 当参考文献位于句首时

4.2 当参考文献位于句末时

4.3 同一作者不同年份文献的引用

本节完整源码

参考资料:


首先准备bib文件:

@book{toth2002vehicle,title={The vehicle routing problem},author={Toth, Paolo and Vigo, Daniele},year={2002},publisher={SIAM}
}
@book{golden2008vehicle,title={The vehicle routing problem: latest advances and new challenges},author={Golden, Bruce L and Raghavan, Subramanian and Wasil, Edward A},volume={43},year={2008},publisher={Springer Science \& Business Media}
}

1 数字标号型参考文献

测试源码:

\documentclass{article}\begin{document}
The Vehicle Routing Problem (VRP) \cite{toth2002vehicle},\cite{golden2008vehicle} calls for the determination of the optimal set of routes to
be performed by a fleet of vehicles to serve a given set of customers, and it is one of the most
important, and studied, combinatorial optimization problems. \bibliographystyle{unsrt}
\bibliography{references}
\end{document}

运行效果:

2 基于natbib包的参考文献引用

2.1 案例

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}%Import the natbib package and sets a bibliography  and citation styles
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={((},close={))}} %Citation-related commands\title{Natbib Example}\begin{document}
The Vehicle Routing Problem (VRP) \citep{toth2002vehicle},\cite{golden2008vehicle} calls for the determination of the optimal set of routes to be performed by a fleet of vehicles to serve a given set of customers, and it is one of the most
important, and studied, combinatorial optimization problems. \bibliography{references}\footnotesize
\end{document}

2.2 命令解析

\setcitestyle{authoryear, open={((},close={))}

2.2.1 数字引用格式

环境设置:

\bibliographystyle{abbrvnat}
\setcitestyle{numbers,open={[},close={]}}

引用文献代码:

The Vehicle Routing Problem (VRP) \citep{toth2002vehicle},\cite{golden2008vehicle} calls for the determination of the optimal set of routes to be performed by a fleet of vehicles to serve a given set of customers, and it is one of the most
important, and studied, combinatorial optimization problems. \textbf{Expression 1:} \cite{golden2008vehicle} \par
\textbf{Expression 2:} \cite*{toth2002vehicle} \par
\textbf{Expression 3:} \citep{golden2008vehicle} \par
\textbf{Expression 4:} \citep*{toth2002vehicle} \par
\textbf{Expression 5:} \citet{golden2008vehicle} \par
\textbf{Expression 6:} \citet*{toth2002vehicle} \par

效果:

2.2.2 错误处理

你会发现参考文献2 先被引用之后才是参考文献1,这是不对的;解决方案如下:

  • 删除tex目录下参考文献相关的文件

  • 环境引用修改成 unsrt,重新编译
\bibliographystyle{unsrt}
\setcitestyle{numbers,open={[},close={]}}

修改后运行效果如下:

2.2.3 命令解析

\setcitestyle{authoryear, open={((},close={))}参数列表:
  • 引用模式:作者年份模式(authoryear), 数字编码模式(numbers),上标模式(super)
  • 开合字符:open={char},close={char}.
  • 参考文献的分割符号:Citation separator: semicoloncomma.
  • Separator between author and year: aysep{char}.
  • Separator between years with common author: yysep={char}.
  • Text before post-note: notesep={text}.
\textbf{Expression 1:} \cite{golden2008vehicle} \par
\textbf{Expression 2:} \cite*{toth2002vehicle} \par
\textbf{Expression 3:} \citep{golden2008vehicle} \par
\textbf{Expression 4:} \citep*{toth2002vehicle} \par
\textbf{Expression 5:} \citet{golden2008vehicle} \par
\textbf{Expression 6:} \citet*{golden2008vehicle} \par
\textbf{Expression 7:} \citeauthor{toth2002vehicle} \par
\textbf{Expression 8:} \citeyear{toth2002vehicle} \par
\textbf{Expression 9:} \cite{toth2002vehicle,golden2008vehicle} \par

3 引用语法解析

根据引用模式,还有其他附加引用命令。例如,在上面的例子中,命令 \cite[see][chap 2]{latexcompanion} 需要两个额外的参数;

  • 第一个可选参数 see 打印在引用标记之前,
  • 第二个可选参数 chap 2 打印在引用标记之后

4 不同的引用模式探讨

4.1 当参考文献位于句首时

应该使用 \cite{} 进行文献引用

\cite{sbihi2007relationship},\cite{sbihi2010combinatorial},\cite{sbihi2007relationship} presented some research gaps that link the VRP with Green Logistics issues, such as employing the Time-dependent VRP as an approach to deal with the minimization of emissions during traveling.

4.2 当参考文献位于句末时

使用 \citep*{} 进行引用

Green Logistics deals with the activities of measuring the environmental effects of different distribution strategies, reducing the energy consumption, recycling refuse and managing waste disposal \citep*{sbihi2007relationship}

4.3 同一作者不同年份文献的引用

环境组合:

\bibliographystyle{apalike}
\setcitestyle{authoryear,open={(},close={)},semicolon={;}}

源代码:

\cite{sbihi2007combinatorial,sbihi2007relationship,sbihi2010combinatorial} presented some research gaps that link the VRP with Green Logistics issues, such as employing the Time-dependent VRP as an approach to deal with the minimization of emissions during traveling.

本节完整源码

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}%Import the natbib package and sets a bibliography  and citation styles
\usepackage{natbib}
% \bibliographystyle{unsrt}
% \bibliographystyle{abbrvnat}
\bibliographystyle{apalike}
% \setcitestyle{numbers,open={[},close={]}}
\setcitestyle{authoryear,open={(},close={)},semicolon={;}}%Citation-related commands\title{Natbib Example}\begin{document}
The Vehicle Routing Problem (VRP) \citep{toth2002vehicle},\cite{golden2008vehicle} calls for the determination of the optimal set of routes to be performed by a fleet of vehicles to serve a given set of customers, and it is one of the most
important, and studied, combinatorial optimization problems. \textbf{Expression 1:} \cite{golden2008vehicle} \par
\textbf{Expression 2:} \cite*{toth2002vehicle} \par
\textbf{Expression 3:} \citep{golden2008vehicle} \par
\textbf{Expression 4:} \citep*{toth2002vehicle} \par
\textbf{Expression 5:} \citet{golden2008vehicle} \par
\textbf{Expression 6:} \citet*{golden2008vehicle} \par
\textbf{Expression 7:} \citeauthor{toth2002vehicle} \par
\textbf{Expression 8:} \citeyear{toth2002vehicle} \par
\textbf{Expression 9:} \cite{toth2002vehicle,golden2008vehicle} \par\cite{sbihi2007relationship},\cite{sbihi2010combinatorial},\cite{sbihi2007relationship} presented some research gaps that link the VRP with Green Logistics issues, such as employing the Time-dependent VRP as an approach to deal with the minimization of emissions during traveling.Green Logistics deals with the activities of measuring the environmental effects of different distribution strategies, reducing the energy consumption, recycling refuse and managing waste disposal \citep*{sbihi2007relationship}\cite{sbihi2007combinatorial,sbihi2007relationship,sbihi2010combinatorial} presented some research gaps that link the VRP with Green Logistics issues, such as employing the Time-dependent VRP as an approach to deal with the minimization of emissions during traveling.\bibliography{references}\footnotesize
\end{document}

参考资料:

natbib - BibTeX: same author, different years - TeX - LaTeX Stack Exchangehttps://tex.stackexchange.com/questions/204352/bibtex-same-author-different-years

LaTeX格式模板四-参考文献的引用_上官云霆的博客-CSDN博客_latex参考文献模板对于参考文献的引用,有两种方式:第一种不用JabRef之类的文献管理工具的文献引用方式;第二种是使用JabRef之类的文献管理工具的文献引用方式。现在我使用第二种引用方式。(JabRef是一种文献管理工具,使用挺简单方便的)不管是使用哪一种方式,都要在论文正文中引用论文出加语句\cite{索引名},正文中的索引名要和论文最后的参考文献相对应,否则论文编号不会正常显示。同时注意论文的索引名不用刻https://blog.csdn.net/sdtvyyb_007/article/details/50708775

Choosing a BibTeX Style - CIS Help Desk - Reed Collegehttps://www.reed.edu/cis/help/LaTeX/bibtexstyles.htmlHow to Reference in Latex - 7 Steps to Bibliography with BibTeXhttps://www.scijournal.org/articles/reference-in-latex

Natbib citation styles - Overleaf, Online LaTeX EditorAn online LaTeX editor that’s easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.https://www.overleaf.com/learn/latex/Natbib_citation_styles

Latex语法学习04:参考文献的引用相关推荐

  1. LaTeX语法学习(一):数学公式篇

    LaTeX语法学习(一):数学公式篇 文章目录 LaTeX语法学习(一):数学公式篇 一.前言 二.数学模式 1.行内公式 2.行间公式 3.公式手动编号 4.公式加粗 5.更改公式字母颜色 三.数学 ...

  2. latex语法学习(二)

    文档和语言的结构 如果排版风格反映了内容的逻辑和语义结构,读者就能看见和感觉到文章的这种脉络. 在latex中段落是最重要的文档单位,我们之所以称之为"文档单位",因为段落是反映一 ...

  3. Latex语法学习10:盒子的使用(fbox, tcolorbox, boitee),支持设置颜色和换页

    目录 1 \fbox 2 彩色的盒子(可换页) 3 boitee环境 1 \fbox 这段代码主要用到了三个命令: \noindent:表示取消缩进 \textwidth:表示设置盒子宽度为页面宽度 ...

  4. Latex语法学习08:打通latex、mathml和word公式转换

    目录 1 基于工具的转换 1.1 获取mathml源码 1.2 将mathml代码转换为latex 1.3 latex向mathml的转换 1.4 mathml粘贴到word 1.5 word转mat ...

  5. [LaTeX] 将参考文献的引用格式从编号改为 “作者,年份” 及可能出现的问题(Package natbib Error: Bibliography not compatible...)解决

    文章目录 前言 1 步骤 2 可能出现的问题:! Package natbib Error: Bibliography not compatible with author-year 3 小结 参考文 ...

  6. TexStudio的安装与使用教程(包括参考文献的引用)Latex教程

    TexStudio的安装与使用教程(包括参考文献的引用) 1 安装TexStudio 1.1 以Mac为例: 2 texStudio的使用 2.1 编辑数学公式 1. 从word公式转化为Latex ...

  7. latex学习笔记-参考文献上标与非上标混合使用

    提出问题 latex里面怎么一部分参考文献上标显示,一部分与文字平齐显示呢? 根据mwe而定 这是采用biblatex引入参考文献的方式 方法 将图片中的指令写入你的模板中,按照biblatex的方式 ...

  8. 解决Latex中参考文献没有引用却依然在出现的问题

    工具: bib文件.bibtex和TeXStudio 正常情况下,如果在文章中删除了对某篇文献的引用,那么它即使存在于bib文件中,也不会在论文中显示出来.但是在使用中可能会遇到这样的问题:参考文献没 ...

  9. LaTeX中文学习教程 笔记

    视频地址: LaTeX中文学习教程(用于论文或稿件排版,15集全) 用LaTeX写期刊论文的详细教程 一.基本结构 % 导言区 \documentclass{article}%book,article ...

最新文章

  1. “iloveyou88”比“ilovekale”好猜解的多
  2. aix oracle 登录用户,AIX 系统及 Oracle 数据库用户权限管理
  3. Hadoop伪集群环境搭建
  4. 深入理解javascript函数进阶系列第一篇——高阶函数
  5. 2018.09.16 loj#10243. 移棋子游戏(博弈论)
  6. hive 操作(四)
  7. 【学习】在Windows10平台使用Docker ToolBox安装docker(一)
  8. matlab画图函数双精度,Matlab中图像函数大全2_matlab函数大全
  9. 互联网专用计算机屏保,5款屏保,让你的电脑在闲置时也与众不同。
  10. Java毕设项目水果网店管理系统(java+VUE+Mybatis+Maven+Mysql)
  11. idea设置修改字体大小与样式【亲测好用】
  12. 微信小程序页面的基本布局方法——flex布局
  13. 网络安全课第九节 网络安全攻防实战
  14. 你真的会用微软输入法?
  15. 17个品牌,113款5G手机,5G离我们越来越近。
  16. mac上的kindle打开mobi文件的方式
  17. MySQL5.7官方下载链接导航
  18. kermit的安装、配置、使用
  19. 计算机网络 | 网络互联技术与设备
  20. java双人俄罗斯方块_双人版俄罗斯方块

热门文章

  1. Lee Hung-yi强化学习 | (2) Proximal Policy Optimization算法(PPO)
  2. DotNetty完全教程(八)
  3. Unix 网络编程基础
  4. 雅思核心词拾遗01----Politics + Culture
  5. Bresenham直线算法
  6. java之初识集合框架
  7. 苹果消消乐(C++) (枚举)
  8. Linux中mysql密码修改方法(亲测可用)
  9. 定期修改mysql 密码_MySQL修改账号密码方法大全
  10. 科研日记8.19 两头镀金光纤