Skip to content

Commit

Permalink
replaced very complex Makefile with a much simpler one
Browse files Browse the repository at this point in the history
also moved CUni.* to subdirectory, such that "make clean" can "rm *.eps"
  • Loading branch information
mgkuhn committed Jan 7, 2016
1 parent 01eaf42 commit 836313a
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 3,941 deletions.
File renamed without changes.
File renamed without changes.
3,953 changes: 62 additions & 3,891 deletions Makefile

Large diffs are not rendered by default.

44 changes: 4 additions & 40 deletions README.md
Expand Up @@ -21,13 +21,6 @@ Finally, build the `PDF` document by running the following in the command line:

make

If you're using the `glossaries` package, try using these:

./makepdf
./makeps

The above scripts work around a bug in the supplied makefile (i.e., the makefile forgets to rebuild the glossary index when pages change between LaTeX build runs).

## How will it look like?

Your thesis document will look something like this (using the Adobe Sabon font and the _clean_ sample, which can be found in [`./Samples/clean`](https://github.com/cambridge/thesis/tree/master/Samples/clean)):
Expand All @@ -45,44 +38,21 @@ To build the `PDF` version of your thesis, run:

make

or

./makepdf

This build procedure uses `pdflatex` and will produce `thesis.pdf`.

To produce `DVI` and `PS` versions of your document, you should run:

./makeps

or
make thesis.ps

make BUILD_STRATEGY=latex

This will use the `latex` command to build the document and will produce
`thesis.dvi`, `thesis.ps` and `thesis.pdf` documents.
This will use the `latex` and `dvips` commands to build the document
and will produce `thesis.dvi` and `thesis.ps` documents.

### Clean unwanted files

To clean unwanted clutter (all LaTeX auto-generated files), run:

make clean

__Note__: the `Makefile` itself is take from and maintained at
[here](http://code.google.com/p/latex-makefile/).

## Known issues

1. When using the glossary, references are not pointing to the right page.

__Workaround__: Build the document with:

./makepdf

or

make && makeglossaries thesis && makeindex thesis && pdflatex thesis.tex

-------------------------------------------------------------------------------

# Usage details
Expand Down Expand Up @@ -172,8 +142,7 @@ The Computer Laboratory guidelines for technical reports:
## _Q3_: Can I use my own Makefile?

By all means. We are currently using the very nice (and smart) `Makefile` built
specifically for LaTeX:
By all means. Previously we used the horrendously complex `Makefile` at

> [http://code.google.com/p/latex-makefile/](http://code.google.com/p/latex-makefile/)
Expand All @@ -183,12 +152,7 @@ Put the files and folders listed below into a directory where LaTeX can find the
info see __[1]__):

cam-thesis.cls
CUni.eps
CUni.pdf
CollegeShields/
Makefile
Variables.ini


> __[1]__ You can put these files either into the standard LaTeX directory for
> classes __[2]__, or a directory listed in your `TEXINPUTS` environment variable.
Expand Down
3 changes: 0 additions & 3 deletions Variables.ini

This file was deleted.

2 changes: 1 addition & 1 deletion cam-thesis.cls
Expand Up @@ -336,7 +336,7 @@ for the degree of Doctor of Philosophy%
%% LOGO box
\newsavebox{\cam@logo}
\begin{lrbox}{\cam@logo}
\includegraphics[width=73mm]{CUni}
\includegraphics[width=73mm]{CollegeShields/CUni}
\end{lrbox}

%% THESIS TITLE box
Expand Down
3 changes: 0 additions & 3 deletions makepdf

This file was deleted.

3 changes: 0 additions & 3 deletions makeps

This file was deleted.

0 comments on commit 836313a

Please sign in to comment.