28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.3. Bibliographies 219<br />

by the last digits of the year of publication. If the same author has more than<br />

one work in a given year, add a running letter <strong>to</strong> distinguish them, for example<br />

knu86c, knu86d. With such labels, it is appropriate <strong>to</strong> make the reference keys<br />

the same as the labels. The indentation depth should be 1.5 cm.<br />

Note: The indentation depth is determined by the argument sample label in the<br />

thebibliography environment. This is usually a dummy text with the right<br />

width. This width can be given precisely with \hspace{width}.<br />

Exercise 9.5: Copy the thebibliography environment from the above exercise<br />

<strong>to</strong> the end of your st<strong>and</strong>ard exercise file (but ahead of the \end{document}<br />

comm<strong>and</strong>). Refer <strong>to</strong> the entries in the bibliography by inserting \cite comm<strong>and</strong>s<br />

in<strong>to</strong> your text. Make sure that the key in the \cite comm<strong>and</strong> is written exactly<br />

as in the \bibitem comm<strong>and</strong> in the thebibliography environment.<br />

9.3.2 Bibliography with BIBT E X<br />

Bibliographic databases <strong>and</strong> the BIBT E X program are fully described in<br />

Chapter 14. Here we just review the essential aspects for the L AT E X source<br />

file.<br />

• All the information for the literature references is placed in one or<br />

more databases. Each entry is given an identifying key (the key in<br />

the \bibitem argument) which is the h<strong>and</strong>le <strong>to</strong> refer <strong>to</strong> it.<br />

• In the source text, citations <strong>to</strong> the references are made with various<br />

comm<strong>and</strong>s like \cite, \citet, \citep, taking the key as argument.<br />

• The bibliography style must be specified somewhere in the document<br />

with \bibliographystyle{bib style}; the bib style determines how<br />

the bibliography is <strong>to</strong> be formatted; the basic style is plain for<br />

numerical citations, or plainnat with the natbib package.<br />

• Give the comm<strong>and</strong> \bibliography{database} where the bibliography<br />

is <strong>to</strong> appear; database is a list of all databases <strong>to</strong> be searched.<br />

• Process the source file with L AT E X; run BIBT E X <strong>and</strong> then L AT E X twice.<br />

BIBT E X writes a bibliography following the formatting specifications of<br />

bib style in<strong>to</strong> a thebibliography environment, s<strong>to</strong>ring it in a file with<br />

extension.bbl; this file is input by the \bibliography comm<strong>and</strong>.<br />

9.3.3 Numerical citations<br />

St<strong>and</strong>ard L AT E X can only h<strong>and</strong>le numerical bibliographies <strong>and</strong> citations. In<br />

this case, the citation in the text is made with the comm<strong>and</strong><br />

\cite[extra]{key}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!