Latex 编辑下参考文献的引用命令(natbib)

本文介绍了 LaTeX 中 natbib 包的基本使用方法,包括不同引用命令的语法与效果展示,如 citet 和 citep 的应用,以及如何进行多重引用、定义别名等高级功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文链接:http://merkel.texture.rocks/Latex/natbib.php

Basic commands

The natbib package has two basic citation commands, \citet and \citep for textual and parenthetical citations, respectively. There also exist the starred versions \citet* and \citep* that print the full author list, and not just the abbreviated one. All of these may take one or two optional arguments to add some text before and after the citation.
\citet{jon90}     -->     Jones et al. (1990)
\citet[chap. 2]{jon90}     -->     Jones et al. (1990, chap. 2)
\citep{jon90}     -->     (Jones et al., 1990)
\citep[chap. 2]{jon90}     -->     (Jones et al., 1990, chap. 2)
\citep[see][]{jon90}     -->     (see Jones et al., 1990)
\citep[see][chap. 2]{jon90}     -->     (see Jones et al., 1990, chap. 2)
\citet*{jon90}     -->     Jones, Baker, and Williams (1990)
\citep*{jon90}     -->     (Jones, Baker, and Williams, 1990)

Multiple citations

Multiple citations may be made by including more than one citation key in the \cite command argument.
\citet{jon90,jam91}     -->     Jones et al. (1990); James et al. (1991)
\citep{jon90,jam91}     -->     (Jones et al., 1990; James et al. 1991)
\citep{jon90,jon91}     -->     (Jones et al., 1990, 1991)
\citep{jon90a,jon90b}     -->     (Jones et al., 1990a,b)

Numerical mode

These examples are for author-year citation mode. In numerical mode, the results are different.
\citet{jon90}     -->     Jones et al. [21]
\citet[chap. 2]{jon90}     -->     Jones et al. [21, chap. 2]
\citep{jon90}     -->     [21]
\citep[chap. 2]{jon90}     -->     [21, chap. 2]
\citep[see][]{jon90}     -->     [see 21]
\citep[see][chap. 2]{jon90}     -->     [see 21, chap. 2]
\citep{jon90a,jon90b}     -->     [21, 32]

Suppressed parentheses

As an alternative form of citation, \citealt is the same as \citet but without parentheses. Similarly, \citealp is \citep without parentheses. Multiple references, notes, and the starred variants also exist.
\citealt{jon90}     -->     Jones et al. 1990
\citealt*{jon90}     -->     Jones, Baker, and Williams 1990
\citealp{jon90}     -->     Jones et al., 1990
\citealp*{jon90}     -->     Jones, Baker, and Williams, 1990
\citealp{jon90,jam91}     -->     Jones et al., 1990; James et al., 1991
\citealp[pg. 32]{jon90}     -->     Jones et al., 1990, pg. 32
\citetext{priv. comm.}     -->     (priv. comm.)
The \citetext command allows arbitrary text to be placed in the current citation parentheses. This may be used in combination with \citealp.

Partial citations

In author-year schemes, it is sometimes desirable to be able to refer to the authors without the year, or vice versa. This is provided with the extra commands
\citeauthor{jon90}     -->     Jones et al.
\citeauthor*{jon90}     -->     Jones, Baker, and Williams
\citeyear{jon90}     -->     1990
\citeyearpar{jon90}     -->     (1990)

Forcing upper cased names

If the first author's name contains a von part, such as ``della Robbia'', then \citet{dRob98} produces ``della Robbia (1998)'', even at the beginning of a sentence. One can force the first letter to be in upper case with the command \Citet instead. Other upper case commands also exist.
when \citet{dRob98}     -->     della Robbia (1998)
then \Citet{dRob98}     -->     Della Robbia (1998)
  \Citep{dRob98}     -->     (Della Robbia, 1998)
  \Citealt{dRob98}     -->     Della Robbia 1998
  \Citealp{dRob98}     -->     Della Robbia, 1998
  \Citeauthor{dRob98}     -->     Della Robbia
These commands also exist in starred versions for full author names.

Citation aliasing

Sometimes one wants to refer to a reference with a special designation, rather than by the authors, i.e. as Paper I, Paper II. Such aliases can be defined and used, textual and/or parenthetical with:
\defcitealias{jon90}{Paper I}    
\citetalias{jon90} -> Paper I
\citepalias{jon90} -> (Paper I)
These citation commands function much like \citet and \citep: they may take multiple keys in the argument, may contain notes, and are marked as hyperlinks.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值