BibTeX |
BibTeX is a tool for formatting bibliography used by the LaTeX document preparation system.
BibTeX was created by Oren Patashnik and Leslie Lamport in 1985. BibTeX makes it easy to cite sources in a consistent manner, by separating bibliographic information from the presentation of this information. This same principle of separation of content and presentation/style is used by LaTeX itself, by XHTML and Cascading Style Sheets, etc.
= Bibliographic information file: .bib =
BibTeX uses a style-independent text-based file format for lists of bibliography items, such as articles, books, theses. BibTeX bibliography files usually end in .bib. Bibliography items included in a .bib are split by types. The following types are understood by virtually all bibtex styles:
= Bibliographic style file: .bst=
BibTeX style files, for which the suffix .bst is common, are written in a simple, stack-based programming language that describes how bibliography items should be formatted. The BibTeX program bibtex will then format bibliographic items according to a style file, typically by generating TeX or LaTeX formatting commands. However, style files for generating HTML output also exist.
=Example=
A .bib file might contain the following entry, which describes Abramowitz and Stegun:
@Book{abramowitz+stegun, author = Milton Abramowitz and Irene A. Stegun , title = Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables , publisher = Dover , year = 1964, address = New York , edition = ninth Dover printing, tenth GPO printing , isbn = 0-486-61272-4 }
If a document references this handbook, the bibliographic information may be formatted in different ways depending on which citation style (APA style, The MLA style manual, Chicago Manual of Style etc.) is employed. The way LaTeX deals with this is by specifying cite commands and the desired bibliography style in the LaTeX document. If the command cite{abramowitz+stegun} appears inside a LaTeX document, the bibtex program will include this book in the list of references for the document and generate appropriate LaTeX formatting code. When viewing the formatted LaTeX document, the result might look like this:
: Abramowitz, Milton and Irene A. Stegun (1964), Handbook of mathematical functions with formulas, graphs, and mathematical tables. New York: Dover.
Depending on the style file, BibTeX may rearrange authors last names, change the case of titles, omit fields present in the .bib file, format text in italics, add punctuation, etc. Since the same style file is used for an entire list of references, these are all formatted consistently with minimal effort required from authors or editors.
=Style files for different uses=
There are may different style files readymade for different journals. If you need to customize citation styles even further you can use the natbib package, or use the makebst package.
=External links=
|
|