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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14.2. Creating a bibliographic database 311<br />

receives the number 1, that of the next \cite with a different<br />

key the number 2, <strong>and</strong> so on. The markings <strong>and</strong> listings are<br />

otherwise the same as for plain.<br />

alpha The ordering in the bibliography is the same as for plain but the<br />

markers are an abbreviation of the author’s name plus year of<br />

publication. A reference <strong>to</strong> Smith (1987) would appear as [Smi87]<br />

instead.<br />

abbrv The ordering <strong>and</strong> marking are the same as for plain, but the<br />

bibliographic listing is shortened by abbreviating first names,<br />

months, <strong>and</strong> journal names.<br />

For author–year citations <strong>and</strong> the natbib package (Section 9.3.4),<br />

there exist the bibliographic styles plainnat, unsrtnat, <strong>and</strong> abbrvnat,<br />

producing the same bibliography format as the corresponding st<strong>and</strong>ard<br />

styles, but with natbib compatibility.<br />

14.2 Creating a bibliographic database<br />

Creating a bibliographic database might seem like more work than typing<br />

up a list of references with the thebibliography environment; the great<br />

advantage is that the entries need <strong>to</strong> be included in the database once<br />

<strong>and</strong> only once <strong>and</strong> are then available for all future publications. Even<br />

if a different bibliography style is dem<strong>and</strong>ed in later works, all the information<br />

is already on h<strong>and</strong> in the database for BIBT E X <strong>to</strong> write a new<br />

thebibliography environment in another format. In fact, we feel that<br />

even for a single document, it is simpler <strong>to</strong> make an entry in<strong>to</strong> the database<br />

than <strong>to</strong> adhere <strong>to</strong> the very precise <strong>and</strong> fiddly requirements of a literature<br />

list, especially regarding punctuation <strong>and</strong> positioning of the authors’ initials.<br />

The database entry proceeds very quickly <strong>and</strong> easily if one has a<br />

generalized template, as illustrated in Section 14.2.6.<br />

The entries in a bibliographic database are of the form<br />

}<br />

@BOOK{knuth:86a,<br />

AUTHOR = "Donald E. Knuth",<br />

TITLE = {The \TeX{}book},<br />

EDITION = "third",<br />

PUBLISHER = "Addison--Wesley",<br />

ADDRESS = {Reading, Massachusetts},<br />

YEAR = 1986<br />

The first word, prefixed with @, determines the entry type, as explained<br />

in the next section. The entry type is followed by the reference information<br />

for that entry enclosed in curly braces { }. The very first entry is the key

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

Saved successfully!

Ooh no, something went wrong!