Skip to content
Snippets Groups Projects
Commit 2027df16 authored by Magnus Hagdorn's avatar Magnus Hagdorn
Browse files

import edthesis to gitlab

parents
Branches
No related tags found
No related merge requests found
Pipeline #2097 failed
Showing
with 347 additions and 0 deletions
*~
Template for a LaTeX PhD UoE Thesis.
====================================
Author: Magnus Hagdorn
This template setup allows you to produce:
* a thesis that adheres to the UoE regulations
(at least my interpretations of them and no-one complained when
I submitted mine)
* a nicely formatted pdf/ps version of the same thesis
with single line spacing, etc
* individual documents for each chapter
Indivdual chapters reside in their own directories. (Re)-Define the macro `\dir`
to the relative path where files for the current chapter can be found. You can
then use `\dir` to include files or graphics, e.g.
```
\newcommand{\dir}{theory}
\input{\dir/theory.tex}
\epsfig{file=\dir/images/test.eps,width=0.5\textwidth}
```
Using this macro allows you to distribute files over a number of directories.
The common directory
--------------------
This directory contains files used by all the documents:
* the packages.tex files contains a lits of packages used
* the definitions.tex file contains settings and macros
The preface directory
---------------------
contains files for the preface.
The template directory
----------------------
This directory should be copied for each chapter. Rename the sub directory
accordingly. All files should be kept in this sub directory. If you want to
produce a document for the individual chapter, run latex on the chapter.tex
file.
The thesis directory
--------------------
This directory pulls files from the preface and the chapter directories together
to produce the complete thesis. There are 3 different top level files:
* latex ed_thesis.tex
to produce official 1.5 (?) spaced thesis which adheres to the regulations
* latex nicepdf_thesis.tex
to produce a dvi file to be processed using dvipdft. The resulting pdf will
have colour hyperlinks.
* latex niceps_thesis.tex
to produce a single spaced thesis without the hyperlinks for printing
All three top level files include the thesis.tex file. This file includes the
actual preface and chapter files.
You can use the `\ifthenelse` macro to do specific things for either the standard
or nice thesis version, e.g.
```
\ifthenelse{\boolean{edthesis}}
{
Do something specific for the offical version
}
{
Do something else for the nice version
}
```
If you have any questions or problems contact it.geos@ed.ac.uk.
\documentclass[12pt,english,a4paper]{report}
\input{../common/packages.tex}
\input{../common/definitions.tex}
\setlength{\textheight}{24cm}
\setlength{\headsep}{0cm}
\newcommand{\dir}{chapter}
\begin{document}
\title{Chapter 1}
\author{Una Person}
\date{
\today\\
\vspace{2cm}
{\centering\footnotesize\begin{tabular}[c]{c}
\epsfig{file=../preface/2Line2ColCMYK_CS3.eps,height=3cm}\\
School of GeoSciences\\
Grant Institute\\
West Mains Road\\
Edinburgh, EH9 3JW\\
Scotland
\end{tabular}}
}
\maketitle
\tableofcontents
\input{\dir/chapter1.tex}
%\clearpage
%\listoffigures
%\listoftables
%\listofalgorithms
%\newpage
%\bibliography{}
\end{document}
\chapter{Template Chapter}
This is a template chapter. Lots of exciting stuff should go in here\footnote{testing a footnote}.
\begin{figure}[htbp]
\centering
\includegraphics[width=0.7\textwidth]{\dir/figs/geek_flow_chart_nyt.eps}
\caption{an example figure...}
\label{fig.example}
\end{figure}
This diff is collapsed.
\documentclass[12pt,english,a4paper]{report}
\input{../common/packages.tex}
\input{../common/definitions.tex}
\setlength{\textheight}{24cm}
\setlength{\headsep}{0cm}
\newcommand{\dir}{chapter}
\begin{document}
\title{Chapter 1}
\author{Una Person}
\date{
\today\\
\vspace{2cm}
{\centering\footnotesize\begin{tabular}[c]{c}
\epsfig{file=../preface/2Line2ColCMYK_CS3.eps,height=3cm}\\
School of GeoSciences\\
Grant Institute\\
West Mains Road\\
Edinburgh, EH9 3JW\\
Scotland
\end{tabular}}
}
\maketitle
\tableofcontents
\input{\dir/chapter2.tex}
%\clearpage
%\listoffigures
%\listoftables
%\listofalgorithms
%\newpage
%\bibliography{}
\end{document}
\chapter{Template Chapter}
This is a template chapter. Lots of exciting stuff should go in here.
\setlength{\headheight}{15pt}
\makeglossary
\newcommand{\pd}{\partial}
\renewcommand{\vec}{\boldsymbol}
\DeclareMathOperator{\Ber}{Ber}
\DeclareMathOperator{\Bei}{Bei}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Kei}{Kei}
\DeclareMathOperator{\integer}{int}
\DeclareMathOperator{\floor}{floor}
\DeclareMathOperator{\var}{var}
\DeclareMathOperator{\const}{constant}
\DeclareMathOperator{\maxval}{max}
%\bibliographystyle{plainnat}
\bibliographystyle{jmb}
% change font for captions
\renewcommand{\captionfont}{\sffamily}
\renewcommand{\captionlabelfont}{\bf}
% change font for chapter/section headings
%\allsectionsfont{\sffamily}
% funky graphics + text in lr bottom
\begingroup%
\ifx\MakeISMBox\undefined%
\gdef\MakeISMBox#1#2#3{%
\begin{overpic}[width=#1]{#2}%
%\put(0,0){\includegraphics[width=#1]{#2}}%
\put(98,2){\makebox(0,0)[br]{#3}}%
\end{overpic}}%
\fi\endgroup%
% workaround for color in ed_thesis
\begingroup%
\ifx\color\undefined%
\gdef\color[#1]#2{}%
\fi\endgroup%
% workaround for href in ed_thesis
\begingroup%
\ifx\href\undefined%
\gdef\href#1#2{#2}%
\fi\endgroup%
% defining units for nomenclature packages
\newcommand{\nomunit}[1]{%
% \renewcommand{\nomentryend}{\hspace*{\fill}[#1]}%
}
% Alternative style of head and foot
\pagestyle{fancy}% Used when using fancyhdr.sty
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{%
\chaptername} \ \thechapter.%
\ #1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{ \ \thesection%
\ #1}{}}
%\rhead{\thepage}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\sl \leftmark}
\fancyhead[RE]{\sl \rightmark}
\fancyfoot{}
%Tidy up hyphenations as best as possible
\pretolerance = 600 % covers most paragraphs
\tolerance = 7000 % covers the nasty cases
%Tidy up hanging sentences as best as possible
\widowpenalty=10000
% To get the correct margins for the regulations for psglg1 and psglg3
\setlength{\oddsidemargin}{1.35cm} %margins set up for psglg1
\setlength{\evensidemargin}{-0.1cm}
\setlength{\topmargin}{0cm}
\setlength{\textwidth}{14.55cm}
\setlength{\textheight}{22.3cm}
\usepackage{fancyhdr}% Use titlesec to put Chapter title on right
\usepackage{babel}
\usepackage{a4}
%\usepackage{sectsty}
\usepackage[round]{natbib}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{eucal}
\usepackage[intlimits]{amsmath}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{rotating}
%\usepackage{supertabular}
%\usepackage{nomencl}
\usepackage[percent]{overpic}
%\usepackage{tocbibind}
\usepackage{caption}
#!/bin/bash
# create a tar ball of all the files that are under subversion control
# produce a list of files to include
for i in $(svn status -v | grep -v create_tarball.sh | awk '{if (NF>3) print $NF}'); do if [ -f $i ]; then echo $i; fi; done > include_files
tar -cvzf thesis.tar.gz -T include_files
This diff is collapsed.
The abstract...
\chapter{Acknowledgements}
\markboth{\MakeUppercase{Acknowledgements}}{\MakeUppercase{Acknowledgements}}
It's nice to acknowledge some people...
\chapter{Declaration}
\vspace*{2\baselineskip}
I declare that this thesis has been composed
solely by myself and that it has not been submitted, either in whole or
in part, in any previous application for a degree.
Except where otherwise acknowledged, the work presented is entirely my
own.
\vspace{6\baselineskip}\\
\begin{flushright}
\hspace*{\fill}
Una Person
\newline
September 2003
\end{flushright}
\cleardoublepage
\thispagestyle{empty}
\begin{minipage}{\textwidth}
\end{minipage}
\begin{center}
\vspace{2cm}
{ \Huge A School of GeoScience PhD Thesis using {\LaTeX}
\par
\vspace{0.5cm}
{\Large Una Person \par}
}
\end{center}
\vfill
\begin{center}
\vspace{6cm}
\centerline{\epsfig{file=\dir/2Line2ColCMYK_CS3.eps,width=0.35\textwidth}}
\vspace{0.5cm}
Thesis submitted in fulfilment of\\
the requirements for the degree of\\
Doctor of Philosophy\\
to the\\
University of Edinburgh --- 2003
\end{center}
\newpage
\thispagestyle{empty}
This diff is collapsed.
\documentclass[openright,twoside,a4paper,english,12pt]{report}
%% ==========================
%% main LaTeX set up for a Geology and Geophysics thesis keeps evolving into unknown
%% yet funky beasties. I borrowed this set-up from Kathryn Hardacre who got it from
%% Jon Perry. Undoubtedly, I will add some extras as well
%% magi
\usepackage{edthesis}
\input{../common/packages.tex}
%% some handy macros
\input{../common/definitions.tex}
%========================= ALTERATIONS =========================
%Paragraphs
\setlength{\parindent}{0em}
\setlength{\parskip}{\baselineskip}
%Alternative methods
%\lefthyphenmin=63
%\righthyphenmin=63
%\hyphenpenalty=10000
%To introduce 1.5 spacing
\renewcommand{\baselinestretch}{1.5}
\begin{document}
\newboolean{edthesis}
\setboolean{edthesis}{true}
%\setboolean{edthesis}{false}
\input{thesis.tex}
\end{document}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment