Eric Partlo edited Chapter_4_SpecialitiesWhen_putting_together__.html  over 8 years ago

Commit id: 14b94680332030f87d08b04ce90f91050469c308

deletions | additions      

       

Chapter 4 - Specialities
When putting together a large document, LaTeX will help with some special features like index generation, bibliography management, and other things.  A much more complete description of specialities and enhancements possible with LaTeX can be found in the LaTeX Manual and The LaTeX Companion.
Leslie Lamport. L A TEX: A Document Preparation System. Addison-
Wesley, Reading, Massachusetts, second edition, 1994, ISBN 0-201-
52983-1.

Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle,
Chris Rowley. The L A TEX Companion, (2nd Edition). Addison-Wesley,
Reading, Massachusetts, 2004, ISBN 0-201-36299-6.

4.1 Including Encapsulated PostScript
LaTeX provides the basic facilities to work with floating bodies, such as images or graphics, with the figure and table environments.  There are several ways to generate the actual graphics with basic LaTeX or LaTeX extension package.  A much easier way to get graphics into a document is to generate them with a specialised software package and then include the finished graphics in the document.  LaTeX packages offer many ways to do this through Encapsulated PostScript (EPS) graphics, because it is quite easy to do and widely used.  

When working on a system with a PostScript printer available for output and with the graphicx package installed, use the following step by step guide to include a picture into your document:
  1. Export the picture from your graphics program to EPS format
  2. Load the graphicx package in the preamble of the input file with \usepackage[driver]{graphicx} where driver is the name of your "dvi to PostScript" converter program
  3. \includegraphics[key=value,...]{file} The optional parameter accepts a comma separated list of keys and associated values.  The keys can be used to alter the width, height, and rotation of the included graphic.  

4.2 Bibliography
Produce a bibliography with the thebibliography environment.  Each entry starts with \bibitem[label]{marker}
The marker is then used to cite the book, article or paper within the document. \cite{marker}

For larger projects, you might want to check out the BibTeX program.  BibTeX is included with most TeX distributions.  It allows you to maintain a bibliographic database and then extract the references relevant to things you cited in your paper.  

4.3 Indexing

 Indexing
A very useful feature of many books is their index.  With LaTeX and the support program makeindex, an index can be generated quite easily.  

To enable their indexing feature of LaTeX, the makeidx package must be loaded in the preamble with \usepackage{makeidx} and the special indexing commands must be enabled by putting the \makeindex command in the preamble.  The content of the index is specified with \index{key@formatted_entry}

When the input file is processed with LaTeX, each \index command writes an appropriate index entry, together with the current page number, to a special file.  The file has the same name as the LaTeX input file, but a different extension (.dix).  This .idx file can then be processed with the makeindex program: makeindex filename

The makeindex program generates a sorted index with the same base file name, but this time with the extension .ind.

4.2 Fancy Headers