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 MATTERFollowing the declaration \ignorenoidxfile, which is the default, La<strong>TeX</strong> will silentlypass over attempts to use an idx file which has not been declared via \makeindex. Afterthe declaration \reportnoidxfile La<strong>TeX</strong> will whinge about any attempts to write to anunopened file.17.2.2 Preparing an indexIt it is easy for a computer to provide a list of all the words you have used, and wherethey were used. This is called a concordance. Preparing an index, though, is not merelya gathering of words but is an intellectual process that involves recognising and namingconcepts, constructing a logical hierarchy of these and providing links between relatedconcepts. No computer can do that for you though it can help with some tasks, such assorting things into alphabetical order, eliminating duplicates, and so forth.Several iterations may be required before you have an acceptable index. Generallyyou pick out the important words or phrases used on the first pass. Part of the skill ofindexing is finding appropriate words to describe things that may not be obvious fromthe text. If there are several ways of describing something they may all be included usinga ‘see’ reference to the most obvious of the terms, alternatively you could use ‘see also’references between the items. Entries should be broken down into subcategories so thatany particular item will not have a long string of page numbers and your reader is morelikely to quickly find the relevant place. After having got the first index you will mostprobably have to go back and correct all the sins of ommission and commission, and startthe cycle again.I found that indexing this manual was the most difficult part of preparing it. It waseasy to index the names of all the macros, environments, and so on as I had commandsthat would simultaneously print and index these. It was the concepts that was difficult. Iinserted \index commands as I went along at what seemed to be appropriate places butturned out not to be. I would use slightly different words for the same thing, and what wasworse the same word for different things. It took a long time to improve it to its presentrather pitiful state.\index[〈file〉]{〈stuff 〉}<strong>The</strong> \index macro specifies that 〈stuff 〉 is to appear in an index. By default the raw indexdata — the 〈stuff 〉 and the page number — will be output to the jobname.idx file, but ifthe optional 〈file〉 argument is given then output will be to the file.idx file.This book has two indexes. <strong>The</strong> main index uses the default indexing commands, whilethe second index does not. <strong>The</strong>y are set up like this:% in preamble\makeindex\makeindex[lines]% in body...\index{main} ...\index[lines]{First line} ......% at the end\clearpage% main index\pagestyle{Index}304

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

Saved successfully!

Ooh no, something went wrong!