James Bray's Latex Help - Chapter Example
Latex > Chapter Example

A Real Chapter Example


Directory Organisation

Create the following directories - substituting '$HOMEDIR' for the path of your home directory.

$HOMEDIR/thesis
$HOMEDIR/thesis/chapter1
$HOMEDIR/thesis/chapter1/figures
$HOMEDIR/thesis/chapter1/figures/hmm
$HOMEDIR/thesis/chapter1/latex
$HOMEDIR/thesis/references


File Download

There are four files to download
chapter1.tex - put in $HOMEDIR/thesis/chapter1/latex
chapter1_body.tex - put in $HOMEDIR/thesis/chapter1/latex
hmm.eps - put in $HOMEDIR/thesis/chapter1/figures/hmm
thesis.bib - put in $HOMEDIR/thesis/references


File Modifications And Checks

You will need to edit the chapter1.tex file. Substitute all instances of '/home/bsm/james' with the path of your own home directory ($HOMEDIR).

Check that you have the correctly installed the following style files:
ccaption.sty
jmb.bst
natbib.sty

They should all go in the $HOMEDIR/tex directory. See bibliography style files for more information.


Compiling Your Document

In general you have to observe the following sequence of operations: latex, bibtex, latex, latex and dvips.

Go to the directory where the .tex files are (e.g. $HOMEDIR/thesis/chapter1/latex). Remove old postscript files (.ps), dvi files (.dvi) and old bibliography files (.bbl). Obviously *DO NOT* remove the latex files (.tex).

Assuming your chapter master latex file is called 'chapter1.tex', type the following commands (hit return after each one):

cd $HOMEDIR/thesis/chapter1/latex
latex chapter1
bibtex chapter1
latex chapter1
latex chapter1
dvips chapter1.dvi -o chapter1.ps

That produce your postscript = chapter1.ps


An Example Postscript Output

An example of the postscript output can be downloaded here (chapter1.ps). View this file using ghostview or other suitable postscript viewer..