Reference sheet for natbib usage
(Describing version 7.0b from 2002/02/27)
For a more detailed description of the natbib package, LATEX the source file natbib.dtx.
OverviewThe natbib package is a reimplementation of the LATEX \cite command, to work with both author-year and numerical citations. It is compatible with the standard bibliographic style files, such as plain.bst, as well as with those for harvard, apalike, chicago, astron, authordate.
LoadingLoad with \usepackage[options]{natbib}. See list of options at the end.
Replacement bibliography stylesI provide three new .bst files to replace the standard LATEX numerical ones:plainnat.bst abbrvnat.bst unsrtnat.bst Basic commandsThe 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.
Multiple citationsMultiple citations may be made by including more than one citation key in the \cite command argument.
Numerical modeThese examples are for author-year citation mode. In numerical mode, the results are different.
Suppressed parenthesesAs 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.The \citetext command allows arbitrary text to be placed in the current citation parentheses. This may be used in combination with \citealp. Partial citationsIn 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
Forcing upper cased namesIf 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.These commands also exist in starred versions for full author names.
Citation aliasingSometimes 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: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. Selecting citation style and punctuationUse the command \bibpunct with one optional and 6 mandatory arguments:
The optional argument is the character preceding a post-note, default is a comma plus space. In redefining this character, one must include a space if one is wanted. Example 1, \bibpunct{[}{]}{,}{a}{}{;} changes the output of \citepjon90,jon91,jam92into [Jones et al. 1990; 1991, James et al. 1992]. Example 2, \bibpunct[; ]{(}{)}{,}{a}{}{;} changes the output of \citep[and references therein]{jon90}into (Jones et al. 1990; and references therein).
Other formatting options
Automatic indexing of citationsIf one wishes to have the citations entered in the .idx indexing file, it is only necessary to issue \citeindextrue at any point in the document. All following \cite commands, of all variations, then insert the corresponding entry to that file. With \citeindexfalse, these entries will no longer be made.
Use with chapterbib packageThe natbib package is compatible with the chapterbib package which makes it possible to have several bibliographies in one document. The package makes use of the \include command, and each \included file has its own bibliography. The order in which the chapterbib and natbib packages are loaded is unimportant. The chapterbib package provides an option sectionbib that puts the bibliography in a \section* instead of \chapter*, something that makes sense if there is a bibliography in each chapter. This option will not work when natbib is also loaded; instead, add the option to natbib. Every \included file must contain its own \bibliography command where the bibliography is to appear. The database files listed as arguments to this command can be different in each file, of course. However, what is not so obvious, is that each file must also contain a \bibliographystyle command, preferably with the same style argument. Sorting and compressing citationsDo not use the \cite package with natbib; rather use one of the options sort or sort&compress.These also work with author-year citations, making multiple citations appear in their order in the reference list.
Long author list on first citationUse option longnamesfirst to have first citation automatically give the full list of authors.Suppress this for certain citations with \shortcites{key-list}, given before the first citation.
Local configurationAny local recoding or definitions can be put in natbib.cfg which is read in after the main package file.
Options that can be added to \usepackage
About this document ...This document was generated using the LaTeX2HTML translator Version 200 2-1 (1.68), © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds, © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney. The command line arguments were: latex2html -split 0 -no_navigation -t 'Natbib reference sheet' natnote s.tex Original file: natnotes.tex, © 1993-2002 Patrick W Daly, Max-Planck-Institut fr Aeronomie, D-37191 Katlenburg-Lindau The original LATEX file was modified by S. Merkel, Institute for Solid State Physics, Univ. of Tokyo, on 12/26/2002 to be converted to HTML properly. The resulting HTML file was modified by S. Merkel as well. |