Next: Appendices
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 the Current Index to Statisticshas
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 statistical standard is the asa style, for which you need the
asa bst
and sty
files. Place them in a directory and then add the following in the
preamble of your Latex file:
\usepackage{$HOME/latex/asa} (or whatever
path goes to where you put the style files)
- How to cite within the document:
- \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.
\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
- Here are some example source files with the syntax for various types
of references (journal article, book, technical report, dissertation,
etc.)
Next: Appendices
Up: Sections of a Latex
Previous: Latex preamble
Chris Paciorek
2006-04-02