References and citations are best handled in a consistent way by using BibTeX. In this method, you supply all the relevant information about references in a ``.bib file'' without regard to ordering or style. (See the sample file myrefs.bib, below.) Then you let BibTeX format all citations and reference entries according to the chosen bibliographic style, and you don't have to sweat all the font and punctuation and ordering details yourself.
The reference/bibliography section usually appears at the end of an publication. In your LaTeX file, these two commands insert the reference section:
\bibliographystyle{xxx}
\bibliography{yyy}
The ``xxx'' is a style name -- plain or abbrv or siam or alpha or any of dozens of other available styles, many listed below.The ``yyy'' is the name of the bib file (yyy.bib) containing the reference database.
For example, the command \bibliography{myrefs} would call on file ``myrefs.bib''.
Below find the following:
\documentclass[11pt]{article}
\author{John Doe} \title{Sample Document}
\begin{document}
\maketitle
\section{Introduction}
According to the handbook of van Leunen \cite{vanleunen},
this paragraph---and certainly this
section---should be longer than one sentence.
\section{More references}
Here we see if the reference \cite{Narendra_1990}
to the Narendra article comes out OK, in particular,
with volume, number \& pages.
The necessary information for those who would use BibTeX
is available in the 1988 document of Prof.\ Patashnik \cite{btxdoc}.
Interested readers who can read French may also
want to read Poussin's proof\cite{primes}, though
it has nothing at all to do with BibTeX.
\section{Conclusion}
This is the concluding paragraph. Here I cite another of
Oren Patashnik's books\cite{btxhak} and, again,
van Leunen's and Poussin's \cite{vanleunen,primes}.
\bibliographystyle{plain} % (uses file "plain.bst")
\bibliography{myrefs} % expects file "myrefs.bib"
\end{document}
|
You can find .bib entries for major publications with a simple Google search. Links to some large online .bib databases (found with Google, 2004, keywords "book article incollection bib physics", etc.) include physics (1), physics (2), math (1), math (2), math (3), programming (1), programming (2), TeX/Publishing.But it isn't hard to enter the database information yourself. Use any text editor; choose your own keyword for a publication, then list its information fields key="info", one line at a time in any order. Note this sample database file ``myrefs.bib'':
@string{jgr = "J.~Geophys.~Res."}
@MISC{primes,
author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin",
note = "A strong form of the prime number theorem, 19th century",
year = 1879
}
@INBOOK{chicago,
title = "The Chicago Manual of Style",
publisher = "University of Chicago Press",
edition = "Thirteenth",
year = 1982,
pages = "400--401",
key = "Chicago"
}
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
@BOOK{latexbook,
author = "Leslie Lamport",
title = "{\LaTeX \rm:} {A} Document Preparation System",
publisher = "Addison-Wesley",
year = 1986
}
@UNPUBLISHED{btxdoc,
author = "Oren Patashnik",
title = "{Using BibTeX}",
note = "Documentation for general BibTeX users",
month = jan,
year = 1988
}
@UNPUBLISHED{btxhak,
author = "Oren Patashnik",
title = "Designing BibTeX Styles",
note = "The part of BibTeX's documentation
that's not meant for general users",
month = jan,
year = 1988
}
@BOOK{strunk,
author = "Strunk, Jr., William and E. B. White",
title = "The Elements of Style",
publisher = "Macmillan",
edition = "Third",
year = 1979
}
@book{vanleunen,
title = "A Handbook for Scholars",
author = "Mary-Claire van Leunen",
publisher = "Knopf",
year = "1979"
}
@ARTICLE{Zurek:1993,
AUTHOR = {Zurek, R. W. and Martin, L. J.},
TITLE = {Interannual Variability of planet-encircling dust activity on {M}ars},
YEAR = {1993},
JOURNAL = jgr,
VOLUME = {98},
NUMBER = {E2},
PAGES = {3247--3259}
}
@Article{Narendra_1990,
author = {K.S.Narendra and K.Parthsarathy},
title = {Identification and Control of Dynamical System
using Neural Networks},
journal = "IEENN",
year = {1990},
volume = {1},
number = {1},
month = {},
pages = {4-27},
note = {},
annote = {}
}
|
| step # |
to create file mydocument.dvi: | to create file mydocument.pdf: | result of command: |
|---|---|---|---|
| 1 | latex mydocument | pdflatex mydocument | creates .aux file which includes keywords of any citations |
| 2 | bibtex mydocument | bibtex mydocument | uses the .aux file to extract cited publications from the database in the .bib file, formats them according to the indicated style, and puts the results into in a .bbl file |
| 3 | latex mydocument | pdflatex mydocument | inserts appropriate reference indicators at each point of citation, according to the indicated bibliography style |
| 4 | latex mydocument | pdflatex mydocument | refines citation references and other cross-references, page formatting and page numbers |
|
1: ieeetr 2: unsrt 3: IEEE 4: ama 5: cj 6: nar 7: nature 8: phjcp 9: is-unsrt |
10: plain 11: abbrv 12: acm 13: siam 14: jbact 15: amsplain 16: finplain 17: IEEEannot 18: is-abbrv |
19: is-plain 20: annotation 21: plainyr 22: decsci 23: jtbnew 24: neuron 25: cell 26: jas99 27: abbrvnat |
28: ametsoc 29: apalike 30: jqt1999 31: plainnat 32: jtb 33: humanbio 34: these 35: chicagoa 36: development |
37: unsrtnat 38: amsalpha 39: alpha 40: annotate 41: is-alpha 42: wmaainf 43: alphanum 44: apasoft |
Several of these styles are part of all LaTeX installations, and others can be downloaded from http://www.tug.org/tex-archive/biblio/bibtex/contrib/. Each is a file with the suffix .bst; for example, to use abbrvnat style, you must have the file abbrvnat.bst installed in your LaTeX directory, or in your current working directory, or anywhere where LaTeX can find it.
Those dissatisfied with the 100+ styles available online can design their own, if they wish; see Oren Patashnik's Designing BibTeX Styles.
(2) When using BibTeX, the interaction between names and accenting is somewhat tricky. You should use `G{\"o}del' or `G{\"{o}}del', and not `{G{\"{o}}del}' or `{G\"{o}del}'. (Thanks to Dana Jacobsen for this tip.)
(3) STANDARD ENTRY TYPES:
(4) STANDARD FIELDS