12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

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.

17. BACK MATTERMany different Bib<strong>TeX</strong> styles are available and the particular one to be used is specified bycalling \bibliographystyle before the bibliography itself. <strong>The</strong> ‘standard’ bibliography〈style〉s follow the general schemes for mathematically oriented papers and are:plain <strong>The</strong> entry format is similar to one suggested by Mary-Claire van Leunen [Leu92],and entries are sorted alphabetically and labelled with numbers.unsrt <strong>The</strong> format is the same as plain but that entries are ordered by the citation order inthe text.alpha <strong>The</strong> same as plain but entries are labelled like ‘Wil89’, formed from the author andpublication date.abbrv <strong>The</strong> same as plain except that some elements, like month names, are abbreviated.<strong>The</strong>re are many other styles available, some of which are used in collaboration with apackage, one popular one being Patrick Daly’s natbib [Dal99a] package for the kinds ofauthor-year citation styles used in the natural sciences. Another package is jurabib [Ber02]for citation styles used in legal documents where the references are often given in footnotesrather than listed at the end of the document.I assume you know how to generate a bibliography using Bib<strong>TeX</strong>, so this is just a quickreminder. You first run La<strong>TeX</strong> on your document, having specified the bibliography style,cited your reference material and listed the relevant Bib<strong>TeX</strong> database(s). You then runBib<strong>TeX</strong>, and after running La<strong>TeX</strong> twice more the bibliography should be complete. After achange to your citations you have to run La<strong>TeX</strong> once, Bib<strong>TeX</strong> once, and then La<strong>TeX</strong> twicemore to get an updated set of references.<strong>The</strong> format and potential contents of a Bib<strong>TeX</strong> database file (a bib file) are specified indetail in Lamport [Lam94] and the first of the Companions [MG + 04]. Alternatively there isthe documentation by Oren Patashnik [Pat88a] who wrote the Bib<strong>TeX</strong> program.A Bib<strong>TeX</strong> style, specified in a bst file, is written using an anonymous stack based languagecreated specifically for this purpose. If you can’t find a Bib<strong>TeX</strong> style that provideswhat you want you can either use the makebst [Dal99b] package which leads you throughcreating your own style via a question and answer session, or you can directly write yourown. If you choose the latter approach then Patashnik’s Designing Bib<strong>TeX</strong> files [Pat88b] isessential reading. As he says, it is best to take an existing style and modify it rather thanstarting from scratch.17.2 INDEXIt is time to take a closer look at indexing. <strong>The</strong> <strong>class</strong> allows multiple indexes and an indexmay be typeset as a single or a double column.<strong>The</strong> general process is to put indexing commands into your source text, and La<strong>TeX</strong> willwrite this raw indexing data to an idx file. <strong>The</strong> raw index data is then processed, not byLa<strong>TeX</strong> but by yourself if you have plenty of spare time on your hands, or more usually bya separate program, to create a sorted list of indexed items in a second file (usually an indfile). This can then be input to La<strong>TeX</strong> to print the sorted index data.17.2.1 Printing an index\makeindex[〈file〉]\printindex[〈file〉]302

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

Saved successfully!

Ooh no, something went wrong!