|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help |
It is largely for students writing their fourth year projects, first year PhD reports or the PhD thesis itself. It goes rather beyond those minimal requirements, especially in its support of PDF options for online documents. It has been written in a generic fashion to allow easy use and adaption to cater for the needs of different students, departments and also universities.
By simplying dropping your latex text code in the relevant sections (such as introduction, conclusions etc.), you'll be able to quickly produce a thesis document. The template cuts out all the mundane tasks for fidgeting with the settings to make the book class into a thesis.
Please feel free to use and modify it for your own non-commercial purpose and in line with GNU General Public License
The template is very well annotated and examples are given demonstrating the relative ease with which you can change stuff to meet your own needs.
Download CUEDThesisPSnPDF.tgz or CUEDThesisPSnPDF.zip. You needn't install the class file in with the LaTeX distribution. Once you've downloaded the files, try changing the name of thesis.pdf then running make thesis.pdf to produce a new version. If you get output ending with something like
Output written on thesis.pdf (19 pages, 224756 bytes). Transcript written on thesis.log.
then a thesis.pdf file has been produced that you can read with Acrobat Reader, etc, and you're ready to write your document.
CUED's Ph.D Planning page mentions several requirements for Ph.D Theses
CUED's 2nd Notice for IIB project students mentions several requirements for IIB project reports
You can choose to base your document on LaTeX's book class or report class. The book class lets you have Parts and Chapters, and numbers section starting at 1. The Report class numbers sections starting at 0. Choose either book (the default) or article as a class option.
The class uses several packages. Here's a list of the main ones with the release that the template has been tested with
3 in particular are worth mentioning because they control features that you might wish to change
\usepackage[ pdftex, plainpages = false, pdfpagelabels,
pdfpagelayout = useoutlines,
bookmarks,
bookmarksopen = true,
bookmarksnumbered = true,
breaklinks = true,
linktocpage,
pagebackref,
colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = red,
anchorcolor = green,
hyperindex = true,
hyperfigures
The extra meta information for the PDF document is provided using the pdfinfo command. For Postscript production the options are
\usepackage[ dvips,
bookmarks,
bookmarksopen = true,
bookmarksnumbered = true,
breaklinks = true,
linktocpage,
pagebackref,
colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = red,
anchorcolor = green,
hyperindex = true
For the front pages you also need to set some other variables
\author \collegeordept \university \crest \degree \degreedate
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}}
\renewcommand{\sectionmark}[1]{}
\fancyhf{}
\fancyhead[RO]{\bfseries\rightmark}
\fancyhead[LE]{\bfseries\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
For PDF production, PNG, PDF and JPG graphics files are sought in ThesisFigs/PNG/, ThesisFigs/PDF/ or ThesisFigs/. For Postscript output, EPS files are sought in in ThesisFigs/EPS/ and ThesisFigs/
Various page dimensions are set to these defaults
\setlength{\evensidemargin}{1.96cm}
\setlength{\topmargin}{1mm}
\setlength{\headheight}{1.36cm}
\setlength{\headsep}{1.00cm}
\setlength{\textheight}{20.84cm}
\setlength{\textwidth}{14.5cm}
\setlength{\marginparsep}{1mm}
\setlength{\marginparwidth}{3cm}
\setlength{\footskip}{2.36cm}
You can reset these values in the preamble.
If you wish to use biblatex
\usepackage[square, sort, numbers, authoryear]{natbib}
by
\usepackage[style=authoryear,citestyle=alphabetic,backref=false,hyperref=false]{biblatex}
and remove pagebackref from the hyperref optionsOnce you've removed the provided *.bbl and *.aux files, doing pdflatex thesis.tex; bibtex thesis; pdflatex thesis.tex;pdflatex thesis.tex should work.
Many problems can be fixed by removing all the intermediate files and re-processing. On Unix, make clean and make latexclean tidy up.
colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = red,
You can override these in your thesis file - either set the colors to black or set colorlinks to false. For example you could do
\hypersetup{colorlinks = false}
\usepackage[round, sort, numbers, authoryear]{natbib}
(at about line 39) to
\usepackage[square, sort, numbers, authoryear]{natbib}
Furthermore, in the thesis.tex file you need to have
\bibliographystyle{Classes/CUEDbiblio}
as the only active bibliographystyle line
\bibliographystyle{unsrtnat}
or
\bibliographystyle{unsrt}
\chapter*{Preface\markboth{Preface}{}}
Entering the \markboth command inside the \chapter* insures that the mark will not be separated from the title by a page break.
! Package natbib Error: Bibliography not compatible with author-year citations. (natbib) Press <return> to continue in numerical citation style.Use the plainnat bibliography style instead of the Classes/CUEDbiblio style if you want author-year references (thanks to Marcos Pelenur for pointing this out). Alternatively, if you use
\usepackage[square, sort, numbers]{natbib}
then you won't get the problem (but you won't get author-year references either)Version 1.1 appeared in July 2010, with these changes
\usepackage{setspace}
\onehalfspacing
used instead of
\renewcommand\baselinestretch{1.2}
\baselineskip=18pt plus1pt
In December 2011 minor tweak were made to the class file (thanks to Sasa Tomic) and to the Makefile
The old version is still available.
| | Cambridge University | CUED | |