Thursday, February 24, 2011

Natbib

http://merkel.zoneo.net/Latex/natbib.php

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)



Install amsmath support fof vim
https://tex.stackexchange.com/questions/416030/how-do-i-make-vim-highlight-math-properly-in-the-align-environment 

No comments:

Post a Comment