James Bray's Latex Help - The Whole Thesis
Latex > Thesis Example

The Whole Thesis

These instructions assume that you have successfully compiled individual chapters (with no problems) using the instructions on previous web pages..


Directory Organisation

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

$HOMEDIR/thesis/all
$HOMEDIR/thesis/all/latex


File Download

There are five 'extra' files to download
thesis.tex - put in $HOMEDIR/thesis/all/latex
title.tex - put in $HOMEDIR/thesis/all/latex
acknowledgements.tex - put in $HOMEDIR/thesis/all/latex
abstract.tex - put in $HOMEDIR/thesis/all/latex
abbrev_body.tex - put in $HOMEDIR/thesis/all/latex

Also you need a copy of the 'chapter1_body.tex' file (and all the other chapter*_body.tex files) in this directory ($HOMEDIR/thesis/all/latex). All figures in the chapter*_body.tex files must be have the correct full path to the encapsulated postscript files e.g. in $HOMEDIR/thesis/chapter1/figures but only the 'tex' files need to be copied into the $HOMEDIR/thesis/all/latex directory.


File Modifications And Checks

You will need to edit the thesis.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 , latex and dvips.

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

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

You have to run 'latex' more times to compile your whole thesis (compared with a chapter) as it has more index files to handle. Basically you can run latex as many times as you like - just watch for when latex stops reporting errors.

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

That produce your postscript = thesis.ps


An Example Postscript Output

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