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

来源:互联网 发布:移动网络被断 编辑:程序博客网 时间:2024/05/21 07:05

原文链接: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.