Next: Change the case of
Up: Sections of a Latex
Previous: Latex preamble
Bibtex allows you to create reference sections and cite sources very
easily, once you get up to speed with how to use it. One very nice
feature is that you can create files that list your citations/sources
and reuse the information in multiple documents. Note that Google
Scholar has an 'Import into Bibtex' option that will create a bibtex-formatted
reference and the Current Index to Statistics
has an option for outputting Bibtex-formatted references rather than
html format. You might organize these source files by topic (see below).
- There are lots of different styles for reference sections/bibliographies.
- One standard statistical style is the ASA style. You'll need style
files bst
and sty
that implement this.
- Another style is Natbib.
- Steps to using Bibtex
- Refer to the package containing the styles in the preamble of your
Latex file. E.g.,
- \usepackage{$HOME/latex/asa} (or whatever
path goes to where you put the style files)
- \usepackage{natbib}
- To make citations in a document, the exact syntax varies by style.
Here it is for the ASA style as implemented in the files you can download
above
- \cite{Fuen:Smit:2000} % Fuentes and Smith
(2000)
- (\citenp{Fuen:Smit:2000}) % (Fuentes and
Smith 2000)
- \cite[p. 817]{Fuen:Smit:2000} % Fuentes
and Smith (2000, p. 817)
- To change how punctuation appears in citation in the main body -
e.g., 'Paciorek et al. 2001' vs. 'Paciorek et al.,
2001',
you can monkey with the following command placed in your preamble;
I'm not sure, however, if this is only for the American Meteorological
Style that I used when I dealt with this issue.
- \bibpunct[,]{(}{)}{;}{a}{,}{,}
- see natbib.sty
for info
- To create the reference/literature cited section, place the following
text at the point in the document where you want the section to appear,
giving the name of the style.
\bibliographystyle{$HOME/latex/asa}
\bibliography{$HOME/bibfiles/cyclones,$HOME/bibfiles/thesis,$HOME/bibfiles/statgeneral}
The three files in the second line are the source files for your citations
that when combined should contain all the sources referred to using
\cite (or \citenp)
in the document; the source files should have the .bib extension,
i.e., cyclones.bib,thesis.bib,statgeneral.bib.
For Natbib, one option is \bibliographystyle{plainnat}
- Here are some example source files with the syntax for various types
of references (journal article, book, technical report, dissertation,
etc.)
Last updated: 12/13/08.
Next: Change the case of
Up: Sections of a Latex
Previous: Latex preamble
Chris Paciorek
2012-01-21