├── .gitignore ├── .travis.yml ├── Abstract └── abstract.tex ├── Acknowledgement └── acknowledgement.tex ├── Appendix1 └── appendix1.tex ├── Appendix2 └── appendix2.tex ├── ChangeLog.md ├── Chapter1 └── chapter1.tex ├── Chapter2 ├── Figs │ ├── Raster │ │ ├── TomandJerry.png │ │ ├── WallE.png │ │ └── minion.png │ └── Vector │ │ ├── TomandJerry.eps │ │ ├── WallE.eps │ │ └── minion.eps └── chapter2.tex ├── Chapter3 └── chapter3.tex ├── Declaration └── declaration.tex ├── Dedication └── dedication.tex ├── Figs ├── CollegeShields │ ├── Downing.eps │ ├── Downing.pdf │ ├── Fitzwilliam.eps │ ├── Fitzwilliam.pdf │ ├── FitzwilliamRed.eps │ ├── FitzwilliamRed.pdf │ ├── Gonville_and_Caius.jpg │ ├── Kings.eps │ ├── Kings.pdf │ ├── Licenses.md │ ├── Peterhouse.pdf │ ├── Queens.eps │ ├── Queens.pdf │ ├── StJohns.eps │ ├── StJohns.pdf │ ├── Trinity.eps │ ├── Trinity.pdf │ └── src │ │ ├── Downing.svg │ │ ├── Kings.svg │ │ ├── Peterhouse.svg │ │ ├── Queens.svg │ │ └── Trinity.svg ├── University_Crest.eps ├── University_Crest.pdf ├── University_Crest_Long.eps └── University_Crest_Long.pdf ├── LICENSE ├── Makefile ├── PhDThesisPSnPDF.cls ├── Preamble └── preamble.tex ├── README.md ├── References └── references.bib ├── Variables.ini ├── compile-thesis-windows.bat ├── compile-thesis.sh ├── glyphtounicode.tex ├── hooks ├── install.sh └── pre-commit ├── license.md ├── sty └── breakurl.sty ├── thesis-info.tex ├── thesis.pdf ├── thesis.ps └── thesis.tex /.gitignore: -------------------------------------------------------------------------------- 1 | *.tdo* 2 | .DS_Store* 3 | *.aux* 4 | *.log* 5 | *.lof* 6 | *.lot* 7 | *.out* 8 | *.gz* 9 | *.toc* 10 | *.bbl* 11 | *.blg* 12 | *~* 13 | *.nlo* 14 | *make* 15 | *.d* 16 | *.bcf* 17 | *.blg* 18 | *~* 19 | *.nlo* 20 | *make 21 | *.d 22 | *.btmp* 23 | *.xdv* 24 | *.fls* 25 | *.glo* 26 | *.idx* 27 | *.ist* 28 | *.ilg* 29 | *.ind* 30 | *cookie* 31 | *#* 32 | *.nls* 33 | *.nlg* 34 | thesis.txt* 35 | thesis.bcf* 36 | thesis.run.xml* 37 | *run.xml* 38 | *.latexmkrc* 39 | *_latexmk* 40 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | before_install: 2 | - sudo apt-get update 3 | install: 4 | - sudo apt-get install ghostscript 5 | - curl -L https://github.com/holgern/travis-texlive/releases/download/2017-09-18_02/texlive.tar.xz | tar -JxC ~ 6 | - PATH=$HOME/texlive/bin/x86_64-linux:$PATH 7 | script: 8 | - make clean 9 | - make BUILD_STRATEGY=latex 10 | - make clean 11 | - make 12 | -------------------------------------------------------------------------------- /Abstract/abstract.tex: -------------------------------------------------------------------------------- 1 | % ************************** Thesis Abstract ***************************** 2 | % Use `abstract' as an option in the document class to print only the titlepage and the abstract. 3 | \begin{abstract} 4 | This is where you write your abstract ... 5 | \end{abstract} 6 | -------------------------------------------------------------------------------- /Acknowledgement/acknowledgement.tex: -------------------------------------------------------------------------------- 1 | % ************************** Thesis Acknowledgements ************************** 2 | 3 | \begin{acknowledgements} 4 | 5 | 6 | And I would like to acknowledge ... 7 | 8 | 9 | \end{acknowledgements} 10 | -------------------------------------------------------------------------------- /Appendix1/appendix1.tex: -------------------------------------------------------------------------------- 1 | %!TEX root = ../thesis.tex 2 | % ******************************* Thesis Appendix A **************************** 3 | \chapter{How to install \LaTeX} 4 | 5 | \section*{Windows OS} 6 | 7 | \subsection*{TeXLive package - full version} 8 | \begin{enumerate} 9 | \item Download the TeXLive ISO (2.2GB) from\\ 10 | \href{https://www.tug.org/texlive/}{https://www.tug.org/texlive/} 11 | \item Download WinCDEmu (if you don't have a virtual drive) from \\ 12 | \href{http://wincdemu.sysprogs.org/download/} 13 | {http://wincdemu.sysprogs.org/download/} 14 | \item To install Windows CD Emulator follow the instructions at\\ 15 | \href{http://wincdemu.sysprogs.org/tutorials/install/} 16 | {http://wincdemu.sysprogs.org/tutorials/install/} 17 | \item Right click the iso and mount it using the WinCDEmu as shown in \\ 18 | \href{http://wincdemu.sysprogs.org/tutorials/mount/}{ 19 | http://wincdemu.sysprogs.org/tutorials/mount/} 20 | \item Open your virtual drive and run setup.pl 21 | \end{enumerate} 22 | 23 | or 24 | 25 | \subsection*{Basic MikTeX - \TeX~ distribution} 26 | \begin{enumerate} 27 | \item Download Basic-MiK\TeX (32bit or 64bit) from\\ 28 | \href{http://miktex.org/download}{http://miktex.org/download} 29 | \item Run the installer 30 | \item To add a new package go to Start >> All Programs >> MikTex >> Maintenance (Admin) and choose Package Manager 31 | \item Select or search for packages to install 32 | \end{enumerate} 33 | 34 | \subsection*{TexStudio - \TeX~ editor} 35 | \begin{enumerate} 36 | \item Download TexStudio from\\ 37 | \href{http://texstudio.sourceforge.net/\#downloads} 38 | {http://texstudio.sourceforge.net/\#downloads} 39 | \item Run the installer 40 | \end{enumerate} 41 | 42 | \section*{Mac OS X} 43 | \subsection*{MacTeX - \TeX~ distribution} 44 | \begin{enumerate} 45 | \item Download the file from\\ 46 | \href{https://www.tug.org/mactex/}{https://www.tug.org/mactex/} 47 | \item Extract and double click to run the installer. It does the entire configuration, sit back and relax. 48 | \end{enumerate} 49 | 50 | \subsection*{TexStudio - \TeX~ editor} 51 | \begin{enumerate} 52 | \item Download TexStudio from\\ 53 | \href{http://texstudio.sourceforge.net/\#downloads} 54 | {http://texstudio.sourceforge.net/\#downloads} 55 | \item Extract and Start 56 | \end{enumerate} 57 | 58 | 59 | \section*{Unix/Linux} 60 | \subsection*{TeXLive - \TeX~ distribution} 61 | \subsubsection*{Getting the distribution:} 62 | \begin{enumerate} 63 | \item TexLive can be downloaded from\\ 64 | \href{http://www.tug.org/texlive/acquire-netinstall.html} 65 | {http://www.tug.org/texlive/acquire-netinstall.html}. 66 | \item TexLive is provided by most operating system you can use (rpm,apt-get or yum) to get TexLive distributions 67 | \end{enumerate} 68 | 69 | \subsubsection*{Installation} 70 | \begin{enumerate} 71 | \item Mount the ISO file in the mnt directory 72 | \begin{verbatim} 73 | mount -t iso9660 -o ro,loop,noauto /your/texlive####.iso /mnt 74 | \end{verbatim} 75 | 76 | \item Install wget on your OS (use rpm, apt-get or yum install) 77 | \item Run the installer script install-tl. 78 | \begin{verbatim} 79 | cd /your/download/directory 80 | ./install-tl 81 | \end{verbatim} 82 | \item Enter command `i' for installation 83 | 84 | \item Post-Installation configuration:\\ 85 | \href{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1} 86 | {http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1} 87 | \item Set the path for the directory of TexLive binaries in your .bashrc file 88 | \end{enumerate} 89 | 90 | \subsubsection*{For 32bit OS} 91 | For Bourne-compatible shells such as bash, and using Intel x86 GNU/Linux and a default directory setup as an example, the file to edit might be \begin{verbatim} 92 | edit $~/.bashrc file and add following lines 93 | PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH; 94 | export PATH 95 | MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH; 96 | export MANPATH 97 | INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH; 98 | export INFOPATH 99 | \end{verbatim} 100 | \subsubsection*{For 64bit OS} 101 | \begin{verbatim} 102 | edit $~/.bashrc file and add following lines 103 | PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH; 104 | export PATH 105 | MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH; 106 | export MANPATH 107 | INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH; 108 | export INFOPATH 109 | 110 | \end{verbatim} 111 | 112 | 113 | 114 | %\subsection{Installing directly using Linux packages} 115 | \subsubsection*{Fedora/RedHat/CentOS:} 116 | \begin{verbatim} 117 | sudo yum install texlive 118 | sudo yum install psutils 119 | \end{verbatim} 120 | 121 | 122 | \subsubsection*{SUSE:} 123 | \begin{verbatim} 124 | sudo zypper install texlive 125 | \end{verbatim} 126 | 127 | 128 | \subsubsection*{Debian/Ubuntu:} 129 | \begin{verbatim} 130 | sudo apt-get install texlive texlive-latex-extra 131 | sudo apt-get install psutils 132 | \end{verbatim} 133 | -------------------------------------------------------------------------------- /Appendix2/appendix2.tex: -------------------------------------------------------------------------------- 1 | %!TEX root = ../thesis.tex 2 | % ******************************* Thesis Appendix B ******************************** 3 | 4 | \chapter{Installing the CUED class file} 5 | 6 | \LaTeX.cls files can be accessed system-wide when they are placed in the 7 | /tex/latex directory, where is the root directory of the user’s \TeX installation. On systems that have a local texmf tree (), which 8 | may be named ``texmf-local'' or ``localtexmf'', it may be advisable to install packages in , rather than as the contents of the former, unlike that of the latter, are preserved after the \LaTeX system is reinstalled and/or upgraded. 9 | 10 | It is recommended that the user create a subdirectory /tex/latex/CUED for all CUED related \LaTeX class and package files. On some \LaTeX systems, the directory look-up tables will need to be refreshed after making additions or deletions to the system files. For \TeX Live systems this is accomplished via executing ``texhash'' as root. MIK\TeX users can run ``initexmf -u'' to accomplish the same thing. 11 | 12 | Users not willing or able to install the files system-wide can install them in their personal directories, but will then have to provide the path (full or relative) in addition to the filename when referring to them in \LaTeX. 13 | 14 | -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- 1 | ## Change log 2 | ### 2018/04/12 - Version 2.4 3 | > Commit f0f8f7110318a36df092ecbd26e4c035ad0c03cb 4 | * Fix biblatex styling in custom options 5 | 6 | ### 2018/04/03 - Version 2.3.2 7 | > Commit 85a8d91bcd9e97a7b5bda63d1913f07470dbdcfd 8 | * Fixes #154 XeLaTeX compilation issues on unix 9 | 10 | ### 2016/04/23 - Version 2.3.1 11 | > Commit 7e4d9a261dd4e5dbdbf75c642ce2bbaa7e87429b 12 | * Fixes #124 Pagestyle options 13 | 14 | ### 2016/03/19 - Version 2.3 15 | > Commit 665937d81ff7c561569bbec240b4fa703063be3f 16 | * Fixes #118 and #119 on option processing and font sizes 17 | 18 | ### 2016/10/20 - Version 2.2.2 19 | > Commit 7867b367fe6c9523461f5bcd91a8f4f5e92badb2 20 | * Fixes issue of non-centered style for advisors and supervisors 21 | 22 | ### 2016/07/04 - Version 2.2.1 23 | > Commit ef6e4394f3dd5a7442c2f48f3196d7d0a15d077f 24 | * Removed deprecated unused function romanpages defined in `preamble.tex`. 25 | * https://tex.stackexchange.com/questions/328438/roman-numbering-not-enumerating-latex-error 26 | * Fixes issue #101 incorrect page numbering scheme in `draft`. 27 | * Deprecated function `draftmode` use `draft` instead. 28 | 29 | ### 2016/07/04 - Version 2.2 30 | > Commit 68c4499d170bf167d2410741d573cdf9402d6e80 31 | * Support for including multiple supervisor and/or advisor 32 | * Fixes `maketitle` in thesis.tex 33 | 34 | ### 2015/06/20 - Version 2.1 35 | > Commit a5feb0732d7f13fa9703fddcee703224c00b83dd 36 | * Support for including supervisor and/or advisor 37 | 38 | ### 2015/06/20 - Version 2.0.1 39 | > Commit 0e0d1e617acb42b034870ea325271cce8d3d8d8e 40 | * Fixed centering of year on front page - Issue #16 41 | 42 | ### 2015/06/20 - Version 2.0 43 | > Commit f4723434f92eedc163fdcb74c7ac04c8d842bc05 44 | * XeLaTeX and LuaLaTeX support 45 | * College crest + University crest support 46 | 47 | ### 2014/12/02 - Version 1.4.5 48 | > Commit 427230cae012194a2e433ec001677c43ffd8250e 49 | * Fixed issue with the misaligned date and college in the frontpage. 50 | 51 | ### 2014/12/02 - Version 1.4.4 52 | > Commit 7f17bc3c682df2950e4dc09cd5e71278edc3fc6d 53 | * Fixed pagenumbering issue in 2 page nomenclature - Issue #28 54 | 55 | ### 2014/10/08 - Version 1.4.3 56 | > Commit df43fcdc7308feeea8c7dfe06ad24d45d5caca3e 57 | * Fixed `\degree` command conflict - Issue #26 58 | 59 | ### 2014/10/08 - Version 1.4.2 60 | > Commit 4f0f3394330bfca302b724ab1b3c06977f7e08f3 61 | * Added mynotes support in preamble 62 | * Fixed printnomecl in abstractmode 63 | * Fixed issue with pagenumbering when using oneside option 64 | * Draftmode is deprecated, default `draft' supports linenumbering, watermark 65 | * List of contents doesn't appear in TOC but appears in bookmarks 66 | 67 | ### 2014/08/11 - Version 1.4.1 68 | > Commit fb70181ff9e00bfb50e3e3040d6b2cf15cd6ebfe 69 | * Fixed line numbering in draft mode with AMS Math environment 70 | * Biblatex & custombib error catcher - bug fix 71 | * Modification to the declaration text 72 | 73 | ### 2014/07/15 - Version 1.4 74 | > Commit 330f82a439e179dc03fbbbe156f3e830ca1fdd68 75 | * Option to have subtitle on front page 76 | * College name is an optional argument 77 | * Travis-CI integration 78 | 79 | ### 2014/06/09 - Version 1.3 80 | > Commit 93723653eef19b8ca81d57df389b3a8efa652203 81 | * Draftmode - watermark text, line numbering, version numbering 82 | * Better error checking for documentclass options and log messages 83 | * arara/LaTeX-mk support 84 | * Option to choose `raggedright` for text 85 | 86 | ### 2014/03/24 - Version 1.2 87 | > Commit 4b709fed6cdfd5b3796152f9c59b619c72df491f 88 | * Rearranged package order in preamble to support equation numbering using cref 89 | * Removed dependencies on obsolete packages 90 | * Restyled the URL fonts to use the same font as text 91 | 92 | ### 2014/02/14 - Version 1.1.2 93 | > Commit a7f123bb220bf1e207b6e49e8b2978c203582e12 94 | * Updates to abstract separate mode with no page numbers 95 | * Declaration included in abstract mode for submission to student registry 96 | 97 | ### 2014/02/10 - Version 1.1.1 98 | > Commit e7f34cfd71cbe1b590d615a00d99b8d05513e5ba 99 | * Biblatex handled as a custombib option 100 | * UTF8 and Fontencoding after font has been loaded 101 | 102 | ### 2014/02/04 - Version 1.1 103 | > Commit 6e00ac94c2193882dd6f42686fc455cc66d829df 104 | * BibLatex Support with bibtex backend 105 | * Chapter mode for compiling only specified chapters and references 106 | 107 | ### 2014/01/11 - Version 1.0 108 | > Commit 2f6918863e3c9d0a7e95bd2651ce7ef8ae38f90a 109 | * Fixed an issue with the headers in Nomenclature section 110 | * Removed deprecated codes, added functionality to tweak chapter headings in preamble.tex. 111 | * Distributed under MIT license 112 | * Acknowledgement and Cls file update 113 | * Appendices after References 114 | 115 | ### 2013/12/09 - Version 1.0 Beta Release 10.0 116 | > Commit 973492fe1f1805e4fef60ec54060621b3e90a3cd 117 | * Fixed issues with DVI >> PS >> PDF and workaround, when papersize is not set for older versions of dvips (5.97 or lower). 118 | 119 | ### 2013/12/08 - Version 1.0 Beta Release 9.0 120 | > Commit c11f98e26566af08cb9c4cacbdfddf6b28111886 121 | * Wider text area (75% of page size), support for separate abstract for submission to the Student Registry, appendix 122 | 123 | ### 2013/12/05 - Version 1.0 Beta Release 8.0 124 | > Commit 324d1a5609992028afb109b424573cd3a5e31849 125 | * Update class file to support dvips driver when using dvi > PS output in hyperTeX. Removed deprecated codes from Declaration and class files 126 | 127 | ### 2013/12/05 - Version 1.0 Beta Release 7.2 128 | > Commit 2f397eda12ef2b81314b67847e312f688095a379 129 | * Update to margin dimensions (1:1 ratio is maintained) with a binding offset of 5mm on the print version. Replaced the hmargin ratio of 3:2 with 1:1 with a binding offset. 130 | 131 | ### 2013/12/04 - Version 1.0 Beta Release 7.1 132 | > Commit 9cb782f26cc3573f8d3077db520ba84b5f295049 133 | * Declaration with automatic insertion of the author and the degree date and conforming to the statments in the University guidelines 134 | 135 | ### 2013/12/03 - Version 1.0 Beta Release 7.0 136 | > Commit 1f695d512ae5ce765398db4dc4b6381dc0351868 137 | * Default font size is 12pt and the default paper size is A4, confirming to the University regulations in terms of font, font sizer, paper size and set them as defaults. 138 | 139 | ### 2013/11/27 - Version 1.0 Beta Release 6.2 140 | > Commit a5f49d49a6cc39209d95f91e667fd7b359ab5227 141 | * Update to the Makefile to remove PS files when running Makeclean 142 | 143 | ### 2013/11/26 - Version 1.0 Beta Release 6.1 144 | > Commit e29a99406649dcce8f23b6d9df0b87eabd09fc0e 145 | * Update to the Makefile to support PS to PDF conversion 146 | 147 | ### 2013/11/26 - Version 1.0 Beta Release 6.0 148 | > Commit 187b9324420812326e62d963afa42e26532e82e7 149 | * Included a Windows Batch file for LaTeX / Nomenclature compilation 150 | * Supports \printnomencl[optional_argument] 151 | 152 | ### 2013/11/26 - Version 1.0 Beta Release 5.0 153 | > Commit 76a733ee305ed4aae9d546492cef768512df2b13 154 | * Supports DVI/PS 155 | * Supports Custom Margin and FancyHdr update 156 | 157 | ### 2013/11/24 - Version 1.0 Beta Release 0 158 | > Commit 73c8dd9ea82c21476d964ad5cdff1b71fe7327c8 159 | * Author(s): Krishna Kumar 160 | * Adaptive Title Page: Title page adapts to the length of the title 161 | * Print / On-line version: Different layout and hyper-referncing styles 162 | * Pre-defined and custom fonts (Times / Palatino / Latin Modern) with math support 163 | * Pre-defined and custom bibliography style support (authoryear / numbered / custom) 164 | * Custom page styles: 3 Different Header / Footer styles 165 | 166 | ### 2013/11/14 - Inception 167 | > Author(s): Krishna Kumar 168 | -------------------------------------------------------------------------------- /Chapter1/chapter1.tex: -------------------------------------------------------------------------------- 1 | %!TEX root = ../thesis.tex 2 | %******************************************************************************* 3 | %*********************************** First Chapter ***************************** 4 | %******************************************************************************* 5 | 6 | \chapter{Getting started} %Title of the First Chapter 7 | 8 | \ifpdf 9 | \graphicspath{{Chapter1/Figs/Raster/}{Chapter1/Figs/PDF/}{Chapter1/Figs/}} 10 | \else 11 | \graphicspath{{Chapter1/Figs/Vector/}{Chapter1/Figs/}} 12 | \fi 13 | 14 | 15 | %********************************** %First Section ************************************** 16 | \section{What is loren ipsum? Title with math \texorpdfstring{$\sigma$}{[sigma]}} %Section - 1.1 17 | 18 | Lorem Ipsum is simply dummy text of the printing and typesetting industry (see 19 | Section~\ref{section1.3}). Lorem Ipsum~\citep{Aup91} has been the industry's 20 | standard dummy text ever since the 1500s, when an unknown printer took a galley 21 | of type and scrambled it to make a type specimen book. It has survived not only 22 | five centuries, but also the leap into electronic typesetting, remaining 23 | essentially unchanged. It was popularised in the 1960s with the release of 24 | Letraset sheets containing Lorem Ipsum passages, and more recently with desktop 25 | publishing software like Aldus PageMaker including versions of Lorem 26 | Ipsum~\citep{AAB95,Con90,LM65}. 27 | 28 | The most famous equation in the world: $E^2 = (m_0c^2)^2 + (pc)^2$, which is 29 | known as the \textbf{energy-mass-momentum} relation as an in-line equation. 30 | 31 | A {\em \LaTeX{} class file}\index{\LaTeX{} class file@LaTeX class file} is a file, which holds style information for a particular \LaTeX{}. 32 | 33 | 34 | \begin{align} 35 | CIF: \hspace*{5mm}F_0^j(a) = \frac{1}{2\pi \iota} \oint_{\gamma} \frac{F_0^j(z)}{z - a} dz 36 | \end{align} 37 | 38 | \nomenclature[z-cif]{$CIF$}{Cauchy's Integral Formula} % first letter Z is for Acronyms 39 | \nomenclature[a-F]{$F$}{complex function} % first letter A is for Roman symbols 40 | \nomenclature[g-p]{$\pi$}{ $\simeq 3.14\ldots$} % first letter G is for Greek Symbols 41 | \nomenclature[g-i]{$\iota$}{unit imaginary number $\sqrt{-1}$} % first letter G is for Greek Symbols 42 | \nomenclature[g-g]{$\gamma$}{a simply closed curve on a complex plane} % first letter G is for Greek Symbols 43 | \nomenclature[x-i]{$\oint_\gamma$}{integration around a curve $\gamma$} % first letter X is for Other Symbols 44 | \nomenclature[r-j]{$j$}{superscript index} % first letter R is for superscripts 45 | \nomenclature[s-0]{$0$}{subscript index} % first letter S is for subscripts 46 | 47 | 48 | %********************************** %Second Section ************************************* 49 | \section{Why do we use loren ipsum?} %Section - 1.2 50 | 51 | 52 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using `Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for `lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). 53 | 54 | %********************************** % Third Section ************************************* 55 | \section{Where does it come from?} %Section - 1.3 56 | \label{section1.3} 57 | 58 | Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. 59 | 60 | The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from ``de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham 61 | 62 | ``Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." 63 | 64 | Section 1.10.32 of ``de Finibus Bonorum et Malorum", written by Cicero in 45 BC: ``Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?" 65 | 66 | 1914 translation by H. Rackham: ``But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?" 67 | 68 | Section 1.10.33 of ``de Finibus Bonorum et Malorum", written by Cicero in 45 BC: ``At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 69 | 70 | 1914 translation by H. Rackham: ``On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains." 71 | 72 | \nomenclature[z-DEM]{DEM}{Discrete Element Method} 73 | \nomenclature[z-FEM]{FEM}{Finite Element Method} 74 | \nomenclature[z-PFEM]{PFEM}{Particle Finite Element Method} 75 | \nomenclature[z-FVM]{FVM}{Finite Volume Method} 76 | \nomenclature[z-BEM]{BEM}{Boundary Element Method} 77 | \nomenclature[z-MPM]{MPM}{Material Point Method} 78 | \nomenclature[z-LBM]{LBM}{Lattice Boltzmann Method} 79 | \nomenclature[z-MRT]{MRT}{Multi-Relaxation 80 | Time} 81 | \nomenclature[z-RVE]{RVE}{Representative Elemental Volume} 82 | \nomenclature[z-GPU]{GPU}{Graphics Processing Unit} 83 | \nomenclature[z-SH]{SH}{Savage Hutter} 84 | \nomenclature[z-CFD]{CFD}{Computational Fluid Dynamics} 85 | \nomenclature[z-LES]{LES}{Large Eddy Simulation} 86 | \nomenclature[z-FLOP]{FLOP}{Floating Point Operations} 87 | \nomenclature[z-ALU]{ALU}{Arithmetic Logic Unit} 88 | \nomenclature[z-FPU]{FPU}{Floating Point Unit} 89 | \nomenclature[z-SM]{SM}{Streaming Multiprocessors} 90 | \nomenclature[z-PCI]{PCI}{Peripheral Component Interconnect} 91 | \nomenclature[z-CK]{CK}{Carman - Kozeny} 92 | \nomenclature[z-CD]{CD}{Contact Dynamics} 93 | \nomenclature[z-DNS]{DNS}{Direct Numerical Simulation} 94 | \nomenclature[z-EFG]{EFG}{Element-Free Galerkin} 95 | \nomenclature[z-PIC]{PIC}{Particle-in-cell} 96 | \nomenclature[z-USF]{USF}{Update Stress First} 97 | \nomenclature[z-USL]{USL}{Update Stress Last} 98 | \nomenclature[s-crit]{crit}{Critical state} 99 | \nomenclature[z-DKT]{DKT}{Draft Kiss Tumble} 100 | \nomenclature[z-PPC]{PPC}{Particles per cell} -------------------------------------------------------------------------------- /Chapter2/Figs/Raster/TomandJerry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Chapter2/Figs/Raster/TomandJerry.png -------------------------------------------------------------------------------- /Chapter2/Figs/Raster/WallE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Chapter2/Figs/Raster/WallE.png -------------------------------------------------------------------------------- /Chapter2/Figs/Raster/minion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Chapter2/Figs/Raster/minion.png -------------------------------------------------------------------------------- /Chapter2/Figs/Vector/TomandJerry.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Creator: cairo 1.12.14 (http://cairographics.org) 3 | %%CreationDate: Mon Nov 25 23:50:21 2013 4 | %%Pages: 1 5 | %%DocumentData: Clean7Bit 6 | %%LanguageLevel: 2 7 | %%BoundingBox: 0 -1 324 217 8 | %%EndComments 9 | %%BeginProlog 10 | save 11 | 50 dict begin 12 | /q { gsave } bind def 13 | /Q { grestore } bind def 14 | /cm { 6 array astore concat } bind def 15 | /w { setlinewidth } bind def 16 | /J { setlinecap } bind def 17 | /j { setlinejoin } bind def 18 | /M { setmiterlimit } bind def 19 | /d { setdash } bind def 20 | /m { moveto } bind def 21 | /l { lineto } bind def 22 | /c { curveto } bind def 23 | /h { closepath } bind def 24 | /re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto 25 | 0 exch rlineto 0 rlineto closepath } bind def 26 | /S { stroke } bind def 27 | /f { fill } bind def 28 | /f* { eofill } bind def 29 | /n { newpath } bind def 30 | /W { clip } bind def 31 | /W* { eoclip } bind def 32 | /BT { } bind def 33 | /ET { } bind def 34 | /pdfmark where { pop globaldict /?pdfmark /exec load put } 35 | { globaldict begin /?pdfmark /pop load def /pdfmark 36 | /cleartomark load def end } ifelse 37 | /BDC { mark 3 1 roll /BDC pdfmark } bind def 38 | /EMC { mark /EMC pdfmark } bind def 39 | /cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def 40 | /Tj { show currentpoint cairo_store_point } bind def 41 | /TJ { 42 | { 43 | dup 44 | type /stringtype eq 45 | { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse 46 | } forall 47 | currentpoint cairo_store_point 48 | } bind def 49 | /cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore 50 | cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def 51 | /Tf { pop /cairo_font exch def /cairo_font_matrix where 52 | { pop cairo_selectfont } if } bind def 53 | /Td { matrix translate cairo_font_matrix matrix concatmatrix dup 54 | /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point 55 | /cairo_font where { pop cairo_selectfont } if } bind def 56 | /Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def 57 | cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def 58 | /g { setgray } bind def 59 | /rg { setrgbcolor } bind def 60 | /d1 { setcachedevice } bind def 61 | %%EndProlog 62 | %%Page: 1 1 63 | %%BeginPageSetup 64 | %%PageBoundingBox: 0 -1 324 217 65 | %%EndPageSetup 66 | q 0 -1 324 218 rectclip q 67 | 0.137255 0.121569 0.12549 rg 68 | 289.105 108.428 m 289.105 108.428 291.168 107.163 294.961 103.749 c 297.359 69 | 105.046 315.613 112.717 320.66 108.37 c 325.824 104.042 322.562 91.479 70 | 322.562 91.479 c 321.543 87.772 320.012 84.475 317.973 81.518 c 314.539 71 | 76.932 310.426 73.331 305.703 70.78 c 300.844 68.366 293.609 67.772 291.699 72 | 67.889 c 288.309 65.151 282.738 63.456 280.789 62.928 c 285.664 52.983 73 | 285.012 40.944 280.789 38.764 c 276.562 36.581 271.75 42.085 270.047 44.882 74 | c 269.844 43.987 269.777 39.51 270.422 38.389 c 271.172 37.233 l 273.312 75 | 35.128 l 274.332 34.346 275.145 33.018 275.793 31.081 c 278.344 31.862 76 | 280.383 33.526 281.91 36.077 c 283.203 38.764 284.934 41.311 287.109 43.76 77 | c 293.945 49.546 302.066 47.565 302.066 47.565 c 296.324 45.46 l 294.012 78 | 44.436 291.973 42.975 290.172 41.073 c 288.504 39.139 287.246 36.893 286.328 79 | 34.346 c 285.309 31.659 283.578 29.311 281.164 27.241 c 284.223 24.385 80 | l 285.957 26.288 l 285.445 28.702 285.754 30.264 286.906 30.913 c 287.824 81 | 31.659 288.914 31.659 290.172 30.913 c 292.211 32.03 293.809 31.862 294.961 82 | 30.335 c 296.117 28.803 296.492 26.354 296.117 23.026 c 295.879 19.831 83 | 294.859 16.772 293.059 13.846 c 291.258 10.889 288.98 9.499 286.16 9.6 c 84 | 278.273 11.71 l 269.266 13.268 l 265.426 12.288 l 260.262 10.757 l 254.891 85 | 10.382 l 253.871 10.757 252.715 10.757 251.422 10.382 c 249.145 9.6 l 244.727 86 | 7.495 l 236.297 3.108 l 234.191 1.952 l 230.52 0.221 l 228.617 -0.29 226.441 87 | 0.085 224.027 1.374 c 221.344 2.768 219.336 5.725 218.078 10.178 c 217.297 88 | 12.725 217.297 14.87 218.078 16.534 c 220.934 20.749 l 222.871 22.854 l 89 | 225.93 23.026 l 226.953 22.382 227.598 21.495 227.836 20.342 c 227.461 90 | 17.655 l 228.82 16.534 l 229.941 19.085 231.402 21.19 233.203 22.854 c 234.191 91 | 23.604 l 238.777 26.698 l 238.777 26.698 236.867 34.94 240.531 43.194 c 92 | 239.184 42.319 236.672 41.073 235.141 39.917 c 234.191 39.139 l 229.398 93 | 37.401 l 226.953 37.167 224.98 38.05 223.449 40.089 c 220.188 39.917 l 94 | 218.453 41.448 l 216.789 41.823 216.039 42.842 216.145 44.507 c 216.414 95 | 46.444 218.352 47.768 221.922 48.553 c 219.984 50.456 l 219.336 51.374 219.473 96 | 52.257 220.355 53.139 c 221.273 53.921 222.805 53.921 224.98 53.139 c 227.02 97 | 52.495 229.125 50.796 231.301 47.971 c 231.301 47.971 244.977 66.37 256.621 98 | 65.784 c 246.461 76.522 l 243.336 80.124 241.645 91.132 252.988 88.046 99 | c 253.707 98.694 256.723 102.241 259.844 104.198 c 259.793 105.573 261.414 100 | 107.592 261.414 107.592 c 261.414 107.592 260.426 105.522 260.531 104.514 101 | c 261.113 104.94 261.645 105.151 262.016 105.362 c 262.543 107.053 264.102 102 | 109.12 264.102 109.12 c 264.102 109.12 262.914 106.948 262.965 105.889 103 | c 263.918 106.421 265.664 107.745 272.324 108.948 c 272.324 110.854 l 270.797 104 | 111.362 267.535 110.854 267.535 110.854 c 267.535 110.854 269.422 111.975 105 | 272.531 112.382 c 274.555 120.971 285.875 124.038 286.988 121.022 c 288.953 106 | 115.065 287.57 112.346 289.105 108.428 c f* 107 | 0.807843 0.478431 0.105882 rg 108 | 286.195 120.335 m 287.727 115.417 286.387 113.194 287.887 108.905 c 279.633 109 | 115.272 l 280.516 113.471 282.191 111.167 282.895 110.276 c 280.586 111.288 110 | 278.152 112.135 273.867 112.241 c 275.613 119.331 285.453 122.241 286.195 111 | 120.335 c h 112 | 319.688 106.878 m 321.484 105.257 322.051 102.221 321.812 99.94 c 320.797 113 | 112.186 304.547 102.05 301.488 99.366 c 298.293 96.917 295.984 93.858 294.59 114 | 90.155 c 293.57 88.112 293.262 86.007 293.637 83.831 c 293.875 81.76 294.793 115 | 80.296 296.324 79.413 c 295.402 75.436 293.434 72.175 290.375 69.624 c 116 | 287.281 67.21 283.5 65.108 280.109 64.092 c 280.109 64.092 279.105 66.315 117 | 274.926 63.831 c 278.203 67.85 278.574 72.346 278.574 72.346 c 280.961 118 | 72.139 l 280.961 72.139 267.805 73.292 267.363 76.932 c 266.961 80.296 271.375 119 | 84.003 271.375 84.003 c 271.375 84.003 269.738 83.233 267.535 80.737 c 120 | 267.535 80.737 266.934 81.132 266.406 81.553 c 271.75 90.811 276.035 94.042 121 | 275.012 97.428 c 274.395 100.229 277.898 103.378 277.898 103.378 c 277.898 122 | 103.378 273.18 100.651 274.059 98.382 c 271.273 100.6 273.855 105.483 273.855 123 | 105.483 c 273.855 105.483 269.961 101.194 272.227 98.327 c 269.211 97.374 124 | 266.648 94.675 264.848 91.479 c 262.809 88.421 261.855 85.428 261.992 82.471 125 | c 257.574 81.893 l 257.574 81.893 257.051 82.483 256.621 83.05 c 259.633 126 | 92.878 264.555 97.69 262.945 100.893 c 262.297 102.151 262.195 103.378 127 | 262.57 104.53 c 262.57 104.53 263.832 105.272 264.789 105.682 c 266.246 128 | 106.471 265.93 103.51 265.93 103.51 c 265.93 103.51 266.723 105.307 266.301 129 | 106.21 c 271.75 108.803 283.477 107.999 283.477 107.999 c 274.434 111.225 130 | l 274.434 111.225 278.047 111.499 285.379 108.542 c 284.816 109.385 282.691 131 | 111.432 282.691 111.432 c 282.691 111.432 290.375 106.526 293.809 103.378 132 | c 292.488 103.405 289.594 102.8 289.594 102.8 c 289.594 102.8 295.93 102.979 133 | 296.617 102.979 c 308.734 108.749 317.305 109.065 319.688 106.878 c h 134 | 275.59 103.581 m 278.918 104.839 281.094 104.839 282.113 103.581 c 283.031 135 | 102.288 282.691 100.76 281.164 98.96 c 281.672 101.268 281.625 102.288 136 | 280.789 103.378 c 279.949 104.464 275.59 103.581 275.59 103.581 c h 137 | 277.727 109.065 m 273.312 108.948 l 273.48 110.479 l h 138 | 261.414 101.846 m 260.633 103.206 l 261.414 103.581 l h 139 | 251.625 75.37 m 251.625 75.37 251.484 73.948 252 72.139 c 251.523 72.639 140 | 248.965 75.581 247.988 76.729 c 243.285 82.214 244.711 89.991 253.531 87.467 141 | c 253.602 88.589 253.707 98.538 260.055 102.628 c 260.055 102.628 260.27 142 | 101.815 260.836 101.065 c 259.898 100.6 253.918 98.01 254.109 85.155 c 143 | 251.961 87.796 242.316 85.456 251.625 75.37 c h 144 | 261.008 60.245 m 262.672 59.596 264.746 60.042 267.16 61.569 c 267.16 61.569 145 | 271.008 61.503 273.18 62.768 c 271.75 61.553 270.422 58.885 270.422 58.885 146 | c 270.422 58.885 274.449 64.464 278.047 63.776 c 279.527 63.46 280.008 147 | 62.35 280.789 59.667 c 282.184 55.452 282.895 51.374 282.895 47.393 c 282.523 148 | 43.69 281.469 41.382 279.805 40.495 c 278 39.987 276.301 40.428 274.637 149 | 41.823 c 270.219 45.866 l 271 49.3 l 269.844 47.022 268.824 45.729 267.941 150 | 45.46 c 265.258 44.71 l 264.102 42.026 l 262.367 40.292 l 261.348 40.53 151 | 260.973 41.55 261.211 43.35 c 262.164 47.971 l 260.633 45.288 l 260.262 152 | 41.448 l 258.73 42.229 258.219 43.35 258.73 44.882 c 260.055 48.721 l 257.949 153 | 45.663 l 254.684 45.085 l 252.406 45.288 l 252.137 46.175 252.578 46.987 154 | 253.734 47.768 c 257.371 49.706 l 260.836 51.608 l 262.164 52.936 l 262.809 155 | 53.581 263.898 54.128 265.426 54.499 c 268.867 54.78 276.168 50.659 276.168 156 | 50.659 c 276.168 50.659 268.707 56.604 263.785 55.178 c 261.484 56.686 157 | 258.73 55.823 258.73 55.823 c 257.066 55.042 255.707 54.092 254.684 52.936 158 | c 253.562 51.815 252.852 51.374 252.578 51.608 c 252.988 55.249 l 253.496 159 | 56.776 253.09 57.932 251.832 58.714 c 252.953 59.971 254.312 60.925 255.84 160 | 61.569 c 252.883 60.925 250.098 58.952 247.41 55.62 c 244.59 52.186 242.551 161 | 48.721 241.262 45.288 c 234.77 41.448 l 237.047 44.71 l 237.965 45.729 162 | 238.133 46.885 237.625 48.143 c 237.25 48.925 236.469 49.163 235.348 48.925 163 | c 234.191 48.553 l 232.082 46.444 l 231.676 47.393 l 231.676 47.393 244.184 164 | 64.624 257.777 65.206 c 258.152 62.655 259.242 61.022 261.008 60.245 c 165 | h 166 | 230.145 47.971 m 232.457 45.288 l 234.191 47.393 l 236.469 47.768 l 236.977 167 | 46.885 236.875 45.932 236.094 44.882 c 234.191 42.397 l 233.273 40.596 168 | 231.676 39.475 229.398 38.967 c 225.559 39.917 l 224.027 41.073 l 223.246 169 | 41.073 l 224.773 46.038 l 226.711 48.925 l 225.352 47.971 l 223.688 48.346 170 | 222.43 48.925 221.512 49.706 c 220.629 50.725 220.492 51.542 221.137 52.186 171 | c 222.16 52.698 223.383 52.698 224.773 52.186 c 228.039 50.081 l h 172 | 228.617 44.132 m 227.359 43.624 227.086 42.772 227.836 41.651 c 228.48 173 | 40.495 229.465 40.053 230.723 40.292 c 228.617 42.026 l h 174 | 234.191 21.327 m 234.191 21.327 237.535 24.546 239.152 25.339 c 242.516 175 | 16.526 248.309 13.831 253.152 13.987 c 255.137 14.225 272.199 18.749 261.961 176 | 38.987 c 262.914 39.303 264.68 40.089 264.68 40.089 c 265.629 43.553 l 177 | 269.266 44.71 l 268.484 41.514 268.555 39.139 269.473 37.604 c 269.641 37.233 178 | l 272.324 33.971 l 273.348 32.952 273.992 31.217 274.262 28.803 c 272.598 179 | 28.53 270.902 28.19 269.844 27.241 c 279.262 29.385 283.477 23.229 283.477 180 | 23.229 c 282.691 20.921 l 282.895 18.061 l 284.02 22.073 l 286.16 24.553 181 | l 287.043 21.87 287.109 19.592 286.328 17.655 c 285.547 15.991 285.309 182 | 13.882 285.582 11.335 c 277.527 13.065 l 269.062 14.596 l 264.848 13.44 183 | l 259.684 12.288 l 255.094 12.116 l 251.422 11.913 l 249.145 11.163 l 246.969 184 | 10.382 244.422 9.159 241.465 7.495 c 234.191 3.854 l 230.352 2.124 l 230.352 185 | 3.514 230.145 5.01 229.77 6.542 c 227.461 10.757 l 226.578 12.147 226.203 186 | 13.749 226.305 15.55 c 226.883 16.534 l 229.566 14.018 l 231.504 10.178 187 | l 231.504 12.624 230.859 14.561 229.566 15.956 c 233.984 21.124 l h 188 | 298.805 47.393 m 294.316 46.104 291.191 44.233 289.387 41.823 c 287.484 189 | 39.546 285.957 37.096 284.801 34.55 c 283.543 32.135 281.742 29.96 279.43 190 | 28.022 c 276.371 28.803 l 276.168 29.553 l 278.988 30.842 281.164 32.815 191 | 282.691 35.499 c 284.086 38.182 285.887 40.803 288.062 43.35 c 290.238 192 | 45.8 293.809 47.159 298.805 47.393 c h 193 | 217.672 43.928 m 217.809 44.846 218.656 45.8 220.188 46.815 c 224.605 47.393 194 | l 223.449 46.038 l 222.871 44.507 l 221.578 43.487 220.426 42.975 219.406 195 | 42.975 c 218.387 42.842 217.809 43.147 217.672 43.928 c h 196 | 222.668 43.553 m 222.871 41.073 l 219.984 42.026 l 222.668 43.553 l f* 197 | 0.968627 0.596078 0.572549 rg 198 | 321.031 96.272 m 321.031 92.565 319.637 88.284 316.816 83.425 c 313.621 199 | 78.698 309.645 75.061 304.922 72.514 c 300.195 70.1 296.117 69.014 292.652 200 | 69.253 c 295.199 72.444 297.371 76.6 297.441 79.21 c 301.75 77.796 305.5 201 | 82.096 305.5 82.096 c 305.5 82.096 298.363 77.585 295.742 81.518 c 294.352 202 | 83.46 294.215 85.94 295.336 88.999 c 296.355 92.057 298.293 94.948 301.113 203 | 97.632 c 303.938 100.178 308.223 102.639 310.699 103.581 c 322.754 109.331 204 | 321.031 96.272 321.031 96.272 c f* 205 | 1 g 206 | 266.004 81.721 m 265.242 81.815 262.945 82.303 262.945 82.303 c 264.848 207 | 85.733 l 265.121 87.128 264.828 88.35 263.898 88.046 c 267.359 96.315 273.602 208 | 98.432 273.867 97.108 c 274.605 92.979 269.582 88.483 266.004 81.721 c 209 | h 210 | 256.215 83.257 m 255.824 83.671 255.094 84.581 255.094 84.581 c 256.621 211 | 87.842 l 256.863 89.374 256.488 90.292 255.469 90.526 c 255.84 93.62 256.828 212 | 96.034 258.355 97.835 c 259.887 99.635 261.645 101.233 261.992 99.94 c 213 | 263.285 96.421 259.793 94.303 256.215 83.257 c h 214 | 252.781 82.303 m 255.094 82.096 l 256.621 80.737 l 254.516 80.94 l 252.781 215 | 82.303 l f* 216 | 0.988235 0.909804 0.682353 rg 217 | 266.582 76.151 m 266.582 76.151 263.152 73.592 258.527 73.671 c 255.891 218 | 73.749 253.734 76.729 252.578 77.1 c 254.312 75.37 l 244.223 81.132 251.047 219 | 89.702 256.215 82.471 c 255.332 83.073 253.531 83.257 253.531 83.257 c 220 | 252.648 83.491 252.07 83.323 251.832 82.678 c 251.457 81.655 251.695 80.772 221 | 252.578 79.991 c 254.109 78.26 l 255.84 79.042 l 257.574 79.616 l 257.574 222 | 79.616 257.957 80.475 257.949 81.147 c 262.543 82.296 265.703 81.237 267.363 223 | 80.569 c 265.73 78.112 266.582 76.151 266.582 76.151 c h 224 | 271.953 73.092 m 271.953 73.092 274.926 72.667 278.152 72.346 c 278.152 225 | 68.749 274.773 64.425 273.688 63.678 c 271.645 62.401 268.109 62.147 268.109 226 | 62.147 c 270.625 65.038 l 268.52 63.096 l 267.227 62.214 266.07 61.569 227 | 265.051 61.194 c 263.012 60.311 260.77 60.893 259.477 62.928 c 257.598 65.893 228 | 257.574 69.456 257.574 69.456 c 257.371 66.565 l 255.094 68.878 l 255.094 229 | 68.878 253.285 70.792 252.781 71.358 c 252.039 73.87 252.238 75.057 252.238 230 | 75.057 c 253.43 74.425 255.469 74.249 255.469 74.249 c 256.488 73.194 257.812 231 | 72.616 259.477 72.514 c 260.465 67.143 l 260.699 64.967 261.855 63.745 232 | 263.898 63.507 c 265.426 63.507 267.09 64.389 268.895 66.19 c 270.695 67.858 233 | 271.715 70.135 271.953 73.092 c f* 234 | 0.929412 0.117647 0.172549 rg 235 | 266.379 66.768 m 267.672 69.315 269.129 70.577 270.797 70.577 c 270.016 236 | 68.913 269.062 67.448 267.941 66.19 c 266.785 65.038 265.215 63.948 263.32 237 | 64.257 c 260.27 64.827 267.043 70.042 267.16 69.456 c 267.277 68.87 266.379 238 | 66.768 266.379 66.768 c f* 239 | 0.984314 0.803922 0.376471 rg 240 | 262.57 54.671 m 260.262 52.764 l 258.527 50.827 l 255.57 50.081 253.531 241 | 49.132 252.406 47.971 c 251.016 46.815 250.676 45.526 251.422 44.132 c 242 | 254.109 43.553 l 257.574 44.71 l 258.152 41.073 l 258.152 41.073 259.715 243 | 39.182 260.836 38.967 c 266.008 32.8 266.562 16.686 252.578 14.971 c 245.215 244 | 14.065 227.754 31.21 251.051 58.135 c 252.07 57.628 252.578 56.846 252.578 245 | 55.823 c 251.832 52.936 l 251.32 51.917 251.492 51.1 252.406 50.456 c 254.684 246 | 51.815 l 258.355 54.671 l 259.613 55.589 261.043 55.589 262.57 54.671 c 247 | h 248 | 292.48 24.964 m 290.953 29.925 l 292.074 30.436 293.094 30.132 294.012 249 | 28.971 c 294.793 27.819 295.168 25.917 295.168 23.229 c 294.656 19.116 293.363 250 | 15.921 291.324 13.643 c 289.152 11.467 287.688 10.655 286.906 11.163 c 251 | 286.023 12.182 285.887 13.643 286.535 15.55 c 287.859 21.698 l 286.906 26.698 252 | l 286.668 28.464 287.043 29.553 288.062 29.925 c 289.082 30.061 289.965 253 | 29.483 290.746 28.225 c h 254 | 226.137 20.171 m 226.371 19.151 226.238 17.995 225.727 16.706 c 225.082 255 | 15.682 225.082 14.155 225.727 12.116 c 228.242 7.323 l 229.398 3.854 l 256 | 229.5 2.839 229.262 2.053 228.617 1.546 c 224.98 2.327 l 223.18 3.245 221.578 257 | 5.01 220.188 7.698 c 219.168 10.01 218.793 12.182 219.031 14.221 c 219.406 258 | 16.397 220.051 17.858 220.934 18.639 c 222.293 15.55 l 221.715 18.233 l 259 | 222.871 20.921 l 224.773 21.124 l 226.137 20.171 l f* 260 | 0.0627451 0.0588235 0.0509804 rg 261 | 248.922 84.108 m 246.723 86.315 238.891 91.077 238.891 91.077 c 238.891 262 | 91.077 246.301 87.69 249.5 84.604 c 249.637 84.448 249.617 84.21 249.457 263 | 84.069 c 249.387 84.007 249.297 83.975 249.211 83.975 c 249.102 83.975 264 | 248.996 84.022 248.922 84.108 c f 265 | 248.586 82.038 m 243.762 83.51 238.152 83.51 238.152 83.51 c 238.152 83.51 266 | 243.441 84.303 248.828 82.753 c 249.023 82.686 249.129 82.471 249.062 82.276 267 | c 249.035 82.186 248.973 82.116 248.898 82.069 c 248.805 82.018 248.691 268 | 82.003 248.586 82.038 c f 269 | 262.953 78.772 m 262.879 78.971 262.977 79.19 263.176 79.264 c 271.801 270 | 81.288 279.34 80.178 279.34 80.178 c 279.34 80.178 267.953 79.897 263.441 271 | 78.553 c 263.445 78.55 l 263.398 78.534 263.355 78.526 263.312 78.526 c 272 | 263.156 78.526 263.012 78.62 262.953 78.772 c f 273 | 281.602 74.303 m 281.594 74.303 273.113 76.846 266.219 76.995 c 264.891 274 | 76.995 263.578 76.905 262.336 76.71 c 262.34 76.706 l 262.129 76.675 261.934 275 | 76.815 261.902 77.022 c 261.867 77.229 262.008 77.428 262.219 77.46 c 263.508 276 | 77.667 264.855 77.757 266.219 77.757 c 273.91 77.753 281.602 74.303 281.602 277 | 74.303 c f 278 | 113.98 180.616 m 113.98 180.616 106.926 177.385 100.598 172.639 c 106.004 279 | 175.21 112.859 177.78 112.859 177.78 c h 280 | 121.371 31.284 m 81.219 36.245 73.832 68.811 47.797 66.151 c 48.781 66.835 281 | 51.438 69.514 51.438 69.514 c 51.438 69.514 43.641 71.448 33.145 63.612 282 | c 32.184 65.956 27.422 79.757 39.02 93.538 c 6.723 111.397 21.059 137.483 283 | 20.566 160.971 c 20.566 170.991 15.488 185.76 0 184.643 c 33.754 199.866 284 | 65.66 179.69 83.312 166.01 c 90.852 172.081 98.953 177.104 107.68 181.143 285 | c 107.68 181.143 113.676 183.616 114.848 184.19 c 129.672 213.577 157.535 286 | 216.659 157.535 216.659 c 157.535 216.659 135.934 201.909 141.754 181.143 287 | c 150.699 181.342 157.195 178.124 157.195 178.124 c 157.195 178.124 149.578 288 | 179.034 142.402 178.292 c 142.523 176.991 142.883 172.561 142.883 172.561 289 | c 142.883 172.561 148.789 171.385 154.969 165.698 c 157.754 167.561 159.766 290 | 164.596 159.766 164.596 c 167.246 168.62 175.379 148.987 175.379 148.987 291 | c 190.383 133.811 180.77 102.8 180.77 102.8 c 180.461 100.456 180.141 99.178 292 | 181.109 97.378 c 183.879 93.686 191.789 96.233 194.973 86.225 c 193.418 293 | 87.007 192.828 87.608 192.402 87.495 c 200.402 79.096 195.723 70.788 189.383 294 | 68.694 c 189.383 68.694 190.438 70.569 190.652 71.401 c 187.438 67.229 295 | 178.543 61.69 178.543 61.69 c 179.672 65.362 l 166.125 48.573 156.961 49.1 296 | 146.598 37.178 c 146.598 37.178 139.559 17.983 121.371 31.284 c f* 297 | 0.470588 0.505882 0.509804 rg 298 | 154.969 215.725 m 151.465 212.37 l 144.633 204.885 l 141.867 201.807 139.41 299 | 198.307 137.293 194.385 c 135.062 190.233 133.652 185.772 133.004 181.003 300 | c 133.004 181.003 125.387 180.616 114.059 177.811 c 115.469 181.143 l 123.434 301 | 184.19 l 132.832 187.046 l 129.137 187.467 124.082 186.788 117.699 184.983 302 | c 122.078 192.405 126.961 198.366 132.352 202.823 c 137.578 207.061 142.348 303 | 210.194 146.695 212.198 c h 304 | 93.336 88.143 m 91.953 88.995 90.43 89.585 88.734 89.897 c 90.316 89.135 305 | 91.473 88.456 92.234 87.807 c 93.984 86.706 l 93.984 86.706 86.93 72.151 306 | 92.027 67.581 c 91.676 58.792 93.961 61.167 93.961 61.167 c 95.23 55.971 307 | 97.43 51.018 100.508 46.249 c 103.473 41.592 106.832 38.034 110.527 35.577 308 | c 100.453 39.925 92.18 44.639 85.684 49.749 c 79.219 54.858 73.32 59.151 309 | 68.012 62.651 c 62.703 66.264 56.805 67.76 50.34 67.112 c 53.527 69.514 310 | l 56.238 69.342 l 58.129 68.694 l 50.496 74.346 36.258 71.315 33.625 66.323 311 | c 33.227 93.596 42.453 90.565 61.18 111.069 c 61.18 111.069 65.133 116.01 312 | 62.449 118.862 c 60.953 119.936 59.684 120.217 58.609 119.678 c 57.34 119.37 313 | 56.297 118.663 55.422 117.592 c 54.008 114.401 l 53.586 117.167 54.23 122.69 314 | 61.488 123.01 c 54.98 127.35 48.898 121.092 48.898 121.092 c 48.898 121.092 315 | 52.605 128.671 59.262 129.874 c 60.051 128.432 l 60.25 128.01 60.84 127.725 316 | 61.801 127.643 c 60.305 129.987 59.938 132.245 60.699 134.475 c 61.547 317 | 136.706 62.703 138.37 64.199 139.417 c 62.59 137.413 61.914 135.55 62.109 318 | 133.854 c 62.109 132.132 62.59 130.803 63.551 129.874 c 64.312 129.112 319 | 65.301 128.8 66.57 128.913 c 73.305 130.339 72.305 138.456 72.305 138.456 320 | c 73.262 134.475 l 73.574 137.241 73.121 140.319 71.852 143.733 c 70.355 321 | 147.237 68.719 150.37 66.91 153.108 c 62.984 159.065 58.102 164.26 52.258 322 | 168.721 c 47.375 172.448 42.152 175.635 36.645 178.292 c 26.227 182.948 323 | 15.188 185.292 3.5 185.292 c 12.961 187.635 21.539 188.428 29.305 187.69 324 | c 36.957 186.928 44.016 185.237 50.508 182.581 c 56.746 180.128 62.422 325 | 177.276 67.531 173.971 c 72.418 170.893 76.934 168.214 81.082 165.87 c 85.121 326 | 163.639 88.762 162.339 92.066 162.03 c 88.254 163.78 l 86.758 164.315 85.488 327 | 164.967 84.414 165.698 c 86.531 167.62 89.891 170.018 94.465 172.87 c 99.012 328 | 175.835 104.062 178.546 109.598 181.003 c 115.102 183.542 120.523 185.178 329 | 125.832 185.94 c 117.871 183.6 111.121 180.717 105.617 177.331 c 105.617 330 | 177.331 94.457 170.01 92.715 167.928 c 120.109 181.405 142.883 180.577 331 | 148.926 179.729 c 148.926 179.729 119.848 178.635 112.449 173.042 c 112.449 332 | 173.042 139.492 177.186 154.348 164.741 c 153.922 163.78 153.863 162.706 333 | 154.176 161.55 c 154.402 160.507 154.77 159.6 155.305 158.839 c 155.617 334 | 163.467 l 156.039 164.854 157.227 164.995 159.117 163.948 c 158.156 162.03 335 | 157.848 159.913 158.156 157.569 c 158.469 155.225 159.117 153.053 160.078 336 | 151.046 c 161.035 149.155 161.941 147.831 162.789 147.065 c 162.957 149.467 337 | l 163.266 153.448 l 163.352 154.831 163.773 155.678 164.539 155.987 c 165.387 338 | 156.3 166.711 155.819 168.52 154.55 c 173.77 149.296 l 173.77 149.296 189.066 339 | 135.26 179.02 101.671 c 178.781 100.717 178.668 94.964 184.133 94.018 c 340 | 189.594 93.069 192.262 89.249 192.262 89.249 c 189.723 89.643 l 189.723 341 | 89.643 201.984 78.964 190.965 70.303 c 191.176 70.612 192.668 72.94 191.781 342 | 73.971 c 186.297 68.065 180.363 64.065 180.363 64.065 c 180.363 64.065 343 | 182.477 68.327 183.004 71.401 c 172.719 57.87 164.848 54.042 164.848 54.042 344 | c 167.418 58.077 169.363 62.284 170.75 66.632 c 170.75 66.632 179.836 71.581 345 | 182.859 80.635 c 183.352 81.553 l 183.891 83.788 184.133 85.944 183.82 346 | 87.327 c 183.66 88.128 l 183.348 89.624 182.926 91.37 180.941 92.749 c 178.078 347 | 94.831 173.629 94.018 173.629 94.018 c 176.902 103.788 178.43 111.917 178.23 348 | 118.409 c 178.031 125.1 177.016 130.182 175.211 133.682 c 173.402 137.1 349 | 171.848 138.964 170.578 139.272 c 168.688 139.585 167.191 139.19 166.117 350 | 138.143 c 164.961 137.186 164.199 135.686 163.887 133.682 c 163.152 136.026 351 | 162.25 137.495 161.18 138.143 c 160.02 138.796 159.059 138.456 158.328 352 | 137.186 c 156.098 144.354 l 153.863 147.858 l 152.059 149.975 150.309 150.792 353 | 148.613 150.257 c 147.344 149.835 146.582 148.76 146.387 147.065 c 146.387 354 | 145.147 l 146.695 141.026 l 147.004 138.905 147.484 136.819 148.137 134.811 355 | c 146.133 137.553 144.465 138.764 143.195 138.456 c 141.809 138.143 141.078 356 | 136.706 140.965 134.163 c 137.773 138.456 l 133.004 142.604 l 131.195 143.651 357 | 129.5 143.987 127.891 143.565 c 125.551 142.917 123.801 140.374 122.641 358 | 135.913 c 121.598 131.565 121.598 125.721 122.641 118.409 c 123.801 111.069 359 | 126.68 102.741 131.254 93.397 c 131.254 93.397 128.234 93.889 126.48 93.878 360 | c 125.516 99.573 122.5 102.46 122.5 102.46 c 122.5 102.46 129.473 91.225 361 | 121.852 83.827 c 120.891 83.038 l 117.391 80.69 113.832 79.76 110.219 80.182 362 | c 106.688 80.596 102.973 82.061 99.039 84.6 c h 363 | 133.312 159.487 m 136.617 156.835 138.734 153.928 139.691 150.737 c 136.504 364 | 153.475 127.414 159.686 121.852 156.635 c 116.289 153.589 116.77 144.132 365 | 117.078 143.085 c 114.004 145.741 112.082 148.561 111.348 151.526 c 110.504 366 | 154.717 110.445 157.51 111.18 159.967 c 111.828 162.51 112.621 164.967 367 | 114.848 165.87 c 122.617 167.3 129.926 162.339 133.312 159.487 c h 368 | 132.352 177.331 m 132.523 174.932 l 126.793 175.413 l 119.93 175.1 l 126.961 369 | 176.542 l h 370 | 106.098 167.448 m 103.219 164.596 101.242 160.874 100.195 156.3 c 98.926 371 | 151.839 99.18 146.842 100.988 141.335 c 99.18 144.3 98.332 147.6 98.445 372 | 151.217 c 98.531 154.831 99.32 158.163 100.816 161.237 c 102.203 164.315 373 | 103.98 166.405 106.098 167.448 c h 374 | 96.355 160.928 m 94.945 155.339 l 94.832 153.53 95.145 151.3 95.879 148.647 375 | c 94.605 150.764 94.098 152.995 94.297 155.339 c 94.492 157.796 95.199 376 | 159.659 96.355 160.928 c f* 377 | 0.968627 0.596078 0.572549 rg 378 | 139.863 191.503 m 139.438 188.737 139.633 185.557 140.281 181.405 c 134.348 379 | 181.143 l 134.348 183.26 134.977 185.405 136.023 187.835 c 136.871 190.401 380 | 137.887 192.717 139.043 194.835 c 141.926 199.464 l 140.852 196.925 140.172 381 | 194.272 139.863 191.503 c h 382 | 141.133 173.182 m 134.273 174.792 l 134.273 177.503 l 141.133 178.124 l 383 | h 384 | 30.914 179.561 m 34.953 177.952 38.961 176.007 42.996 173.663 c 54.008 385 | 165.87 l 60.699 160.139 65.895 153.448 69.621 145.796 c 70.469 143.678 71.004 386 | 141.335 71.203 138.796 c 71.547 134.823 70.055 129.897 65.781 130.663 c 387 | 60.559 131.745 66.188 142.116 66.188 142.116 c 66.188 142.116 57.484 137.635 388 | 59.262 130.663 c 59.262 130.663 47.199 128.671 47.316 117.928 c 51.777 389 | 122.053 l 53.473 123.124 55.422 123.55 57.648 123.323 c 55.645 122.788 54.148 390 | 121.319 53.219 118.862 c 52.344 116.432 52.879 114.061 54.801 111.721 c 391 | 54.602 112.764 58.012 121.151 61.32 118.241 c 62.496 117.592 62.027 115.729 392 | 60.531 112.651 c 59.035 109.913 56.07 106.975 51.609 103.897 c 40.316 94.667 393 | l 32.805 99.921 l 28.457 104.178 25.27 109.065 23.262 114.569 c 21.031 394 | 120.19 19.961 126.202 20.074 132.585 c 20.496 141.503 21.316 150.257 22.473 395 | 158.839 c 22.133 164.909 l 20.555 171.12 l 17.672 177.811 l 16.402 180.155 396 | 14.711 182.104 12.59 183.714 c 12.113 184.022 l 18.465 183.26 24.73 181.792 397 | 30.914 179.561 c f* 398 | 0.980392 0.952941 0.356863 rg 399 | 136.336 137.835 m 139.297 134.417 141.953 129.815 144.297 123.971 c 146.523 400 | 118.241 147.598 112.116 147.484 105.647 c 146.441 108.952 145.312 110.956 401 | 144.152 111.721 c 143.082 112.565 142.293 112.878 141.754 112.651 c 140.172 402 | 112.229 139.016 110.874 138.254 108.53 c 137.406 106.186 137.152 103.389 403 | 137.465 100.089 c 137.66 96.897 138.367 93.764 139.523 90.686 c 136.812 404 | 90.206 l 136.812 90.206 134.48 92.104 131.73 93.089 c 129.121 99.05 125.605 405 | 109.686 124.559 116.803 c 123.289 124.026 123.008 129.815 123.77 134.163 406 | c 124.504 138.737 126 141.389 128.23 142.128 c 130.574 142.663 133.258 407 | 141.221 136.336 137.835 c h 408 | 169.477 137.835 m 170.859 137.635 172.328 136.085 173.938 133.206 c 175.324 409 | 130.354 176.309 126.682 176.961 122.221 c 177.609 117.647 177.328 112.878 410 | 176.168 107.882 c 175.746 110.76 174.617 112.311 172.809 112.51 c 171.004 411 | 112.311 169.508 110.28 168.348 106.44 c 166.965 102.741 166.656 98.053 412 | 167.418 92.436 c 163.098 90.854 l 164.707 99.862 165.246 109.065 164.707 413 | 118.409 c 163.945 124.452 164.059 129.167 165.016 132.585 c 165.754 136.171 414 | 167.25 137.921 169.477 137.835 c f* 415 | 0.8 0.796078 0.8 rg 416 | 158.805 88.288 m 154.258 91.092 145.734 91.307 145.734 91.307 c 148.613 417 | 101.979 l 149.039 107.202 148.641 112.397 147.484 117.592 c 146.328 122.897 418 | 144.633 127.784 142.402 132.245 c 142.094 136.393 142.883 137.862 144.773 419 | 136.706 c 146.582 135.659 148.613 132.413 150.844 126.995 c 149.406 134.163 420 | l 148.445 137.581 147.852 140.768 147.656 143.733 c 147.656 145.007 l 147.656 421 | 147.346 148.332 148.76 149.715 149.296 c 151.438 149.495 153.188 147.971 422 | 154.969 144.667 c 155.137 144.354 l 156.832 141.167 157.988 136.819 158.637 423 | 131.284 c 158.805 134.335 l 158.691 135.913 159.176 136.928 160.246 137.354 424 | c 161.094 137.354 161.77 136.678 162.309 135.296 c 163.406 132.585 l 163.887 425 | 129.874 l 163.578 127.303 l 163.887 119.03 l 164.227 110.901 l 164.113 426 | 104.014 163.465 97.21 162.309 90.514 c 161.035 89.979 160.133 89.503 159.598 427 | 89.077 c 158.805 88.288 l f* 428 | 0.317647 0.721569 0.215686 rg 429 | 175.52 107.569 m 175.941 105.647 175.746 103.362 174.898 100.71 c 174.785 430 | 104.124 173.938 105.819 172.328 105.819 c 171.598 105.901 170.805 104.858 431 | 169.957 102.628 c 169 100.288 168.773 97.065 169.309 92.917 c 168.207 92.604 432 | l 167.898 98.76 168.32 103.421 169.477 106.608 c 170.637 109.8 171.906 433 | 111.268 173.289 111.069 c 174.363 110.76 175.098 109.573 175.52 107.569 434 | c h 435 | 142.883 106.44 m 141.727 106.014 140.852 104.178 140.312 100.878 c 139.691 436 | 97.803 140.344 94.553 142.234 91.167 c 140.172 90.854 l 138.676 94.132 437 | 137.941 97.319 137.941 100.397 c 137.832 103.475 138.254 106.046 139.215 438 | 108.05 c 139.945 110.053 140.852 111.182 141.926 111.382 c 143.504 111.382 439 | 144.773 110.221 145.734 107.882 c 146.582 105.538 147.004 103.276 147.004 440 | 101.05 c 145.594 105.171 l 144.832 106.245 143.93 106.667 142.883 106.44 441 | c f* 442 | 1 g 443 | 158.805 88.288 m 158.805 88.288 176.805 96.632 181.59 89.557 c 186.031 444 | 81.206 170.211 61.167 161.906 68.55 c 162.957 70.303 l 162.957 70.303 152.676 445 | 61.69 145.734 62.175 c 141.734 62.612 139.156 64.628 136.504 67.28 c 129.02 446 | 75.245 l 125.352 78.573 l 124.191 79.729 122.809 80.635 121.203 81.288 447 | c 121.203 81.288 126.395 84.632 126.621 92.604 c 129.031 93.249 135.008 448 | 91.167 136.504 90.206 c 132.832 88.764 l 132.832 88.764 148.852 91.885 158.156 449 | 86.706 c 156.406 85.745 l 155.926 85.264 l 155.082 84.616 154.602 83.714 450 | 154.516 82.553 c 154.516 81.288 155.191 80.436 156.578 80.014 c 161.035 451 | 78.405 l 162.617 77.983 164.516 77.155 165.188 75.553 c 167.574 76.721 452 | 171.398 80.635 171.398 80.635 c 173.402 82.358 174.418 83.827 174.418 85.096 453 | c 174.109 86.366 172.723 87.327 170.27 87.975 c 170.27 87.975 165.598 89.643 454 | 160.246 87.327 c h 455 | 164.539 87.327 m 167.441 87.796 170.496 87.085 170.75 86.057 c 171.004 456 | 85.026 170.105 83.757 165.809 83.206 c 161.512 82.655 160.273 83.827 160.078 457 | 84.475 c 159.965 85.21 161.633 86.854 164.539 87.327 c h 458 | 113.891 65.19 m 114.426 60.534 115.469 56.132 117.078 51.979 c 118.574 459 | 47.94 121.059 44.44 124.559 41.475 c 126.566 40.21 128.738 39.389 131.082 460 | 39.077 c 133.426 38.764 135.266 38.854 137.773 40.518 c 142.523 43.76 144.766 461 | 59.053 150.363 60.592 c 152.676 61.167 154.402 62.175 156.098 63.44 c 160.727 462 | 67.592 l 163.621 63.139 170.098 66.151 170.098 66.151 c 165.977 57.092 463 | l 164.367 54.128 162.137 51.671 159.285 49.749 c 152.906 44.979 l 147.176 464 | 39.557 l 148.02 41.561 148.277 43.596 147.965 45.6 c 147.965 45.6 145.645 465 | 30.667 134.441 29.366 c 123.758 28.378 114.734 38.714 114.199 38.909 c 466 | 119.453 32.866 l 116.598 33.401 113.41 35.042 109.906 37.807 c 106.297 40.659 467 | 102.992 44.44 100.027 49.1 c 97.176 53.788 95.086 59.151 93.816 65.19 c 468 | 93.172 61.87 l 93.172 61.87 92.203 68.987 92.996 73.471 c 91.852 71.714 469 | 91.586 69.175 91.586 69.175 c 91.586 69.175 89.391 75.667 94.754 86.217 470 | c 95.719 85.425 101.52 80.061 110.391 78.264 c 111.891 77.866 112.93 74.71 471 | 113.238 72.362 c 113.891 65.19 l f* 472 | 0.929412 0.117647 0.172549 rg 473 | 122.02 56.44 m 123.828 55.596 125.746 53.589 127.75 50.397 c 126 54.21 474 | l 127.383 54.21 135.801 52.198 137.465 41.96 c 136.305 40.573 134.555 39.979 475 | 132.211 40.21 c 129.641 40.405 127.215 41.475 124.871 43.37 c 122.754 45.288 476 | 121.059 47.686 119.789 50.542 c 118.293 53.421 117.391 55.905 117.078 58.018 477 | c 122.02 56.44 l f* 478 | 0.0627451 0.0588235 0.0509804 rg 479 | 182.516 87.678 m 182.402 87.948 182.527 88.26 182.797 88.374 c 201.32 96.132 480 | 215.52 97.081 215.52 97.081 c 215.551 96.792 201.898 95.444 183.203 87.397 481 | c 183.137 87.37 183.066 87.358 183 87.358 c 182.793 87.358 182.598 87.479 482 | 182.516 87.678 c f 483 | 188.328 81.007 m 185.125 81.007 182.391 80.768 182.344 80.764 c 182.949 484 | 81.862 l 200.758 82.964 213.051 76.514 213.051 76.514 c 213.051 76.514 485 | 200.887 81.249 188.328 81.007 c f 486 | 136.664 84.714 m 111.719 100.366 87.02 103.928 87.02 103.928 c 87.043 104.217 487 | 110.402 102.456 137.223 85.608 c 137.223 85.604 l 137.469 85.452 137.543 488 | 85.128 137.391 84.882 c 137.289 84.721 137.117 84.635 136.941 84.635 c 489 | 136.848 84.635 136.75 84.659 136.664 84.714 c f 490 | 136.105 78.882 m 126.23 83.452 110.48 84.725 96.352 84.717 c 88 84.717 491 | 64.605 83.428 64.605 83.428 c 64.57 83.717 79.57 85.772 96.352 85.772 c 492 | 110.551 85.768 126.367 84.534 136.547 79.839 c 136.812 79.717 136.93 79.401 493 | 136.805 79.139 c 136.715 78.944 136.527 78.831 136.328 78.831 c 136.254 494 | 78.831 136.18 78.846 136.105 78.882 c f 495 | Q Q 496 | showpage 497 | %%Trailer 498 | end restore 499 | %%EOF 500 | -------------------------------------------------------------------------------- /Chapter2/chapter2.tex: -------------------------------------------------------------------------------- 1 | %!TEX root = ../thesis.tex 2 | %******************************************************************************* 3 | %****************************** Second Chapter ********************************* 4 | %******************************************************************************* 5 | 6 | \chapter{My second chapter} 7 | 8 | \ifpdf 9 | \graphicspath{{Chapter2/Figs/Raster/}{Chapter2/Figs/PDF/}{Chapter2/Figs/}} 10 | \else 11 | \graphicspath{{Chapter2/Figs/Vector/}{Chapter2/Figs/}} 12 | \fi 13 | 14 | 15 | \section[Short title]{Reasonably long section title} 16 | 17 | % Uncomment this line, when you have siunitx package loaded. 18 | %The SI Units for dynamic viscosity is \si{\newton\second\per\metre\squared}. 19 | I'm going to randomly include a picture Figure~\ref{fig:minion}. 20 | 21 | 22 | If you have trouble viewing this document contact Krishna at: \href{mailto:kks32@cam.ac.uk}{kks32@cam.ac.uk} or raise an issue at \url{https://github.com/kks32/phd-thesis-template/} 23 | 24 | 25 | \begin{figure}[htbp!] 26 | \centering 27 | \includegraphics[width=1.0\textwidth]{minion} 28 | \caption[Minion]{This is just a long figure caption for the minion in Despicable Me from Pixar} 29 | \label{fig:minion} 30 | \end{figure} 31 | 32 | 33 | \section*{Enumeration} 34 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae laoreet lectus. Donec lacus quam, malesuada ut erat vel, consectetur eleifend tellus. Aliquam non feugiat lacus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque a dolor sit amet dui malesuada malesuada id ac metus. Phasellus posuere egestas mauris, sed porta arcu vulputate ut. Donec arcu erat, ultrices et nisl ut, ultricies facilisis urna. Quisque iaculis, lorem non maximus pretium, dui eros auctor quam, sed sodales libero felis vel orci. Aliquam neque nunc, elementum id accumsan eu, varius eu enim. Aliquam blandit ante et ligula tempor pharetra. Donec molestie porttitor commodo. Integer rutrum turpis ac erat tristique cursus. Sed venenatis urna vel tempus venenatis. Nam eu rhoncus eros, et condimentum elit. Quisque risus turpis, aliquam eget euismod id, gravida in odio. Nunc elementum nibh risus, ut faucibus mauris molestie eu. 35 | Vivamus quis nunc nec nisl vulputate fringilla. Duis tempus libero ac justo laoreet tincidunt. Fusce sagittis gravida magna, pharetra venenatis mauris semper at. Nullam eleifend felis a elementum sagittis. In vel turpis eu metus euismod tempus eget sit amet tortor. Donec eu rhoncus libero, quis iaculis lectus. Aliquam erat volutpat. Proin id ullamcorper tortor. Fusce vestibulum a enim non volutpat. Nam ut interdum nulla. Proin lacinia felis malesuada arcu aliquet fringilla. Aliquam condimentum, tellus eget maximus porttitor, quam sem luctus massa, eu fermentum arcu diam ac massa. Praesent ut quam id leo molestie rhoncus. Praesent nec odio eget turpis bibendum eleifend non sit amet mi. Curabitur placerat finibus velit, eu ultricies risus imperdiet ut. Suspendisse lorem orci, luctus porta eros a, commodo maximus nisi. 36 | 37 | Nunc et dolor diam. Phasellus eu justo vitae diam vehicula tristique. Vestibulum vulputate cursus turpis nec commodo. Etiam elementum sit amet erat et pellentesque. In eu augue sed tortor mollis tincidunt. Mauris eros dui, sagittis vestibulum vestibulum vitae, molestie a velit. Donec non felis ut velit aliquam convallis sit amet sit amet velit. Aliquam vulputate, elit in lacinia lacinia, odio lacus consectetur quam, sit amet facilisis mi justo id magna. Curabitur aliquet pulvinar eros. Cras metus enim, tristique ut magna a, interdum egestas nibh. Aenean lorem odio, varius a sollicitudin non, cursus a odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; 38 | \begin{enumerate} 39 | \item The first topic is dull 40 | \item The second topic is duller 41 | \begin{enumerate} 42 | \item The first subtopic is silly 43 | \item The second subtopic is stupid 44 | \end{enumerate} 45 | \item The third topic is the dullest 46 | \end{enumerate} 47 | Morbi bibendum est aliquam, hendrerit dolor ac, pretium sem. Nunc molestie, dui in euismod finibus, nunc enim viverra enim, eu mattis mi metus id libero. Cras sed accumsan justo, ut volutpat ipsum. Nam faucibus auctor molestie. Morbi sit amet eros a justo pretium aliquet. Maecenas tempor risus sit amet tincidunt tincidunt. Curabitur dapibus gravida gravida. Vivamus porta ullamcorper nisi eu molestie. Ut pretium nisl eu facilisis tempor. Nulla rutrum tincidunt justo, id placerat lacus laoreet et. Sed cursus lobortis vehicula. Donec sed tortor et est cursus pellentesque sit amet sed velit. Proin efficitur posuere felis, porta auctor nunc. Etiam non porta risus. Pellentesque lacinia eros at ante iaculis, sed aliquet ipsum volutpat. Suspendisse potenti. 48 | 49 | Ut ultrices lectus sed sagittis varius. Nulla facilisi. Nullam tortor sem, placerat nec condimentum eu, tristique eget ex. Nullam pretium tellus ut nibh accumsan elementum. Aliquam posuere gravida tellus, id imperdiet nulla rutrum imperdiet. Nulla pretium ullamcorper quam, non iaculis orci consectetur eget. Curabitur non laoreet nisl. Maecenas lacinia, lorem vel tincidunt cursus, odio lorem aliquet est, gravida auctor arcu urna id enim. Morbi accumsan bibendum ipsum, ut maximus dui placerat vitae. Nullam pretium ac tortor nec venenatis. Nunc non aliquet neque. 50 | 51 | \section*{Itemize} 52 | \begin{itemize} 53 | \item The first topic is dull 54 | \item The second topic is duller 55 | \begin{itemize} 56 | \item The first subtopic is silly 57 | \item The second subtopic is stupid 58 | \end{itemize} 59 | \item The third topic is the dullest 60 | \end{itemize} 61 | 62 | \section*{Description} 63 | \begin{description} 64 | \item[The first topic] is dull 65 | \item[The second topic] is duller 66 | \begin{description} 67 | \item[The first subtopic] is silly 68 | \item[The second subtopic] is stupid 69 | \end{description} 70 | \item[The third topic] is the dullest 71 | \end{description} 72 | 73 | 74 | \clearpage 75 | 76 | \tochide\section{Hidden section} 77 | \textbf{Lorem ipsum dolor sit amet}, \textit{consectetur adipiscing elit}. In magna nisi, aliquam id blandit id, congue ac est. Fusce porta consequat leo. Proin feugiat at felis vel consectetur. Ut tempus ipsum sit amet congue posuere. Nulla varius rutrum quam. Donec sed purus luctus, faucibus velit id, ultrices sapien. Cras diam purus, tincidunt eget tristique ut, egestas quis nulla. Curabitur vel iaculis lectus. Nunc nulla urna, ultrices et eleifend in, accumsan ut erat. In ut ante leo. Aenean a lacinia nisl, sit amet ullamcorper dolor. Maecenas blandit, tortor ut scelerisque congue, velit diam volutpat metus, sed vestibulum eros justo ut nulla. Etiam nec ipsum non enim luctus porta in in massa. Cras arcu urna, malesuada ut tellus ut, pellentesque mollis risus.Morbi vel tortor imperdiet arcu auctor mattis sit amet eu nisi. Nulla gravida urna vel nisl egestas varius. Aliquam posuere ante quis malesuada dignissim. Mauris ultrices tristique eros, a dignissim nisl iaculis nec. Praesent dapibus tincidunt mauris nec tempor. Curabitur et consequat nisi. Quisque viverra egestas risus, ut sodales enim blandit at. Mauris quis odio nulla. Cras euismod turpis magna, in facilisis diam congue non. Mauris faucibus nisl a orci dictum, et tempus mi cursus. 78 | 79 | Etiam elementum tristique lacus, sit amet eleifend nibh eleifend sed \footnote{My footnote goes blah blah blah! \dots}. Maecenas dapibu augue ut urna malesuada, non tempor nibh mollis. Donec sed sem sollicitudin, convallis velit aliquam, tincidunt diam. In eu venenatis lorem. Aliquam non augue porttitor tellus faucibus porta et nec ante. Proin sodales, libero vitae commodo sodales, dolor nisi cursus magna, non tincidunt ipsum nibh eget purus. Nam rutrum tincidunt arcu, tincidunt vulputate mi sagittis id. Proin et nisi nec orci tincidunt auctor et porta elit. Praesent eu dolor ac magna cursus euismod. Integer non dictum nunc. 80 | 81 | 82 | \begin{landscape} 83 | 84 | \section*{Subplots} 85 | I can cite Wall-E (see Fig.~\ref{fig:WallE}) and Minions in despicable me (Fig.~\ref{fig:Minnion}) or I can cite the whole figure as Fig.~\ref{fig:animations} 86 | 87 | 88 | \begin{figure} 89 | \centering 90 | \begin{subfigure}[b]{0.3\textwidth} 91 | \includegraphics[width=\textwidth]{TomandJerry} 92 | \caption{Tom and Jerry} 93 | \label{fig:TomJerry} 94 | \end{subfigure} 95 | \begin{subfigure}[b]{0.3\textwidth} 96 | \includegraphics[width=\textwidth]{WallE} 97 | \caption{Wall-E} 98 | \label{fig:WallE} 99 | \end{subfigure} 100 | \begin{subfigure}[b]{0.3\textwidth} 101 | \includegraphics[width=\textwidth]{minion} 102 | \caption{Minions} 103 | \label{fig:Minnion} 104 | \end{subfigure} 105 | \caption{Best Animations} 106 | \label{fig:animations} 107 | \end{figure} 108 | 109 | 110 | \end{landscape} 111 | -------------------------------------------------------------------------------- /Chapter3/chapter3.tex: -------------------------------------------------------------------------------- 1 | %!TEX root = ../thesis.tex 2 | %******************************************************************************* 3 | %****************************** Third Chapter ********************************** 4 | %******************************************************************************* 5 | \chapter{My third chapter} 6 | 7 | % **************************** Define Graphics Path ************************** 8 | \ifpdf 9 | \graphicspath{{Chapter3/Figs/Raster/}{Chapter3/Figs/PDF/}{Chapter3/Figs/}} 10 | \else 11 | \graphicspath{{Chapter3/Figs/Vector/}{Chapter3/Figs/}} 12 | \fi 13 | 14 | \section{First section of the third chapter} 15 | And now I begin my third chapter here \dots 16 | 17 | And now to cite some more people~\citet{Rea85,Ancey1996} 18 | 19 | \subsection{First subsection in the first section} 20 | \dots and some more 21 | 22 | \subsection{Second subsection in the first section} 23 | \dots and some more \dots 24 | 25 | \subsubsection{First subsub section in the second subsection} 26 | \dots and some more in the first subsub section otherwise it all looks the same 27 | doesn't it? well we can add some text to it \dots 28 | 29 | \subsection{Third subsection in the first section} 30 | \dots and some more \dots 31 | 32 | \subsubsection{First subsub section in the third subsection} 33 | \dots and some more in the first subsub section otherwise it all looks the same 34 | doesn't it? well we can add some text to it and some more and some more and 35 | some more and some more and some more and some more and some more \dots 36 | 37 | \subsubsection{Second subsub section in the third subsection} 38 | \dots and some more in the first subsub section otherwise it all looks the same 39 | doesn't it? well we can add some text to it \dots 40 | 41 | \section{Second section of the third chapter} 42 | and here I write more \dots 43 | 44 | \section{The layout of formal tables} 45 | This section has been modified from ``Publication quality tables in \LaTeX*'' 46 | by Simon Fear. 47 | 48 | The layout of a table has been established over centuries of experience and 49 | should only be altered in extraordinary circumstances. 50 | 51 | When formatting a table, remember two simple guidelines at all times: 52 | 53 | \begin{enumerate} 54 | \item Never, ever use vertical rules (lines). 55 | \item Never use double rules. 56 | \end{enumerate} 57 | 58 | These guidelines may seem extreme but I have 59 | never found a good argument in favour of breaking them. For 60 | example, if you feel that the information in the left half of 61 | a table is so different from that on the right that it needs 62 | to be separated by a vertical line, then you should use two 63 | tables instead. Not everyone follows the second guideline: 64 | 65 | There are three further guidelines worth mentioning here as they 66 | are generally not known outside the circle of professional 67 | typesetters and subeditors: 68 | 69 | \begin{enumerate}\setcounter{enumi}{2} 70 | \item Put the units in the column heading (not in the body of 71 | the table). 72 | \item Always precede a decimal point by a digit; thus 0.1 73 | {\em not} just .1. 74 | \item Do not use `ditto' signs or any other such convention to 75 | repeat a previous value. In many circumstances a blank 76 | will serve just as well. If it won't, then repeat the value. 77 | \end{enumerate} 78 | 79 | A frequently seen mistake is to use `\textbackslash begin\{center\}' \dots `\textbackslash end\{center\}' inside a figure or table environment. This center environment can cause additional vertical space. If you want to avoid that just use `\textbackslash centering' 80 | 81 | 82 | \begin{table} 83 | \caption{A badly formatted table} 84 | \centering 85 | \label{table:bad_table} 86 | \begin{tabular}{|l|c|c|c|c|} 87 | \hline 88 | & \multicolumn{2}{c}{Species I} & \multicolumn{2}{c|}{Species II} \\ 89 | \hline 90 | Dental measurement & mean & SD & mean & SD \\ \hline 91 | \hline 92 | I1MD & 6.23 & 0.91 & 5.2 & 0.7 \\ 93 | \hline 94 | I1LL & 7.48 & 0.56 & 8.7 & 0.71 \\ 95 | \hline 96 | I2MD & 3.99 & 0.63 & 4.22 & 0.54 \\ 97 | \hline 98 | I2LL & 6.81 & 0.02 & 6.66 & 0.01 \\ 99 | \hline 100 | CMD & 13.47 & 0.09 & 10.55 & 0.05 \\ 101 | \hline 102 | CBL & 11.88 & 0.05 & 13.11 & 0.04\\ 103 | \hline 104 | \end{tabular} 105 | \end{table} 106 | 107 | \begin{table} 108 | \caption{A nice looking table} 109 | \centering 110 | \label{table:nice_table} 111 | \begin{tabular}{l c c c c} 112 | \hline 113 | \multirow{2}{*}{Dental measurement} & \multicolumn{2}{c}{Species I} & \multicolumn{2}{c}{Species II} \\ 114 | \cline{2-5} 115 | & mean & SD & mean & SD \\ 116 | \hline 117 | I1MD & 6.23 & 0.91 & 5.2 & 0.7 \\ 118 | 119 | I1LL & 7.48 & 0.56 & 8.7 & 0.71 \\ 120 | 121 | I2MD & 3.99 & 0.63 & 4.22 & 0.54 \\ 122 | 123 | I2LL & 6.81 & 0.02 & 6.66 & 0.01 \\ 124 | 125 | CMD & 13.47 & 0.09 & 10.55 & 0.05 \\ 126 | 127 | CBL & 11.88 & 0.05 & 13.11 & 0.04\\ 128 | \hline 129 | \end{tabular} 130 | \end{table} 131 | 132 | 133 | \begin{table} 134 | \caption{Even better looking table using booktabs} 135 | \centering 136 | \label{table:good_table} 137 | \begin{tabular}{l c c c c} 138 | \toprule 139 | \multirow{2}{*}{Dental measurement} & \multicolumn{2}{c}{Species I} & \multicolumn{2}{c}{Species II} \\ 140 | \cmidrule{2-5} 141 | & mean & SD & mean & SD \\ 142 | \midrule 143 | I1MD & 6.23 & 0.91 & 5.2 & 0.7 \\ 144 | 145 | I1LL & 7.48 & 0.56 & 8.7 & 0.71 \\ 146 | 147 | I2MD & 3.99 & 0.63 & 4.22 & 0.54 \\ 148 | 149 | I2LL & 6.81 & 0.02 & 6.66 & 0.01 \\ 150 | 151 | CMD & 13.47 & 0.09 & 10.55 & 0.05 \\ 152 | 153 | CBL & 11.88 & 0.05 & 13.11 & 0.04\\ 154 | \bottomrule 155 | \end{tabular} 156 | \end{table} 157 | -------------------------------------------------------------------------------- /Declaration/declaration.tex: -------------------------------------------------------------------------------- 1 | % ******************************* Thesis Declaration *************************** 2 | 3 | \begin{declaration} 4 | 5 | I hereby declare that except where specific reference is made to the work of 6 | others, the contents of this dissertation are original and have not been 7 | submitted in whole or in part for consideration for any other degree or 8 | qualification in this, or any other university. This dissertation is my own 9 | work and contains nothing which is the outcome of work done in collaboration 10 | with others, except as specified in the text and Acknowledgements. This 11 | dissertation contains fewer than 65,000 words including appendices, 12 | bibliography, footnotes, tables and equations and has fewer than 150 figures. 13 | 14 | % Author and date will be inserted automatically from thesis.tex \author \degreedate 15 | 16 | \end{declaration} 17 | 18 | -------------------------------------------------------------------------------- /Dedication/dedication.tex: -------------------------------------------------------------------------------- 1 | % ******************************* Thesis Dedidcation ******************************** 2 | 3 | \begin{dedication} 4 | 5 | I would like to dedicate this thesis to my loving parents \dots 6 | 7 | \end{dedication} 8 | 9 | -------------------------------------------------------------------------------- /Figs/CollegeShields/Downing.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Downing.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/Fitzwilliam.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Fitzwilliam.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/FitzwilliamRed.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/FitzwilliamRed.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/Gonville_and_Caius.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Gonville_and_Caius.jpg -------------------------------------------------------------------------------- /Figs/CollegeShields/Kings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Kings.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/Licenses.md: -------------------------------------------------------------------------------- 1 | This file contains licences accompanying the images in this folder. 2 | 3 | # King's College's shield 4 | 5 | Files: 6 | Kings.svg 7 | 8 | Derivative files: 9 | Kings.eps 10 | Kings.pdf 11 | 12 | Source: 13 | Provided by the college / Vectorised by Krishna Kumar 14 | 15 | Licence: 16 | Public domain 17 | 18 | # Gonville and Caius College's shield 19 | 20 | Files: 21 | Gonville_and_Caius.jpg 22 | Source: 23 | 24 | Provided by the college 25 | 26 | Licence: 27 | 28 | Not specified 29 | 30 | # Fitzwilliam College's shield 31 | 32 | Files: 33 | 34 | Fitzwilliam.pdf 35 | Fitzwilliam.eps 36 | FitzwilliamRed.pdf 37 | FitzwilliamRed.eps 38 | 39 | Source: 40 | 41 | Provided by the college 42 | 43 | Licence: 44 | 45 | Not specified 46 | 47 | 48 | 49 | # Queens' College's shield 50 | 51 | File: 52 | 53 | Queens.svg 54 | 55 | Derivative files: 56 | 57 | Queens.pdf 58 | Queens.eps 59 | 60 | Source: 61 | 62 | http://en.wikipedia.org/wiki/File:Queens%27_College_%28Cambridge%29_shield.svg 63 | 64 | Licence: 65 | 66 | Creative Commons Attribution-Share Alike 3.0 Unported 67 | 68 | 69 | 70 | # St. John's College's shield 71 | 72 | File: 73 | 74 | StJohns.png 75 | 76 | Derivative files: 77 | 78 | StJohns.eps 79 | 80 | Source: 81 | 82 | http://en.wikipedia.org/wiki/File:Johns_shield.png 83 | 84 | Licence: 85 | 86 | GNU Free Documentation License, Version 1.2 or any later version 87 | 88 | 89 | 90 | # Peterhouse's shield 91 | 92 | File: 93 | 94 | Peterhouse.svg 95 | 96 | Derivative files: 97 | 98 | Peterhouse.pdf (rsvg-convert -f pdf -o Peterhouse.pdf Peterhouse.svg) 99 | 100 | Source: 101 | 102 | https://en.wikipedia.org/wiki/File:Peterhouse_shield.svg 103 | 104 | Licence: 105 | 106 | GNU Free Documentation License, Version 1.2 or any later version or 107 | Creative Commons Attribution-Share Alike 3.0 Unported 108 | 109 | 110 | 111 | # Trinity College's shield 112 | 113 | File: 114 | 115 | Trinity.svg 116 | 117 | Derivative files: 118 | 119 | Trinity.eps 120 | Trinity.pdf 121 | 122 | Source: 123 | 124 | http://en.wikipedia.org/wiki/File:Trinity_College_(Cambridge)_shield.svg 125 | 126 | Licence: 127 | 128 | GNU Free Documentation License, Version 1.2 or any later version 129 | 130 | 131 | # Downing College's shield 132 | 133 | File: 134 | 135 | Downing.svg 136 | 137 | Derivative files: 138 | 139 | Downing.eps (rsvg-convert -f pdf -o Downing.pdf src/Downing.svg) 140 | Downing.pdf (rsvg-convert -f eps -o Downing.eps src/Downing.svg) 141 | 142 | Source: 143 | 144 | https://en.wikipedia.org/wiki/File:Downing_Crest.svg 145 | 146 | License: 147 | 148 | GNU Fre Documentation License, Version 1.2 or any later version or 149 | Creative Commons Attribution-Share Alike 3.0 Unported or 150 | Creative Commons Attribution 2.5 Generic 151 | -------------------------------------------------------------------------------- /Figs/CollegeShields/Peterhouse.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Peterhouse.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/Queens.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Queens.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/StJohns.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/StJohns.pdf -------------------------------------------------------------------------------- /Figs/CollegeShields/Trinity.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/CollegeShields/Trinity.pdf -------------------------------------------------------------------------------- /Figs/University_Crest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/University_Crest.pdf -------------------------------------------------------------------------------- /Figs/University_Crest_Long.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/University_Crest_Long.eps -------------------------------------------------------------------------------- /Figs/University_Crest_Long.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/Figs/University_Crest_Long.pdf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Krishna Kumar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /PhDThesisPSnPDF.cls: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | %% %% 3 | %% Class ``PhD Thesis PSnPDF'' %% 4 | %% %% 5 | %% A PhD thesis LaTeX template for Cambridge University Engineering Department%% 6 | %% %% 7 | %% Version: v2.4 %% 8 | %% Authors: Krishna Kumar %% 9 | %% License: MIT License (c) 2016-2018 Krishna Kumar %% 10 | %% GitHub Repo: https://github.com/kks32/phd-thesis-template/ %% 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | % ************************** Class Identification ****************************** 14 | \newcommand\fileversion{2.4} 15 | \newcommand\filedate{2018/04/12} 16 | \NeedsTeXFormat{LaTeX2e} 17 | \ProvidesClass{PhDThesisPSnPDF}[\filedate\space A PhD thesis class file 18 | by Krishna Kumar (v\fileversion)] 19 | \typeout{https://github.com/kks32/phd-thesis-template/} 20 | 21 | 22 | % ****************************************************************************** 23 | % **************************** Class Definition ******************************** 24 | % ****************************************************************************** 25 | 26 | % *********************** Define a Print/Online Version ************************ 27 | \newif\if@print\@printfalse 28 | \DeclareOption{print}{\@printtrue} 29 | 30 | % ****************************** Define index ********************************** 31 | \newif\ifPHD@index\PHD@indexfalse 32 | \DeclareOption{index}{\PHD@indextrue} 33 | 34 | % ******************************* Font Option ********************************** 35 | \newif\ifsetFont\setFontfalse % Font is not set 36 | 37 | \newif\ifPHD@times\PHD@timesfalse % Times with Math Support 38 | \DeclareOption{times}{ 39 | \ifsetFont 40 | \ClassWarning{PhDThesisPSnPDF}{Font selection conflict: A font package was 41 | already specified. Please check the document class options in case you 42 | have defined two fonts.} 43 | \else 44 | \PHD@timestrue 45 | \setFonttrue 46 | \fi 47 | } 48 | 49 | \newif\ifPHD@fourier\PHD@fourierfalse % Fourier with Math Support 50 | \DeclareOption{fourier}{ 51 | \ifsetFont 52 | \ClassWarning{PhDThesisPSnPDF}{Font selection conflict: A font package was 53 | aleady specified. Please check the document class options in case you 54 | have defined two fonts.} 55 | \else 56 | \PHD@fouriertrue 57 | \setFonttrue 58 | \fi 59 | } 60 | 61 | \newif\ifsetCustomFont\setCustomFontfalse % Custom Font with Math Support 62 | \DeclareOption{customfont}{ 63 | \ifsetFont 64 | \ClassWarning{PhDThesisPSnPDF}{Font selection conflict: A font package was 65 | aleady specified. Please check the document class options in case you 66 | have defined two fonts.} 67 | \else 68 | \setCustomFonttrue 69 | \setFonttrue 70 | \fi 71 | } 72 | 73 | % ******************************* Bibliography ********************************* 74 | \newif\ifsetBib\setBibfalse % Custom Bibliography = true/false 75 | \newif\ifsetBiBLaTeX\setBiBLaTeXfalse % BiBLaTeX = True / False 76 | 77 | \newif\ifPHD@biblatex\PHD@biblatexfalse % BiBLaTeX 78 | \DeclareOption{biblatex}{ 79 | \ifsetBib 80 | \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A 81 | bibliography style aleady specified. Please check the document class 82 | options in case you have defined two bibliography styles.} 83 | \else 84 | \PHD@biblatextrue 85 | \fi 86 | } 87 | 88 | \newif\ifPHD@authoryear\PHD@authoryearfalse % Author-Year citation 89 | \DeclareOption{authoryear}{ 90 | \ifsetBib 91 | \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A 92 | bibliography style aleady specified. Please check the document class 93 | options in case you have defined two bibliography styles.} 94 | \else 95 | \PHD@authoryeartrue 96 | \setBibtrue 97 | \fi 98 | } 99 | 100 | \newif\ifPHD@numbered\PHD@numberedfalse % Numbered citiation 101 | \DeclareOption{numbered}{ 102 | \ifsetBib 103 | \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A 104 | bibliography style aleady specified. Please check the document class 105 | options in case you have defined two bibliography styles.} 106 | \else 107 | \PHD@numberedtrue 108 | \setBibtrue 109 | \fi 110 | } 111 | 112 | \newif\ifuseCustomBib\useCustomBibfalse % Custom Bibliography 113 | \DeclareOption{custombib}{ 114 | \ifsetBib 115 | \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A 116 | bibliography style aleady specified. Please check the document class 117 | options in case you have defined two bibliography styles.} 118 | \else 119 | \ifPHD@biblatex 120 | \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A 121 | bibliography style aleady specified. Please check the document class 122 | options in case you have defined two bibliography styles.} 123 | \else 124 | \useCustomBibtrue 125 | \setBibtrue 126 | \fi 127 | \fi 128 | } 129 | 130 | % ************************* Header / Footer Styling **************************** 131 | \newif\ifPHD@textJustify\PHD@textJustifytrue % Set Justification true 132 | \DeclareOption{flushleft}{\PHD@textJustifyfalse} 133 | 134 | 135 | % ************************* Header / Footer Styling **************************** 136 | \newif\ifPHD@pageStyleI\PHD@pageStyleIfalse % Set Page StyleI 137 | \DeclareOption{PageStyleI}{\PHD@pageStyleItrue} 138 | 139 | \newif\ifPHD@pageStyleII\PHD@pageStyleIIfalse % Set Page StyleII 140 | \DeclareOption{PageStyleII}{\PHD@pageStyleIItrue} 141 | 142 | % ***************************** Custom Margins ******************************** 143 | \newif\ifsetCustomMargin\setCustomMarginfalse % Set Custom Margin 144 | \newif\ifsetMargin\setMarginfalse % Set Custom Margin 145 | \DeclareOption{custommargin}{\setCustomMargintrue} 146 | 147 | % **************************** Separate Abstract ****************************** 148 | \newif \ifdefineAbstract\defineAbstractfalse %To enable Separate abstract 149 | 150 | \newif\ifPHD@abstract\PHD@abstractfalse % Enable Separate Abstract 151 | \DeclareOption{abstract}{ 152 | \PHD@abstracttrue 153 | \ClassWarning{PhDThesisPSnPDF}{You have chosen an option that generates only 154 | the Title page and an abstract with PhD title and author name, if this was 155 | intentional, ignore this warning. Congratulations on submitting your thesis! 156 | If not, please remove the option `abstract' from the document class and 157 | recompile. Good luck with your writing!} 158 | \PassOptionsToClass{oneside}{book} 159 | } 160 | 161 | % ****************** Chapter Mode - To print only selected chapters ************ 162 | \newif \ifdefineChapter\defineChapterfalse %To enable Separate abstract 163 | 164 | \newif\ifPHD@chapter\PHD@chapterfalse % Enable Separate Abstract 165 | \DeclareOption{chapter}{ 166 | \PHD@chaptertrue 167 | \ClassWarning{PhDThesisPSnPDF}{You have chosen an option that generates only 168 | selected chapters with references, if this was intentional, ignore this 169 | warning. If not, please remove the option `chapter' from the document class 170 | and recompile. Good luck with your writing!} 171 | } 172 | 173 | % *************************** Pre-defined Options ****************************** 174 | % Font Size 175 | \DeclareOption{10pt}{ 176 | \ClassWarning{PhDThesisPSnPDF}{The University of Cambridge PhD thesis guidelines 177 | recommend using a minimum font size of 11pt (12pt is preferred) and 10pt for 178 | footnotes.} 179 | \PassOptionsToClass{10pt}{book}% 180 | } 181 | \DeclareOption{11pt}{\PassOptionsToClass{11pt}{book}}% 182 | \DeclareOption{12pt}{\PassOptionsToClass{12pt}{book}}% 183 | 184 | % Page Size 185 | \newcommand\PHD@papersize{a4paper} % Set Default as a4paper 186 | 187 | \DeclareOption{a4paper}{\renewcommand\PHD@papersize{a4paper}} 188 | \DeclareOption{a5paper}{\renewcommand\PHD@papersize{a5paper}} 189 | \DeclareOption{letterpaper}{ 190 | \ClassWarning{PhDThesisPSnPDF}{The University of Cambridge 191 | PhD thesis guidelines recommend using A4 or A5paper} 192 | \renewcommand\PHD@papersize{letterpaper} 193 | } 194 | 195 | \PassOptionsToClass{\PHD@papersize}{book}% 196 | 197 | % Column layout 198 | \newif\if@oneside\@onesidefalse 199 | \DeclareOption{oneside}{\PassOptionsToClass{\CurrentOption}{book}\@onesidetrue}% 200 | \DeclareOption{twoside}{\PassOptionsToClass{\CurrentOption}{book}}% 201 | 202 | % ****************************** Draft Option ********************************** 203 | \newif\ifsetDraft\setDraftfalse 204 | \newif\ifsetDraftClassic\setDraftClassicfalse 205 | % Draft Mode 206 | \DeclareOption{draftclassic}{\PassOptionsToClass{draft}{book} 207 | \setDraftClassictrue 208 | \ClassWarning{PhDThesisPSnPDF}{Draft is ON. Don't forget to turn it 209 | off in your final version. This is the classic version of draft. 210 | Use `draft' for enhanced mode, which adds watermark with timestamp, 211 | line numbering, and version number.}}% 212 | 213 | \DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{book} 214 | \setDrafttrue 215 | \ClassWarning{PhDThesisPSnPDF}{Draft is ON. Don't forget to turn it 216 | off in your final version. This enhanced `draft' mode adds watermark 217 | with timestamp, line numbering, and version number. Use `draftclassic' 218 | if you prefer the \cite{} lassic draft mode. To tweak options see 219 | `preamble.tex'}}% 220 | 221 | 222 | % Line Numbers 223 | \newif\ifPHD@lineno\PHD@linenotrue 224 | \DeclareOption{lineno}{\PHD@linenotrue} 225 | \DeclareOption{nolineno}{\PHD@linenofalse} 226 | 227 | 228 | % Generates Warning for unknown options 229 | \DeclareOption*{ 230 | \ClassWarning{PhDThesisPSnPDF}{Unknown or non-standard option 231 | '\CurrentOption'. I'll see if I can load it from the book class. If you get a 232 | warning unused global option(s): `\CurrentOption` then the option is not 233 | supported!} 234 | \PassOptionsToClass{\CurrentOption}{book} 235 | } 236 | 237 | % Process options and load class 238 | \ProcessOptions\relax% 239 | \LoadClass{book}% 240 | 241 | % ****************************************************************************** 242 | % ******************************** Packages ************************************ 243 | % ****************************************************************************** 244 | % ************************** Layout and Formatting ***************************** 245 | 246 | \RequirePackage{lscape} % Supports Landscape Layout 247 | \RequirePackage{setspace} % Define line spacing in paragraph 248 | \RequirePackage{calc} % calculate vertical spacing 249 | 250 | % ************************* Conditional Statements ***************************** 251 | \RequirePackage{ifthen} % Conditional statements 252 | \RequirePackage{ifpdf} % Check for pdfLaTeX 253 | \RequirePackage{ifxetex} % XeLaTeX 254 | 255 | % *********************** Table of Contents & Appendices *********************** 256 | % add Bibliography, List of figures and tables to contents 257 | \RequirePackage[nottoc]{tocbibind} 258 | % Add appendices 259 | \RequirePackage[title,titletoc]{appendix} 260 | 261 | \renewcommand{\contentsname}{Table of contents} 262 | \renewcommand{\listfigurename}{List of figures} 263 | \renewcommand{\listtablename}{List of tables} 264 | 265 | % Hides Contents appearing from TOC, but adds it to bookmarks 266 | \let\temptableofcontents\tableofcontents 267 | \renewcommand{\tableofcontents}{ 268 | \cleardoublepage 269 | \pdfbookmark[0]{\contentsname}{Contents} 270 | \temptableofcontents 271 | } 272 | 273 | % *************************** Graphics and Figures ***************************** 274 | \RequirePackage[usenames, dvipsnames]{color} 275 | \ifpdf 276 | % Convert eps figures to pdf 277 | \RequirePackage{epstopdf} 278 | \RequirePackage[pdftex]{graphicx} 279 | \DeclareGraphicsExtensions{.png, .jpg, .pdf} 280 | \pdfcompresslevel=9 281 | \graphicspath{{Figs/Raster/}{Figs/}} 282 | \else 283 | \RequirePackage{graphicx} 284 | \DeclareGraphicsExtensions{.eps, .ps} 285 | \graphicspath{{Figs/Vector/}{Figs/}} 286 | \fi 287 | 288 | 289 | 290 | % ******************************* Time Stamp *********************************** 291 | % Compute the timestamp based on an idea of 292 | % Tim Piessens \texttt{}. 293 | 294 | \RequirePackage{datetime} 295 | 296 | \newcount\PHD@hour \newcount\PHD@minute 297 | \PHD@hour=\time 298 | \divide \PHD@hour by 60 299 | \PHD@minute=\time 300 | \count@=\PHD@hour 301 | \multiply \count@ by -60 302 | \advance \PHD@minute by \count@ 303 | \newcommand{\PHD@daytime}{% 304 | \today\space--\space% 305 | \ifnum\PHD@hour=0 00\else\ifnum\PHD@hour<10 0\fi% 306 | \number\PHD@hour\fi:\ifnum\PHD@minute<10 0\fi\number\PHD@minute 307 | } 308 | 309 | % ******************************* Draft Mode *********************************** 310 | % Initializing Draft Text 311 | \newcommand\SetDraftText[1]{} 312 | % Initializing Draft Version 313 | \newcommand\SetDraftVersion[1]{} 314 | % Initializing Draft Content 315 | \newcommand\SetDraftWMPosition[1]{} 316 | % Initializing Draft Gray Scale 317 | \newcommand\SetDraftGrayScale[1]{} 318 | 319 | % Classic Draft Mode 320 | \ifsetDraftClassic 321 | % Disable figures in `draft'\ 322 | \setkeys{Gin}{draft=true} 323 | \fi 324 | 325 | % If Draft Mode is active 326 | \ifsetDraft 327 | % Disable figures in `draft'\ 328 | \setkeys{Gin}{draft=false} 329 | 330 | % Line numbering (can be switched off) 331 | \ifPHD@lineno 332 | \RequirePackage[switch,pagewise,mathlines]{lineno} 333 | \renewcommand{\frontmatter}{% 334 | \cleardoublepage 335 | \@mainmatterfalse 336 | \pagenumbering{roman} 337 | \nolinenumbers 338 | } 339 | \renewcommand{\mainmatter}{% 340 | \cleardoublepage 341 | \@mainmattertrue 342 | \pagenumbering{arabic} 343 | \linenumbers 344 | } 345 | \renewcommand{\backmatter}{% 346 | \if@openright 347 | \cleardoublepage 348 | \else 349 | \clearpage 350 | \fi 351 | \@mainmatterfalse 352 | \linenumbers 353 | } 354 | 355 | % Fix display lineno issue in mathmode 356 | \newcommand*\patchAmsMathEnvironmentForLineno[1]{% 357 | \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname 358 | \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname 359 | \renewenvironment{#1}% 360 | {\linenomath\csname old#1\endcsname}% 361 | {\csname oldend#1\endcsname\endlinenomath}% 362 | }% 363 | 364 | \newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{% 365 | \patchAmsMathEnvironmentForLineno{#1}% 366 | \patchAmsMathEnvironmentForLineno{#1*}% 367 | }% 368 | 369 | \AtBeginDocument{% 370 | \patchBothAmsMathEnvironmentsForLineno{equation}% 371 | \patchBothAmsMathEnvironmentsForLineno{align}% 372 | \patchBothAmsMathEnvironmentsForLineno{flalign}% 373 | \patchBothAmsMathEnvironmentsForLineno{alignat}% 374 | \patchBothAmsMathEnvironmentsForLineno{gather}% 375 | \patchBothAmsMathEnvironmentsForLineno{multline}% 376 | } 377 | 378 | \fi % End \ifPDH@lineno 379 | 380 | % Creates a Watermark Draft at the specified location. 381 | % The settings can be tweaked in the preamble 382 | 383 | % Draft text 384 | \newcommand\drafttext{Draft} 385 | \renewcommand\SetDraftText[1]{% 386 | \renewcommand\drafttext{#1} 387 | } 388 | 389 | % Draft Version 390 | \newcommand\draftVersion{v1.0} 391 | \renewcommand\SetDraftVersion[1]{% 392 | \renewcommand\draftVersion{#1} 393 | } 394 | 395 | % Draft Gray Scale 396 | \newcommand\draftGrayScale{0.75} 397 | \renewcommand\SetDraftGrayScale[1]{% 398 | \renewcommand\draftGrayScale{#1} 399 | } 400 | 401 | % Draft Content 402 | \newcommand\DraftContent{% 403 | \hspace*{\fill} 404 | \Large 405 | \textcolor[gray]{\draftGrayScale}{% 406 | {\drafttext}\space-\space{\draftVersion}\hspace{\stretch{1}}{\PHD@daytime} 407 | \hspace*{\fill} 408 | } 409 | } 410 | 411 | % Adding watermark in draft mode with time stamp 412 | \RequirePackage{everypage} 413 | \RequirePackage[absolute]{textpos} 414 | % Default values for draft watermark 415 | \newcommand\draftposition{top} 416 | \newcommand\draftnodeanchor{1in+\voffset-\topmargin} 417 | \AddEverypageHook{% 418 | \begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor) 419 | \DraftContent 420 | \end{textblock*} 421 | } 422 | 423 | % Conditional evaluation to position the draft water mark (top / bottom) 424 | \renewcommand\SetDraftWMPosition[1]{% 425 | \renewcommand\draftposition{#1} 426 | \ifthenelse{\equal{\draftposition}{bottom}} 427 | {\renewcommand\draftnodeanchor{\paperheight-\voffset}} %Bottom 428 | {\ifthenelse{\equal{\draftposition}{top}} 429 | {\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}} %Top 430 | {\ClassWarning{PDThesisPSnPDF}{Unrecognised draft position 431 | using default value of top} 432 | \renewcommand\draftnodeanchor{1in+\voffset-\topmargin}}} %Top 433 | 434 | \AddEverypageHook{% 435 | \begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor) 436 | \DraftContent 437 | \end{textblock*} 438 | } 439 | } 440 | 441 | % If NOT Draft 442 | \else 443 | 444 | \renewcommand\SetDraftText[1]{\ClassWarning{PhDThesisPSnPDF}{Draft is 445 | inactive, to use SetDraftText include `draft' in the document 446 | class options.}} 447 | % Draft Version 448 | \renewcommand\SetDraftVersion[1]{\ClassWarning{PhDThesisPSnPDF}{Draft is 449 | inactive, to use SetDraftVersion include `draft' in the document 450 | class options.}} 451 | % Draft Content 452 | \renewcommand\SetDraftWMPosition[1]{\ClassWarning{PhDThesisPSnPDF}{Draft 453 | is inactive, to use SetDraftWMPosition include `draft' in the document 454 | class options.}} 455 | 456 | \renewcommand\SetDraftGrayScale[1]{\ClassWarning{PhDThesisPSnPDF}{Draft is 457 | inactive, to use SetDraftWMPosition include `draft' in the document 458 | class options.}} 459 | \fi 460 | 461 | 462 | 463 | % ******************************* Bibliography ********************************* 464 | \ifPHD@authoryear 465 | \ifPHD@biblatex 466 | \RequirePackage[backend=biber, style=authoryear, citestyle=alphabetic, 467 | sorting=nty, natbib=true]{biblatex} 468 | \setBiBLaTeXtrue 469 | \else 470 | \RequirePackage[round, sort, numbers, authoryear]{natbib} %author year 471 | \fi 472 | \else 473 | \ifPHD@numbered 474 | \ifPHD@biblatex 475 | \RequirePackage[backend=biber, style=numeric-comp, 476 | citestyle=numeric, sorting=none, natbib=true]{biblatex} 477 | \setBiBLaTeXtrue 478 | \else 479 | \RequirePackage[numbers,compress]{natbib} % numbered citation 480 | \fi 481 | \else 482 | \ifuseCustomBib 483 | \AtBeginDocument{ 484 | \@ifpackageloaded{natbib}{}{ 485 | \@ifpackageloaded{biblatex}{}{ 486 | \ClassWarning{PhDThesisPSnPDF}{% 487 | You chose custom bibliography, but no corresponding package 488 | (biblatex/natbib) has been loaded. Please load the 489 | appropriate bibliography package in the preamble.} 490 | } 491 | } 492 | } 493 | \else % set default to numbered 494 | \ifPHD@biblatex 495 | \RequirePackage[backend=biber, style=numeric-comp, 496 | citestyle=numeric, sorting=none, natbib=true]{biblatex} 497 | \setBiBLaTeXfalse 498 | \else 499 | \RequirePackage[numbers,compress]{natbib} 500 | \fi % default 501 | \setBibfalse 502 | \fi % custombib 503 | \fi % numbered 504 | \fi % author year 505 | 506 | \ifsetBib 507 | \else 508 | \ClassWarning{PhDThesisPSnPDF}{No bibliography style was specified. 509 | Default numbered style is used. If you would like to use a 510 | different style, use `authoryear' or `numbered' in the options in 511 | documentclass or use `custombib` and define the natbib package or 512 | biblatex package with required style in the Preamble.tex file} 513 | \fi 514 | 515 | % ********************************** Fonts ********************************** 516 | \RequirePackage{textcomp} 517 | % Font Selection 518 | \ifPHD@times 519 | \ifxetex 520 | \else 521 | \RequirePackage{mathptmx} % times roman, including math (where possible) 522 | \fi 523 | \setFonttrue 524 | \message{PhDThesisPSnPDF: Using Times Roman font} 525 | \else 526 | \ifPHD@fourier 527 | \RequirePackage{fourier} % Fourier 528 | \setFonttrue 529 | \message{PhDThesisPSnPDF: Using Fourier font} 530 | \else 531 | \ifsetCustomFont 532 | \setFonttrue 533 | \message{PhDThesisPSnPDF: Using custom font} 534 | \else 535 | \setFontfalse 536 | \message{PhDThesisPSnPDF: No font is set} 537 | \fi % custom font 538 | \fi % Fourier font 539 | \fi % Times font 540 | 541 | % If Font is not set throw a warning. 542 | \ifsetFont 543 | \else 544 | \ClassWarning{PhDThesisPSnPDF}{Using default font Latin Modern. If you 545 | would like to use other pre-defined fonts use `times' (The Cambridge 546 | University PhD thesis guidelines recommend using Times font) or `fourier' 547 | or load a custom font in the preamble.tex file by specifying `customfont' 548 | in the class options} 549 | \RequirePackage{lmodern} 550 | \fi 551 | 552 | 553 | \ifxetex 554 | % XeLaTeX 555 | \usepackage{amsmath} 556 | \usepackage{fontspec} 557 | \usepackage[]{unicode-math} 558 | \setmainfont[ 559 | Extension = .otf, 560 | UprightFont = *-Regular, 561 | BoldFont = *-Bold, 562 | ItalicFont = *-Italic, 563 | BoldItalicFont = *-BoldItalic, 564 | ]{XITS} 565 | 566 | \setmathfont[ 567 | Extension = .otf, 568 | BoldFont = XITSMath-Bold, 569 | ]{XITSMath-Regular} 570 | 571 | \else 572 | % default: pdfLaTeX 573 | \RequirePackage[utf8]{inputenc} 574 | \RequirePackage[T1]{fontenc} 575 | 576 | % If building with PDFLaTeX, use microtype spacing adjustments 577 | \RequirePackage[final]{microtype} 578 | 579 | \input{glyphtounicode} 580 | \pdfglyphtounicode{f_f}{FB00} 581 | \pdfglyphtounicode{f_i}{FB01} 582 | \pdfglyphtounicode{f_l}{FB02} 583 | \pdfglyphtounicode{f_f_i}{FB03} 584 | \pdfglyphtounicode{f_f_l}{FB04} 585 | \pdfgentounicode=1 586 | 587 | \RequirePackage{amsfonts} 588 | \RequirePackage{amsmath} 589 | \RequirePackage{amssymb} 590 | \fi 591 | 592 | % Don't break enumeration (etc.) across pages in an ugly manner 593 | \clubpenalty=10000 594 | \widowpenalty=10000 595 | 596 | %******************************* Print / Online ******************************** 597 | % Defines a print / online version to define page-layout and hyperrefering 598 | 599 | % Moved below other usepackage definitions to fix PDFLaTeX footnote warning 600 | % Based on the suggestion by John Plaice 601 | 602 | \RequirePackage[unicode=true]{hyperref} 603 | 604 | \if@print 605 | % For Print version 606 | \hypersetup{ 607 | final=true, 608 | plainpages=false, 609 | pdfstartview=FitV, 610 | pdftoolbar=true, 611 | pdfmenubar=true, 612 | bookmarksopen=true, 613 | bookmarksnumbered=true, 614 | breaklinks=true, 615 | linktocpage, 616 | colorlinks=true, 617 | linkcolor=black, 618 | urlcolor=black, 619 | citecolor=black, 620 | anchorcolor=black 621 | } 622 | \ifsetCustomMargin 623 | % Margin to be define in preamble using geometry package 624 | \else 625 | \RequirePackage[paper=\PHD@papersize,hmarginratio=1:1, 626 | vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry} 627 | \fi 628 | 629 | \if@twoside 630 | \hypersetup{pdfpagelayout=TwoPageRight} 631 | \else 632 | \hypersetup{pdfpagelayout=OneColumn} 633 | \fi 634 | 635 | \else 636 | % For PDF Online version 637 | \hypersetup{ 638 | final=true, 639 | plainpages=false, 640 | pdfstartview=FitV, 641 | pdftoolbar=true, 642 | pdfmenubar=true, 643 | bookmarksopen=true, 644 | bookmarksnumbered=true, 645 | breaklinks=true, 646 | linktocpage, 647 | colorlinks=true, 648 | linkcolor=blue, 649 | urlcolor=blue, 650 | citecolor=blue, 651 | anchorcolor=green 652 | } 653 | 654 | \ifsetCustomMargin 655 | % Margin to be define in preamble using geometry package 656 | \else 657 | % No Margin staggering on Odd and Even side 658 | \RequirePackage[paper=\PHD@papersize,hmarginratio=1:1, 659 | vmarginratio=1:1,scale=0.75]{geometry} % dvips 660 | \fi 661 | \hypersetup{pdfpagelayout=OneColumn} 662 | \fi 663 | 664 | % ************************ URL Package and Definition ************************** 665 | \RequirePackage{url} 666 | % Redefining urlstyle to use smaller fontsize in References with URLs 667 | \newcommand{\url@leostyle}{% 668 | \@ifundefined{selectfont}{\renewcommand{\UrlFont}{\sffamily}} 669 | {\renewcommand{\UrlFont}{\normalsize}}} 670 | \urlstyle{leo} 671 | 672 | % option to split urls over multiple lines for latex >> DVIPS >> PDF option 673 | \ifpdf 674 | % PDFLaTeX does it automatically. 675 | \else 676 | % dvips 677 | \ifxetex 678 | \else % If not XeLaTeX 679 | \RequirePackage{breakurl} % to split the url over multiple lines 680 | \fi 681 | \fi 682 | 683 | % ****************************************************************************** 684 | % **************************** Pre-defined Settings **************************** 685 | % ****************************************************************************** 686 | 687 | % *************************** Setting PDF Meta-Data **************************** 688 | \ifpdf 689 | \AtBeginDocument{ 690 | \hypersetup{ 691 | pdftitle = {\@title}, 692 | pdfauthor = {\@author}, 693 | pdfsubject={\@subject}, 694 | pdfkeywords={\@keywords} 695 | } 696 | } 697 | \fi 698 | 699 | % ******************************** Line Spacing ******************************** 700 | % Set spacing as 1.5 line spacing for the PhD Thesis 701 | % In practice, fortunately, nobody knows really what “one-and-a-half spaced 702 | % type” means exactly (in terms of millimetres baseline distance). The following 703 | % LaTeX setting has routinely been considered perfectly acceptable: 704 | 705 | \renewcommand\baselinestretch{1.2} 706 | 707 | % ******************************** Justification ******************************* 708 | % Left aligned as per University identity guidelines 709 | \ifPHD@textJustify 710 | \message{PhDThesisPSnPDF: The University identity guidelines recommend using 711 | left aligned text. Please use `flushleft' in the documentclass option, if you 712 | wish to left align your text} 713 | \else 714 | \AtBeginDocument{ 715 | \raggedright 716 | } 717 | \fi 718 | 719 | 720 | % ************************** TOC and Hide Sections ***************************** 721 | \newcommand{\nocontentsline}[3]{} 722 | \newcommand{\tochide}[2]{ 723 | \bgroup\let 724 | \addcontentsline=\nocontentsline#1{#2} 725 | \egroup} 726 | % Removes pagenumber appearing from TOC 727 | \addtocontents{toc}{\protect\thispagestyle{empty}} 728 | 729 | 730 | % ***************************** Header Formatting ****************************** 731 | % Custom Header with Chapter Number, Page Number and Section Numbering 732 | 733 | \RequirePackage{fancyhdr} % Define custom header 734 | 735 | % Style 1: Sets Page Number at the Top and Chapter/Section Name on LE/RO 736 | \fancypagestyle{PageStyleI}{ 737 | \renewcommand{\chaptermark}[1]{\markboth{##1}{}} 738 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1\ }} 739 | \fancyhf{} 740 | \fancyhead[RO]{\nouppercase \rightmark\hspace{0.25em} | 741 | \hspace{0.25em} \bfseries{\thepage}} 742 | \fancyhead[LE]{ {\bfseries\thepage} \hspace{0.25em} | 743 | \hspace{0.25em} \nouppercase \leftmark} 744 | } 745 | 746 | % Style 2: Sets Page Number at the Bottom with Chapter/Section Name on LO/RE 747 | \fancypagestyle{PageStyleII}{ 748 | \renewcommand{\chaptermark}[1]{\markboth{##1}{}} 749 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1}} 750 | \fancyhf{} 751 | \fancyhead[RO]{\bfseries\nouppercase \rightmark} 752 | \fancyhead[LE]{\bfseries \nouppercase \leftmark} 753 | \fancyfoot[C]{\thepage} 754 | } 755 | 756 | 757 | % Set Fancy Header Command is defined to Load FancyHdr after Geometry is defined 758 | \newcommand{\setFancyHdr}{ 759 | 760 | \pagestyle{fancy} 761 | 762 | \ifPHD@pageStyleI 763 | % Style 1: Sets Page Number at the Top and Chapter/Section Name on LE/RO 764 | \pagestyle{PageStyleI} 765 | 766 | \else 767 | \ifPHD@pageStyleII 768 | 769 | % Style 2: Sets Page Number at the Bottom with Chapter/Section Name on LO/RE 770 | \pagestyle{PageStyleII} 771 | 772 | \else 773 | % Default Style: Sets Page Number at the Top (LE/RO) with Chapter/Section Name 774 | % on LO/RE and an empty footer 775 | \renewcommand{\chaptermark}[1]{\markboth {##1}{}} 776 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1}} 777 | \fancyhf{} 778 | \fancyhead[LO]{\nouppercase \rightmark} 779 | \fancyhead[LE,RO]{\bfseries\thepage} 780 | \fancyhead[RE]{\nouppercase \leftmark} 781 | \fi 782 | \fi 783 | } 784 | 785 | \setlength{\headheight}{14.5pt} 786 | %\renewcommand{\headrulewidth}{0.5pt} 787 | %\renewcommand{\footrulewidth}{0pt} 788 | \fancypagestyle{plain}{ 789 | \fancyhead{} 790 | \renewcommand{\headrulewidth}{0pt} 791 | } 792 | 793 | % If Margin has been set (default margin print/online version) 794 | \ifsetCustomMargin 795 | \AtBeginDocument{ 796 | \@ifpackageloaded{geometry}{}{\ClassWarning{PhDThesisPSnPDF}{% 797 | Custom margin is chosen, but geometry package is not loaded. Please load the 798 | `geometry' package in the preamble.}}} 799 | \else 800 | \setFancyHdr % Apply fancy header settings otherwise apply it in preamble 801 | \fi 802 | 803 | % **************** Clear Header Style on the Last Empty Odd pages ************** 804 | \renewcommand{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else% 805 | \hbox{}% 806 | \thispagestyle{empty} % Empty header styles 807 | \newpage% 808 | \if@twocolumn\hbox{}\newpage\fi\fi\fi} 809 | 810 | 811 | % ****************************************************************************** 812 | % **************************** Macro Definitions ******************************* 813 | % ****************************************************************************** 814 | % These macros are used to declare arguments needed for the 815 | % construction of the title page and other preamble. 816 | 817 | % Subtitle (optional) 818 | \newcommand{\@subtitle}{} 819 | \newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}} 820 | 821 | % The year and term the degree will be officially conferred 822 | \newcommand{\@degreedate}{\monthname[\the\month]\space\the\year} 823 | \newcommand{\degreedate}[1]{\renewcommand{\@degreedate}{#1}} 824 | 825 | % The full (unabbreviated) name of the degree 826 | \newcommand{\@degreetitle}{} 827 | \newcommand{\degreetitle}[1]{\renewcommand{\@degreetitle}{#1}} 828 | 829 | % The name of your department(eg. Engineering, Maths, Physics) 830 | \newcommand{\@dept}{} 831 | \newcommand{\dept}[1]{\renewcommand{\@dept}{#1}} 832 | 833 | % The name of your college (eg. King's) 834 | \newcommand{\@college}{} 835 | \newcommand{\college}[1]{\renewcommand{\@college}{#1}} 836 | 837 | % The name of your University 838 | \newcommand{\@university}{} 839 | \newcommand{\university}[1]{\renewcommand{\@university}{#1}} 840 | 841 | % Defining the crest 842 | \newcommand{\@crest}{} 843 | \newcommand{\crest}[1]{\renewcommand{\@crest}{#1}} 844 | 845 | % Defining the college crest 846 | \newif\ifPHD@collegeshield\PHD@collegeshieldfalse 847 | \newcommand{\@collegeshield}{} 848 | \newcommand{\collegeshield}[1]{\renewcommand{\@collegeshield}{#1}\PHD@collegeshieldtrue} 849 | 850 | % Supervisor 851 | \newif\ifPHD@supervisor\PHD@supervisorfalse 852 | \newcommand{\@supervisor}{} 853 | \newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}\PHD@supervisortrue} 854 | 855 | % Supervisor Title (Supervisor - Default, can be changed) 856 | \newcommand{\@supervisorrole}{Supervisor: } 857 | \newcommand{\supervisorrole}[1]{\renewcommand{\@supervisorrole}{#1}} 858 | 859 | % Supervisor width to align 860 | \newcommand{\@supervisorlinewidth}{0.35\textwidth} 861 | \newcommand{\supervisorlinewidth}[1]{\renewcommand{\@supervisorlinewidth}{#1}} 862 | 863 | % Advisor 864 | \newif\ifPHD@advisor\PHD@advisorfalse 865 | \newcommand{\@advisor}{} 866 | \newcommand{\advisor}[1]{\renewcommand{\@advisor}{#1}\PHD@advisortrue} 867 | 868 | % Advisor Title (Advisor - Default, can be changed) 869 | \newcommand{\@advisorrole}{Advisor: } 870 | \newcommand{\advisorrole}[1]{\renewcommand{\@advisorrole}{#1}} 871 | 872 | % Advisor width to align 873 | \newcommand{\@advisorlinewidth}{0.25\textwidth} 874 | \newcommand{\advisorlinewidth}[1]{\renewcommand{\@advisorlinewidth}{#1}} 875 | 876 | % Submission Text 877 | \newcommand{\submissiontext}{This dissertation is submitted for the degree of } 878 | 879 | % keywords (These keywords will appear in the PDF meta-information 880 | % called `pdfkeywords`.) 881 | \newcommand{\@keywords}{} 882 | \newcommand{\keywords}[1]{\renewcommand{\@keywords}{#1}} 883 | 884 | % subjectline (This subject will appear in the PDF meta-information 885 | % called `pdfsubject`.) 886 | \newcommand{\@subject}{} 887 | \newcommand{\subject}[1]{\renewcommand{\@subject}{#1}} 888 | 889 | % Declaration title text 890 | \newcommand{\@declarationtitle}{Declaration} 891 | 892 | % Acknowledgment title text 893 | \newcommand{\@acknowledgementstitle}{Acknowledgements} 894 | 895 | % Abstract title text 896 | \newcommand{\@abstracttitle}{Abstract} 897 | 898 | % Names for the nomenclature groups 899 | \newcommand{\@nomenclatureromans}{Roman Symbols} 900 | \newcommand{\@nomenclaturegreeks}{Greek Symbols} 901 | \newcommand{\@nomenclatureacronyms}{Acronyms / Abbreviations} 902 | \newcommand{\@nomenclaturesuperscripts}{Superscripts} 903 | \newcommand{\@nomenclaturesubscripts}{Subscripts} 904 | \newcommand{\@nomenclatureothers}{Other Symbols} 905 | 906 | 907 | % These macros define an environment for front matter that is always 908 | % single column even in a double-column document. 909 | \newenvironment{alwayssingle}{% 910 | \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn 911 | \else\newpage\fi} 912 | {\if@restonecol\twocolumn\else\newpage\fi} 913 | 914 | % Set single column even under two column layout 915 | \newcommand{\setsinglecolumn}{ 916 | \if@twocolumn 917 | \onecolumn 918 | \else 919 | \fi 920 | } 921 | 922 | 923 | % ****************************************************************************** 924 | % *************************** Front Matter Layout ****************************** 925 | % ****************************************************************************** 926 | 927 | % ******************************** Title Page ********************************** 928 | \renewcommand{\maketitle}{ 929 | 930 | % To compute the free vertical space in Title page 931 | \computeTitlePageSpacing 932 | 933 | \thispagestyle{empty} 934 | 935 | \begin{singlespace} 936 | \begin{center} 937 | 938 | % University Crest Long if college crest is defined 939 | \ifPHD@collegeshield% 940 | {\usebox{\PHD@crest}} 941 | \vspace{.15\PHD@titlepagespacing} 942 | \fi 943 | 944 | % Title 945 | {\usebox{\PHD@Title}} % subtitle is defined 946 | 947 | 948 | % Crest 949 | 950 | \ifPHD@collegeshield% 951 | \vspace{.15\PHD@titlepagespacing} 952 | {\usebox{\PHD@collegecrest}} 953 | \vspace{.1\PHD@titlepagespacing} 954 | \else 955 | \vspace{.25\PHD@titlepagespacing} 956 | {\usebox{\PHD@crest}} 957 | \vspace{.15\PHD@titlepagespacing} 958 | \fi 959 | 960 | 961 | 962 | % Author 963 | {\usebox{\PHD@author}} 964 | \vspace*{1em} 965 | 966 | % Supervisor 967 | \ifPHD@supervisor% 968 | {\usebox{\PHD@supervisor}} 969 | \vspace*{0.5em} 970 | \fi 971 | 972 | % Advisor 973 | \ifPHD@advisor% 974 | {\usebox{\PHD@advisor}} 975 | \vspace*{0.5em} 976 | \fi 977 | 978 | % Department and University 979 | {\usebox{\PHD@dept}} 980 | \vspace{.2\PHD@titlepagespacing} 981 | 982 | % Submission Text 983 | {\usebox{\PHD@submission}} 984 | 985 | % College and degree date 986 | \vfill 987 | {\usebox{\PHD@collegedate}} 988 | 989 | \end{center} 990 | 991 | \end{singlespace} 992 | } 993 | 994 | % ********************************* Dedication ********************************* 995 | % The dedication environment makes sure the dedication gets its 996 | % own page, centered 997 | 998 | \newenvironment{dedication} 999 | { 1000 | \cleardoublepage 1001 | \setsinglecolumn 1002 | \vspace*{0.2\textheight} 1003 | \thispagestyle{empty} 1004 | \centering 1005 | } 1006 | 1007 | 1008 | 1009 | % ******************************* Declaration ********************************** 1010 | % The declaration environment puts a large, bold, centered 1011 | % "Declaration" label at the top of the page. 1012 | 1013 | \newenvironment{declaration}{ 1014 | \cleardoublepage 1015 | \setsinglecolumn 1016 | \chapter*{\centering \Large \@declarationtitle} 1017 | \thispagestyle{empty} 1018 | }{ 1019 | \flushright 1020 | \@author{}\\ 1021 | \@degreedate{} 1022 | \vfill 1023 | } 1024 | 1025 | 1026 | 1027 | % ****************************** Acknowledgements ******************************** 1028 | % The acknowledgements environment puts a large, bold, centered 1029 | % "Acknowledgements" label at the top of the page. 1030 | 1031 | \newenvironment{acknowledgements}{ 1032 | \cleardoublepage 1033 | \setsinglecolumn 1034 | \chapter*{\centering \Large \@acknowledgementstitle} 1035 | \thispagestyle{empty} 1036 | } 1037 | 1038 | 1039 | 1040 | % ******************************* Nomenclature ********************************* 1041 | \RequirePackage[intoc]{nomencl} 1042 | \makenomenclature 1043 | \renewcommand{\nomgroup}[1]{% 1044 | \ifthenelse{\equal{#1}{A}}{\item[\textbf{\@nomenclatureromans}]}{% 1045 | \ifthenelse{\equal{#1}{G}}{\item[\textbf{\@nomenclaturegreeks}]}{% 1046 | \ifthenelse{\equal{#1}{Z}}{\item[\textbf{\@nomenclatureacronyms}]}{% 1047 | \ifthenelse{\equal{#1}{R}}{\item[\textbf{\@nomenclaturesuperscripts}]}{% 1048 | \ifthenelse{\equal{#1}{S}}{\item[\textbf{\@nomenclaturesubscripts}]}{% 1049 | \ifthenelse{\equal{#1}{X}}{\item[\textbf{\@nomenclatureothers}]} 1050 | {} 1051 | }% matches mathematical symbols > X 1052 | }% matches Subscripts > S 1053 | }% matches Superscripts > R 1054 | }% matches Abbreviations > Z 1055 | }% matches Greek Symbols > G 1056 | }% matches Roman Symbols > A 1057 | 1058 | % To add nomenclature in the header 1059 | \renewcommand{\nompreamble}{\markboth{\nomname}{\nomname}} 1060 | 1061 | % Add nomenclature to contents and print out nomenclature 1062 | \newcommand{\printnomencl}[1][]{ 1063 | \ifthenelse{\equal {#1}{}} 1064 | {\printnomenclature} 1065 | {\printnomenclature[#1]} 1066 | %\addcontentsline{toc}{chapter}{\nomname} 1067 | } 1068 | 1069 | 1070 | % ***************************** Create the index ******************************* 1071 | \ifPHD@index 1072 | \RequirePackage{makeidx} 1073 | \makeindex 1074 | \newcommand{\printthesisindex}{ 1075 | \cleardoublepage 1076 | \phantomsection 1077 | \printindex} 1078 | \else 1079 | \newcommand{\printthesisindex}{} 1080 | \fi 1081 | 1082 | % ***************************** Chapter Mode *********************************** 1083 | % The chapter mode allows user to only print particular chapters with references 1084 | % All other options are disabled by default 1085 | % To include only specific chapters without TOC, LOF, Title and Front Matter 1086 | % To send it to supervisior for changes 1087 | 1088 | \ifPHD@chapter 1089 | \defineChaptertrue 1090 | % Disable the table of contents, figures, tables, index and nomenclature 1091 | \renewcommand{\maketitle}{} 1092 | \renewcommand{\tableofcontents}{} 1093 | \renewcommand{\listoffigures}{} 1094 | \renewcommand{\listoftables}{} 1095 | \renewcommand{\printnomencl}{} 1096 | \renewcommand{\printthesisindex}{} 1097 | \else 1098 | \defineChapterfalse 1099 | \fi 1100 | 1101 | % ******************************** Abstract ************************************ 1102 | % The abstract environment puts a large, bold, centered "Abstract" label at 1103 | % the top of the page. Defines both abstract and separate abstract environment 1104 | 1105 | % To include only the Title and the abstract pages for submission to BoGS 1106 | \ifPHD@abstract 1107 | \defineAbstracttrue 1108 | % Disable the table of contents, figures, tables, index and nomenclature 1109 | \renewcommand{\tableofcontents}{} 1110 | \renewcommand{\listoffigures}{} 1111 | \renewcommand{\listoftables}{} 1112 | \renewcommand{\printnomencl}{} 1113 | \renewcommand{\printnomencl}[1][2]{} 1114 | \renewcommand{\printthesisindex}{} 1115 | \renewcommand{\bibname}{} 1116 | \renewcommand{\bibliography}[1]{\thispagestyle{empty}} 1117 | \else 1118 | \defineAbstractfalse 1119 | \fi 1120 | 1121 | 1122 | \newenvironment{abstract} { 1123 | \ifPHD@abstract 1124 | % Separate abstract as per Student Registry guidelines 1125 | \thispagestyle{empty} 1126 | \setsinglecolumn 1127 | \begin{center} 1128 | { \Large {\bfseries {\@title}} \par} 1129 | {{\large \vspace*{1em} \@author} \par} 1130 | \end{center} 1131 | \else 1132 | % Normal abstract in the thesis 1133 | \cleardoublepage 1134 | \setsinglecolumn 1135 | \chapter*{\centering \Large \@abstracttitle} 1136 | \thispagestyle{empty} 1137 | \fi 1138 | } 1139 | 1140 | 1141 | % ******************** To compute empty space in title page ******************* 1142 | % Boxes below are used to space different contents on the title page 1143 | % Based on https://github.com/cambridge/thesis 1144 | 1145 | \newcommand{\computeTitlePageSpacing}{ 1146 | 1147 | 1148 | % Title Box 1149 | \newsavebox{\PHD@Title} 1150 | \begin{lrbox}{\PHD@Title} 1151 | \begin{minipage}[c]{0.98\textwidth} 1152 | \centering \Huge \bfseries{\@title} 1153 | \ifthenelse{\equal{\@subtitle}{}}{ 1154 | % subtitle is not defined 1155 | }{ 1156 | \\ 1157 | \centering \Large {\@subtitle} 1158 | } % subtitle is defined 1159 | \end{minipage} 1160 | \end{lrbox} 1161 | 1162 | % University Crest Box 1163 | \newsavebox{\PHD@crest} 1164 | \begin{lrbox}{\PHD@crest} 1165 | {\@crest \par} 1166 | \end{lrbox} 1167 | 1168 | \newsavebox{\PHD@collegecrest} 1169 | \begin{lrbox}{\PHD@collegecrest} 1170 | \ifPHD@collegeshield% 1171 | {\@collegeshield} 1172 | \else 1173 | % College shield is undefined 1174 | \fi 1175 | \end{lrbox} 1176 | 1177 | % Author Box 1178 | \newsavebox{\PHD@author} 1179 | \begin{lrbox}{\PHD@author} 1180 | \begin{minipage}[c]{\textwidth} 1181 | \centering \Large \bfseries{\@author} 1182 | \vspace{0.5em} 1183 | \end{minipage} 1184 | \end{lrbox} 1185 | 1186 | % Supervisor Box 1187 | \newsavebox{\PHD@supervisor} 1188 | \begin{lrbox}{\PHD@supervisor} 1189 | \begin{minipage}[c]{\textwidth} 1190 | \ifthenelse{\equal{\@supervisor}{}}{ 1191 | % supervisor is not defined 1192 | }{ 1193 | \begin{center} 1194 | \makebox[\widthof{supervisorrole} + \@supervisorlinewidth][c]{ 1195 | \Large 1196 | \@supervisorrole \parbox[t]{\@supervisorlinewidth}{\@supervisor} 1197 | } 1198 | \end{center} 1199 | \vspace{0.5em} 1200 | } % supervisor is defined 1201 | \end{minipage} 1202 | \end{lrbox} 1203 | 1204 | % Advisor Box 1205 | \newsavebox{\PHD@advisor} 1206 | \begin{lrbox}{\PHD@advisor} 1207 | \begin{minipage}[c]{\textwidth} 1208 | \ifthenelse{\equal{\@advisor}{}}{ 1209 | % advisor is not defined 1210 | }{ 1211 | \begin{center} 1212 | \makebox[\widthof{advisorrole} + \@advisorlinewidth][c]{ 1213 | \Large 1214 | \@advisorrole \parbox[t]{\@advisorlinewidth}{\@advisor} 1215 | } 1216 | \end{center} 1217 | \vspace{0.5em} 1218 | } % advisor is defined 1219 | \end{minipage} 1220 | \end{lrbox} 1221 | 1222 | % Department Box 1223 | \newsavebox{\PHD@dept} 1224 | \begin{lrbox}{\PHD@dept} 1225 | \begin{minipage}[c]{\textwidth} 1226 | \centering {\large \@dept \par} 1227 | {\large \@university \par} 1228 | \end{minipage} 1229 | \end{lrbox} 1230 | 1231 | % Submission Box 1232 | \newsavebox{\PHD@submission} 1233 | \begin{lrbox}{\PHD@submission} 1234 | \begin{minipage}[c]{\textwidth} 1235 | \begin{center} 1236 | \large \submissiontext \par 1237 | \large \textit {\@degreetitle} \par 1238 | \end{center} 1239 | \end{minipage} 1240 | \end{lrbox} 1241 | 1242 | % College and Date Box 1243 | \newsavebox{\PHD@collegedate} 1244 | \begin{lrbox}{\PHD@collegedate} 1245 | \begin{minipage}[c]{\textwidth} 1246 | \large 1247 | \ifthenelse{\equal{\@college}{}}{ 1248 | % college is not defined 1249 | \begin{center} 1250 | \@degreedate 1251 | \end{center} 1252 | }{ 1253 | % college is defined 1254 | \begin{minipage}[b]{0.49\textwidth} 1255 | \flushleft\@college 1256 | \end{minipage} 1257 | \begin{minipage}[b]{0.49\textwidth} 1258 | \flushright \@degreedate 1259 | \end{minipage} 1260 | } % college is defined 1261 | \end{minipage} 1262 | \end{lrbox} 1263 | 1264 | % Now to compute the free vertical space 1265 | \newlength{\PHD@titlepagespacing} 1266 | \setlength{\PHD@titlepagespacing}{ \textheight % 1267 | - \totalheightof{\usebox{\PHD@Title}} 1268 | - \totalheightof{\usebox{\PHD@crest}} 1269 | - \totalheightof{\usebox{\PHD@collegecrest}} 1270 | - \totalheightof{\usebox{\PHD@author}} 1271 | - \totalheightof{\usebox{\PHD@supervisor}} 1272 | - \totalheightof{\usebox{\PHD@advisor}} 1273 | - \totalheightof{\usebox{\PHD@dept}} 1274 | - \totalheightof{\usebox{\PHD@submission}} 1275 | - \totalheightof{\usebox{\PHD@collegedate}} 1276 | } 1277 | } 1278 | 1279 | -------------------------------------------------------------------------------- /Preamble/preamble.tex: -------------------------------------------------------------------------------- 1 | % ****************************************************************************** 2 | % ****************************** Custom Margin ********************************* 3 | 4 | % Add `custommargin' in the document class options to use this section 5 | % Set {innerside margin / outerside margin / topmargin / bottom margin} and 6 | % other page dimensions 7 | \ifsetCustomMargin 8 | \RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry} 9 | \setFancyHdr % To apply fancy header after geometry package is loaded 10 | \fi 11 | 12 | % Add spaces between paragraphs 13 | %\setlength{\parskip}{0.5em} 14 | % Ragged bottom avoids extra whitespaces between paragraphs 15 | \raggedbottom 16 | % To remove the excess top spacing for enumeration, list and description 17 | %\usepackage{enumitem} 18 | %\setlist[enumerate,itemize,description]{topsep=0em} 19 | 20 | % ***************************************************************************** 21 | % ******************* Fonts (like different typewriter fonts etc.)************* 22 | 23 | % Add `customfont' in the document class option to use this section 24 | 25 | \ifsetCustomFont 26 | % Set your custom font here and use `customfont' in options. Leave empty to 27 | % load computer modern font (default LaTeX font). 28 | %\RequirePackage{helvet} 29 | 30 | % For use with XeLaTeX 31 | % \setmainfont[ 32 | % Path = ./libertine/opentype/, 33 | % Extension = .otf, 34 | % UprightFont = LinLibertine_R, 35 | % BoldFont = LinLibertine_RZ, % Linux Libertine O Regular Semibold 36 | % ItalicFont = LinLibertine_RI, 37 | % BoldItalicFont = LinLibertine_RZI, % Linux Libertine O Regular Semibold Italic 38 | % ] 39 | % {libertine} 40 | % % load font from system font 41 | % \newfontfamily\libertinesystemfont{Linux Libertine O} 42 | \fi 43 | 44 | % ***************************************************************************** 45 | % **************************** Custom Packages ******************************** 46 | 47 | % ************************* Algorithms and Pseudocode ************************** 48 | 49 | %\usepackage{algpseudocode} 50 | 51 | 52 | % ********************Captions and Hyperreferencing / URL ********************** 53 | 54 | % Captions: This makes captions of figures use a boldfaced small font. 55 | %\RequirePackage[small,bf]{caption} 56 | 57 | \RequirePackage[labelsep=space,tableposition=top]{caption} 58 | \renewcommand{\figurename}{Fig.} %to support older versions of captions.sty 59 | 60 | 61 | % *************************** Graphics and figures ***************************** 62 | 63 | %\usepackage{rotating} 64 | %\usepackage{wrapfig} 65 | 66 | % Uncomment the following two lines to force Latex to place the figure. 67 | % Use [H] when including graphics. Note 'H' instead of 'h' 68 | %\usepackage{float} 69 | %\restylefloat{figure} 70 | 71 | % Subcaption package is also available in the sty folder you can use that by 72 | % uncommenting the following line 73 | % This is for people stuck with older versions of texlive 74 | %\usepackage{sty/caption/subcaption} 75 | \usepackage{subcaption} 76 | 77 | % ********************************** Tables ************************************ 78 | \usepackage{booktabs} % For professional looking tables 79 | \usepackage{multirow} 80 | 81 | %\usepackage{multicol} 82 | %\usepackage{longtable} 83 | %\usepackage{tabularx} 84 | 85 | 86 | % *********************************** SI Units ********************************* 87 | \usepackage{siunitx} % use this package module for SI units 88 | 89 | 90 | % ******************************* Line Spacing ********************************* 91 | 92 | % Choose linespacing as appropriate. Default is one-half line spacing as per the 93 | % University guidelines 94 | 95 | % \doublespacing 96 | % \onehalfspacing 97 | % \singlespacing 98 | 99 | 100 | % ************************ Formatting / Footnote ******************************* 101 | 102 | % Don't break enumeration (etc.) across pages in an ugly manner (default 10000) 103 | %\clubpenalty=500 104 | %\widowpenalty=500 105 | 106 | %\usepackage[perpage]{footmisc} %Range of footnote options 107 | 108 | 109 | % ***************************************************************************** 110 | % *************************** Bibliography and References ******************** 111 | 112 | %\usepackage{cleveref} %Referencing without need to explicitly state fig /table 113 | 114 | % Add `custombib' in the document class option to use this section 115 | \ifuseCustomBib 116 | \RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib 117 | 118 | % If you would like to use biblatex for your reference management, as opposed to the default `natbibpackage` pass the option `custombib` in the document class. Comment out the previous line to make sure you don't load the natbib package. Uncomment the following lines and specify the location of references.bib file 119 | 120 | %\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex} 121 | %\addbibresource{References/references} %Location of references.bib only for biblatex, Do not omit the .bib extension from the filename. 122 | 123 | \fi 124 | 125 | % changes the default name `Bibliography` -> `References' 126 | \renewcommand{\bibname}{References} 127 | 128 | 129 | % ****************************************************************************** 130 | % ************************* User Defined Commands ****************************** 131 | % ****************************************************************************** 132 | 133 | % *********** To change the name of Table of Contents / LOF and LOT ************ 134 | 135 | %\renewcommand{\contentsname}{My Table of Contents} 136 | %\renewcommand{\listfigurename}{My List of Figures} 137 | %\renewcommand{\listtablename}{My List of Tables} 138 | 139 | 140 | % ********************** TOC depth and numbering depth ************************* 141 | 142 | \setcounter{secnumdepth}{2} 143 | \setcounter{tocdepth}{2} 144 | 145 | 146 | % ******************************* Nomenclature ********************************* 147 | 148 | % To change the name of the Nomenclature section, uncomment the following line 149 | 150 | %\renewcommand{\nomname}{Symbols} 151 | 152 | 153 | % ********************************* Appendix *********************************** 154 | 155 | % The default value of both \appendixtocname and \appendixpagename is `Appendices'. These names can all be changed via: 156 | 157 | %\renewcommand{\appendixtocname}{List of appendices} 158 | %\renewcommand{\appendixname}{Appndx} 159 | 160 | % *********************** Configure Draft Mode ********************************** 161 | 162 | % Uncomment to disable figures in `draft' 163 | %\setkeys{Gin}{draft=true} % set draft to false to enable figures in `draft' 164 | 165 | % These options are active only during the draft mode 166 | % Default text is "Draft" 167 | %\SetDraftText{DRAFT} 168 | 169 | % Default Watermark location is top. Location (top/bottom) 170 | %\SetDraftWMPosition{bottom} 171 | 172 | % Draft Version - default is v1.0 173 | %\SetDraftVersion{v1.1} 174 | 175 | % Draft Text grayscale value (should be between 0-black and 1-white) 176 | % Default value is 0.75 177 | %\SetDraftGrayScale{0.8} 178 | 179 | 180 | % ******************************** Todo Notes ********************************** 181 | %% Uncomment the following lines to have todonotes. 182 | 183 | %\ifsetDraft 184 | % \usepackage[colorinlistoftodos]{todonotes} 185 | % \newcommand{\mynote}[1]{\todo[author=kks32,size=\small,inline,color=green!40]{#1}} 186 | %\else 187 | % \newcommand{\mynote}[1]{} 188 | % \newcommand{\listoftodos}{} 189 | %\fi 190 | 191 | % Example todo: \mynote{Hey! I have a note} 192 | 193 | % ******************************** Highlighting Changes ********************************** 194 | %% Uncomment the following lines to be able to highlight text/modifications. 195 | %\ifsetDraft 196 | % \usepackage{color, soul} 197 | % \newcommand{\hlc}[2][yellow]{{\sethlcolor{#1} \hl{#2}}} 198 | % \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}} 199 | %\else 200 | % \newcommand{\hlc}[2]{} 201 | % \newcommand{\hlfix}[2]{} 202 | %\fi 203 | 204 | % Example highlight 1: \hlc{Text to be highlighted} 205 | % Example highlight 2: \hlc[green]{Text to be highlighted in green colour} 206 | % Example highlight 3: \hlfix{Original Text}{Fixed Text} 207 | 208 | % ***************************************************************************** 209 | % ******************* Better enumeration my MB************* 210 | \usepackage{enumitem} 211 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CUED PhD thesis template 2 | ======================== 3 | 4 | [![Join the chat at https://gitter.im/kks32/phd-thesis-template](https://badges.gitter.im/kks32/phd-thesis-template.svg)](https://gitter.im/kks32/phd-thesis-template?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 5 | > A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department. 6 | 7 | [![Build Status](https://api.travis-ci.org/kks32/phd-thesis-template.svg)](https://travis-ci.org/kks32/phd-thesis-template) 8 | [![License MIT](http://img.shields.io/badge/license-MIT-brightgreen.svg)](license.md) 9 | [![Version](http://img.shields.io/badge/version-2.2-brightgreen.svg)](https://github.com/kks32/phd-thesis-template/releases/latest) 10 | 11 | ## Author(s) 12 | * Krishna Kumar 13 | 14 | -------------------------------------------------------------------------------- 15 | ## Features 16 | 17 | * Conforms to the Student Registry PhD dissertation guidelines and CUED PhD guidelines 18 | 19 | * Supports LaTeX, XeLaTeX and LuaLaTeX 20 | 21 | * Adaptive Title Page: Title page adapts to title length 22 | 23 | * Title page with both College and University crests. 24 | 25 | * Print / On-line version: Different layout and hyper-referencing styles 26 | 27 | * Pre-defined and custom fonts (Times / Fourier / Latin Modern) with math support 28 | 29 | * Supports system fonts (XeLaTeX) 30 | 31 | * Pre-defined and custom bibliography style support (authoryear / numbered / custom) 32 | 33 | * Custom page styles: 3 Different Header / Footer styles 34 | 35 | * Pre-defined and custom margin size 36 | 37 | * A separate abstract with thesis title and author name, along with the titlepage can be generated by passing the argument `abstract` to the document class. 38 | 39 | * Option to generate only specific chapters and references without the frontmatter and title page. Useful for review and corrections. 40 | 41 | * Draft mode: Draft water mark, timestamp, version numbering and line numbering 42 | 43 | * Add supervisor and/or advisor to your PhD thesis or MPhil report 44 | 45 | * A LyX Template is now available at [https://github.com/kks32/PhDThesisLyX/](https://github.com/kks32/PhDThesisLyX/) 46 | 47 | -------------------------------------------------------------------------------- 48 | 49 | ## Building your thesis - XeLaTeX 50 | 51 | ### Using latexmk (Unix/Linux/Windows) 52 | 53 | This template supports `XeLaTeX` compilation chain. To generate PDF run 54 | 55 | latexmk -xelatex thesis.tex 56 | makeindex thesis.nlo -s nomencl.ist -o thesis.nls 57 | latexmk -xelatex -g thesis.tex 58 | 59 | ## Building your thesis - LuaLaTeX 60 | 61 | ### Using latexmk (Unix/Linux/Windows) 62 | 63 | This template supports `LuaLaTeX` compilation chain. To generate PDF run 64 | 65 | latexmk -pdflatex=lualatex -pdf thesis.tex 66 | 67 | 68 | ## Building your thesis - LaTeX / PDFLaTeX 69 | 70 | ### Using latexmk (Unix/Linux/Windows) 71 | 72 | This template supports `latexmk`. To generate DVI, PS and PDF run 73 | 74 | latexmk -dvi -ps -pdf thesis.tex 75 | 76 | 77 | 78 | ### Using the make file (Unix/Linux) 79 | 80 | The template supports PDF, DVI and PS formats. All three formats can be generated 81 | with the provided `Makefile`. 82 | 83 | To build the `PDF` version of your thesis, run: 84 | 85 | make 86 | 87 | 88 | This build procedure uses `pdflatex` with `bibtex` and will produce `thesis.pdf`. 89 | To use `pdflatex` with `biblatex`, you should run: 90 | 91 | make BIB_STRATEGY=biblatex 92 | 93 | To use `XeLaTeX`, you should run: 94 | 95 | make BUILD_STRATEGY=xelatex 96 | 97 | or with `biblatex` 98 | 99 | make BUILD_STRATEGY=xelatex BIB_STRATEGY=biblatex 100 | 101 | To use `LuaLaTeX`, you should run: 102 | 103 | make BUILD_STRATEGY=lualatex 104 | 105 | or with `biblatex` 106 | 107 | make BUILD_STRATEGY=lualatex BIB_STRATEGY=biblatex 108 | 109 | 110 | To produce `DVI` and `PS` versions of your document, you should run: 111 | 112 | 113 | make BUILD_STRATEGY=latex 114 | 115 | This will use the `latex` command to build the document and will produce 116 | `thesis.dvi`, `thesis.ps` and `thesis.pdf` documents. You will need psutils installed 117 | 118 | Clean unwanted files 119 | 120 | To clean unwanted clutter (all LaTeX auto-generated files), run: 121 | 122 | make clean 123 | 124 | __Note__: the `Makefile` itself is take from and maintained at 125 | [here](http://code.google.com/p/latex-makefile/). 126 | 127 | ### Shell script for PDFLaTeX (Unix/Linux) 128 | 129 | Usage: `sh ./compile-thesis.sh [OPTIONS] [filename]` 130 | 131 | [option] compile: Compiles the PhD Thesis 132 | 133 | [option] clean: removes temporary files - no filename required 134 | 135 | ### Using the batch file on Windows OS (PDFLaTeX) 136 | 137 | * Open command prompt and navigate to the directory with the tex file. Run: 138 | 139 | `compile-thesis-windows.bat`. 140 | 141 | * Alternatively, double click on `compile-thesis-windows.bat` 142 | 143 | 144 | ------------------------------------------------------------------------------- 145 | 146 | ## Usage details 147 | 148 | Thesis information such as title, author, year, degree, etc., and other meta-data can be modified in `thesis-info.tex` 149 | 150 | ### Class options 151 | 152 | The class file, `PhDThesisPSnPDF`, is based on the standard `book` class 153 | 154 | It supports the following custom options in the documentclass in thesis.tex: 155 | 156 | (Usage `\documentclass[a4paper,11pt,print]{PhDThesisPSnPDF}`) 157 | 158 | * `a4paper` (default as per the University guidelines) or `a5paper`: Paper size 159 | 160 | * `11pt` or `12pt`: The University of Cambridge guidelines recommend using a minimum font size of 11pt (12pt is preferred) and 10pt for footnotes. This template also supports `10pt`. 161 | 162 | * `oneside` or `twoside` (default): This is especially useful for printing double side (twoside) or single side. 163 | 164 | * `print`: Supports Print and Online Version with different page margins and hyperlink styles. 165 | Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles. 166 | Leaving the options field blank will activate Online version. 167 | 168 | * `custommargin`: You can alter the margin dimension for both print and online version by using the keyword `custommargin` in the options. Then you can define the dimensions of the margin in the `preamble.tex` file: 169 | 170 | \ifsetCustomMargin 171 | \RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry} 172 | \setFancyHdr 173 | \fi 174 | `\setFancyHdr` should be called when using custom margins for proper header/footer dimensions 175 | 176 | `\ifsetMargin` is deprecated, please use `\ifsetCustomMargin` instead. 177 | 178 | * `index`: Including this option builds the index, which is placed at the end of the thesis. 179 | 180 | Instructions on how to use the index can be found [here](http://en.wikibooks.org/wiki/LaTeX/Indexing#Using_makeidx). 181 | 182 | _Note_: the package `makeidx` is used to create the index. 183 | 184 | * `abstract`: This option enables only the thesis title page and the abstract with title and author to be printed. 185 | 186 | * `chapter`: This option enables only the specified chapter and it's references. Useful for review and corrections. 187 | 188 | * `draft`: The default draft mode supports some special features such as line numbers, images, and water mark with 189 | timestamp and custom text. Position of the text can be modified in `preamble.tex`. 190 | 191 | * `draftclassic`: This mode is similar to the default draft mode in the book class. Images are not loaded. 192 | 193 | * `lineno`: Enables pagewise line numbering on the outer edge. You can switch-off line numbering by specifying `nolineno` in the options. 194 | 195 | * `flushleft`: The University recommends using ragged right or flush left alignment for texts. The reason behind this is left justifying a text may exclude a certain readers. Dyslexic people find it hard to read justified text. You can enable `raggedright` option in the document class by passing `flushleft` argument. Default is flush left and right. 196 | 197 | ### Title page 198 | 199 | The front page (title page) resizes to fit your title length. You can modify the options in `thesis-info.tex`. 200 | 201 | * `\subtitle` (optional): Adds a subtitle to your thesis. 202 | 203 | * `\college` (optional): This option adds the name of your college on the bottom left. 204 | 205 | If `\college` is defined, the bottom of the title page will look like this: 206 | 207 | King's College 2014 208 | 209 | If `\college` is undefined or blank, the `degreedate` will be centered. 210 | 211 | 2014 212 | 213 | The template offers support to having both the college and university crests or just one of the crests. 214 | 215 | * `\collegeshield` (optional): Includes college crest in addition to the university crest. This reformats the front page layout. 216 | 217 | ### Abstract separate 218 | 219 | * A separate abstract with the title of the PhD and the candidate name has to be submitted to the Student Registry. This can be generated using `abstract` option in the document class. Ignore subsequent warnings about skipping sections (if any). 220 | 221 | * To generate the separate abstract and the title page, make sure the following commands are in the preamble section of `thesis.tex` file: 222 | 223 | \ifdefineAbstract 224 | \includeonly{Abstract/abstract} 225 | \fi 226 | 227 | ### Chapter mode 228 | 229 | * The chapter mode allows user to only print specific chapters along with references. By default, it excludes everything else in the front matter and appendices. This can done by using `chapter` option in the document class in `thesis.tex`. Ignore subsequent warnings about skipping sections (if any). 230 | 231 | * To generate the separate abstract and the title page, make sure the following commands are in the preamble section of `thesis.tex` file: 232 | 233 | \ifdefineChapter 234 | \includeonly{Chapter3/chapter3} 235 | \fi 236 | 237 | ### Draft 238 | 239 | `draft` adds a watermark `draft` text with timestamp and version number at the top or 240 | the bottom of the page. Pagewise line numbering is added on every page. `draft` settings can be tweaked in the `preamble.tex`. 241 | 242 | * Use `draftclassic` in the document class options to use the default book class draft mode. 243 | 244 | * To add figures in draft mode (default enabled), in the preamble set `\setkeys{Gin}{draft=false}`. `draft=true` disables figures 245 | 246 | * To change the watermark text 247 | \SetDraftText{DRAFT} 248 | 249 | * To change the position of the watermark text. Default watermark position is top. The location can be changed to (top / bottom) 250 | \SetDraftWMPosition{bottom} 251 | 252 | * To change the draft version. Default draft version is v1.0. 253 | \SetDraftVersion{v1.1} 254 | 255 | * Watermark grayscale value can be modified. Text grayscale value (should be between 0-black and 1-white). Default value is 0.75 256 | \SetDraftGrayScale{0.8} 257 | 258 | 259 | ### Choosing the fonts 260 | 261 | `PhDThesisPSnPDF` currently supports three fonts `Times`, `Fourier` and `Latin Modern (default)`. 262 | 263 | * `times`: (The University of Cambridge guidelines recommend using Times). Specifying times option in the document class will use `mathptpx` or `Times` font with Math Support. 264 | * `fourier`: fourier font with math support 265 | * `default (empty)`: When no font is specified, `Latin Modern` is used as the default font with Math Support. 266 | * `customfont`: Any custom font can be set in preamble by using `customfont` option in the document class. Then the custom font can be loaded in preamble.tex in the line: 267 | 268 | \ifsetCustomFont 269 | \RequirePackage{Your_Custom_Font} 270 | \fi 271 | 272 | ### Choosing the bibliography style 273 | 274 | `PhDThesisPSnPDF` currently supports two styles `authoryear` and `numbered (default)`. Citation style has to be set. You can also specify `custombib` style and customise the bibliography. 275 | 276 | * `authoryear`: For author-year citation eg., Krishna (2013) 277 | 278 | * `numbered`: (Default Option) For numbered and sorted citation e.g., [1,5,2] 279 | 280 | * `custombib`: Define your own bibliography style in the `preamble.tex` file. 281 | 282 | \RequirePackage[square, sort, numbers, authoryear]{natbib} 283 | 284 | * (Overview of Bibtex-Styles with preview)[http://nodonn.tipido.net/bibstyle.php?] 285 | 286 | * If you would like to use biblatex instead of natbib. Pass the option `custombib` in the documentclass. In the `preamble.tex` file, edit the custombib section. Make sure you don't load the natbib package and you can specify the layout of your references in `thesis.tex` in the reference section. If you are using `biber` as backend, run `pdflatex thesis.tex >> biber thesis >> pdflatex thesis.tex >> biber thesis >> pdflatex thesis.tex`. If you are using the default natbib package, don't worry about this. 287 | 288 | ### Choosing the page style 289 | 290 | `PhDThesisPSnPDF` defines 3 different page styles (header and footer). The following definition is for `twoside` layout. To choose a page style, include it in the `documentclass` options: `\documentclass[PageStyleI]{PhDThesisPSnPDF}`. Alternatively, page style can be changed by adding `\pagestyle{PageStyleI}` or `\pagestyle{PageStyleII}` in `thesis.tex`. Note: Using `\pagestyle` command will override `documentclass` options when used globally. 291 | 292 | * `default (leave empty)`: For Page Numbers in Header (Left Even, Right Odd) and Chapter Name in Header (Right Even) and Section #. Section Name (Left Odd). Blank Footer. 293 | 294 | Header (Even) : 4 Introduction 295 | 296 | Header (Odd) : 1.2 Section Name 5 297 | 298 | Footer : Empty 299 | 300 | * `PageStyleI`: For Page Numbers in Header (Left Even, Right Odd) and Chapter Name next to the Page Number on Even Side (Left Even). Section Number and Section Name and Page Number in Header on Odd Side (Right Odd). Footer is empty. Layout: 301 | 302 | Header (Even) : 4 | Introduction 303 | 304 | Header (Odd) : 1.2 Section Name | 5 305 | 306 | Footer : Empty 307 | 308 | * `PageStyleII`: Chapter Name on Even Side (Left Even) in Header. Section Number and Section Name in Header on Odd Side (Right Odd). Page numbering in footer. Layout: 309 | 310 | Header (Even) : Introduction 311 | 312 | Header (Odd) : 1.2 Section Name 313 | 314 | Footer[centered]: 3 315 | 316 | ### Changing the visual style of chapter headings 317 | 318 | The visual style of chapter headings can be modified using the `titlesec` package. Edit the following lines in the `preamble.tex` file. 319 | 320 | \RequirePackage{titlesec} 321 | \newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large} 322 | {\Large\filleft{\chaptertitlename} \Huge\thechapter} 323 | {1ex}{} 324 | [\vspace{1ex}\titlerule]} 325 | \newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge} 326 | {\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex} 327 | {\titlerule\vspace{1ex}\filright} 328 | [\vspace{1ex}\titlerule]} 329 | \newcommand{\PostContentTitleFormat}{\PreContentTitleFormat} 330 | \PreContentTitleFormat 331 | 332 | ### Custom settings 333 | 334 | * The depth for the table of contents can be set using: 335 | 336 | \setcounter{secnumdepth}{3} 337 | \setcounter{tocdepth}{3} 338 | A depth of [3] indicates to a level of `\subsubsection` or #.#.#.#. Default set as 2. 339 | 340 | * To hide sections from appearing in TOC use: `\tochide\section{Section name}` in your TeX files 341 | 342 | * Define custom caption style for figure and table caption in `preamble.tex` using: 343 | 344 | \RequirePackage[small,bf,figurename=Fig.,labelsep=space,tableposition=top]{caption} 345 | 346 | * Uncomment the following lines in `preamble.tex` to force a figure to be displayed in a particular location. Use `H` when including graphics. Note `H` instead of `h`. 347 | 348 | \usepackage{float} 349 | \restylefloat{figure} 350 | 351 | * Bibliography with Author-Year Citation in `preamble.tex`: 352 | 353 | \RequirePackage[round, sort, numbers, authoryear]{natbib} 354 | 355 | * Line spacing for the entire document can be specified in `preamble.tex`. Uncomment the line spacing you prefer. e.g., 356 | \onehalfspacing 357 | 358 | ### Nomenclature definition 359 | 360 | * To use nomenclature in your chapters: 361 | 362 | \nomenclature[g-pi]{$\pi$}{ $\simeq 3.14\ldots$} 363 | 364 | The sort keys have prefix. In this case a prefix of `g` is used to denote Greek Symbols, followed by `-pi` or `-sort_key`. Use a `-` to separate sort key from the prefixes. The standard prefixes defined in this class are: 365 | 366 | * `A` or `a`: Roman Symbols 367 | 368 | * `G` or `g`: Greek Symbols 369 | 370 | * `Z` or `z`: Acronyms/Abbreviations 371 | 372 | * `R` or `r`: Superscripts 373 | 374 | * `S` or `s`: Subscripts 375 | 376 | * `X` or `x`: Other Symbols 377 | 378 | * You can change the Title of Nomenclature to Notations or Symbols in the `preamble.tex` using: 379 | 380 | \renewcommand\nomname{Symbols} 381 | 382 | TexStudio's default compile option doesn't include `nomenclature`, to compile your document with the nomenclature, do the following: 383 | 384 | Options >> Configure TexStudio >> Build >> User Commands >> add user command 385 | In `add user command` type `makenomeclature:makenomenclature` on the left pane and `makeindex %.nlo -s nomencl.ist -o %.nls` on the execution side. Now you can run the user defined command `makenomenclature` from `Tools >> User >> makenomenclature`. 386 | 387 | Alternatively, you can use the `compile-thesis-windows.bat` file or run `make` on Unix / Linux / MacOS 388 | 389 | ## To-do Notes 390 | 391 | To include custom to-do notes in your pdf document use `\mynote{Hey! I have a note}` anywhere in your chapters. To activate this feature, you need to uncomment the following lines in `preamble.tex`. To-do notes will be available only in the `draft` or `draftclassic` and not in the final thesis. 392 | 393 | \ifsetDraft 394 | \usepackage[colorinlistoftodos]{todonotes} 395 | \newcommand{\mynote}[1] 396 | {\todo[author=kks32,size=\small,inline,color=green!40]{#1}} 397 | \else 398 | \newcommand{\mynote}[1]{} 399 | \newcommand{\listoftodos}{} 400 | \fi 401 | 402 | ## Git hooks 403 | 404 | You rarely want to commit changes to your TeX files which are not reflected in the PDF included in the repo. 405 | You can automate this process, among other things, with a git hook. 406 | Install the hook with `make hooks` (or see how to do it in `./hooks/install.sh`). 407 | Now every time you commit, if any files affecting your build have changed in this commit 408 | and those changes are more recent than the last modification of `thesis.pdf`, 409 | the default `make` target will be run and changes to `thesis.pdf` will be `git add`ed. 410 | 411 | Currently, changes to any tex/pdf/eps/png/cls files are picked up. 412 | This can be changed in `./hooks/pre-commit`. 413 | 414 | Skip the hook with `git commit --no-verify`. 415 | 416 | `bash`-only. 417 | 418 | ## General guidelines 419 | [Why is it important to follow good practices and not get killed by a Velociraptor ;)](http://www.xkcd.com/292/) 420 | 421 | * To restrict the length of the figure caption in List of figures use a \[short-title\] and {longtitle} for the caption or the section: 422 | 423 | `\caption[Caption that you want to appear in TOC]{Actual caption of the figure}` 424 | `\section[short]{title}` 425 | 426 | * To exclude sections from being numbered and disable it from appearing in the Table of Contents use \section*{Section_Name} or \chapter*{Chapter_Name} 427 | 428 | * To only exclude it from being listed in the Table of Contents encapsulate the section command inside the `\tochide` command. `\tochide{\section{Section_Name}}` the section will not appear in the Table of Contents, but the section will be numbered. 429 | 430 | * When including figures in your tex file, it's a good practice to size your picture depending on the page size, instead of using absolute values. In the following example `0.75\textwidth` refers to picture width being set to 75% of the text width. 431 | 432 | \includegraphics[width=0.75\textwidth]{minion} 433 | 434 | * Use a `-` to separate sort key from the prefixes, eg., `g-pi` denotes the Greek symbol `pi`. 435 | 436 | ------------------------------------------------------------------------------- 437 | 438 | ## Frequently Asked Questions 439 | 440 | #### _Q1_: Where can I find the thesis formatting guidelines this class is based on? 441 | 442 | [https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html) 443 | 444 | 445 | #### _Q2_: Where can I find newer versions of the University of Cambridge crest/logos? 446 | 447 | The university updates its crest every now and then. You can find up-to-date 448 | logos on [this page](http://www.cam.ac.uk/brand-resources/about-the-logo/logo-downloads) 449 | (subject to change without notice). 450 | 451 | Download and exchange the new logos with `University_Crest.eps` and/or `University_Crest.pdf`. I'll try to keep the crest up to date. 452 | 453 | #### _Q3_: Where can I find the guidelines to submit my thesis and requirements? 454 | 455 | [Preparing to submit:](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/preparing.html) 456 | 457 | [Formatting styles:](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html) 458 | 459 | [Submitting the dissertation](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/submitting.html) 460 | 461 | #### _Q4_: How can I count the number of words in my thesis? 462 | 463 | You can run the following command (Linux/Unix): 464 | `ps2ascii thesis.pdf | wc -w` (eg., result 2713 words) 465 | 466 | or 467 | `pdftotext thesis.pdf | wc thesis.txt -w` (eg., result 2690 words) 468 | 469 | or 470 | `texcount -inc *.tex` (eg., result 2341 words) 471 | 472 | #### _Q5_: How do I use a system font (libertine)? 473 | 474 | To use a system font (open type) font with XeLaTeX, please select `customfont` option in the `documentclass` in `thesis.tex`. Add the path and font name to the custom font definition in `preamble.tex` 475 | 476 | \ifsetCustomFont 477 | \setmainfont[ 478 | Path = ./libertine/opentype/, 479 | Extension = .otf, 480 | UprightFont = LinLibertine_R, 481 | BoldFont = LinLibertine_RZ, % Regular Semibold 482 | ItalicFont = LinLibertine_RI, 483 | BoldItalicFont = LinLibertine_RZI, % Regular Semibold Italic 484 | ] {libertine} 485 | \newfontfamily\libertinesystemfont{Linux Libertine O} 486 | \fi 487 | 488 | Please use XeLaTeX tool chain with LaTeXmk. 489 | 490 | #### _Q6_: I found a bug in the template. Where do I report bugs? 491 | 492 | You can report issues at 493 | [our GitHub repository](https://github.com/kks32/phd-thesis-template). 494 | 495 | You can also mail 496 | [the developer](https://github.com/kks32/phd-thesis-template/graphs/contributors) directly or contact [Tim Love, CUED](mailto:tpl@eng.cam.ac.uk) 497 | 498 | 499 | -------------------------------------------------------------------------------- 500 | ## Troubleshooting warnings 501 | 502 | #### _W1_:I get the package Fancyhdr Warning: \fancyhead's `E` option without twoside option is useless on input line \# or \#. What should I do? 503 | 504 | Nothing. The warning is because the twoside option is also defined in the class, although only the oneside option is currently used. 505 | 506 | #### _W2_: I get the Class PhDThesisPSnPDF Warning: Unknown or non-standard option 'something'. Will see if I can load it from the book class. If you get a warning unused global option(s): `something` then the option is not supported! on input line \#. 507 | 508 | You are either trying to use a undefined option or a non-standard option which is in the book class but not defined in the PhD Thesis Template. If it can be used it will be loaded and you will get no further warnings. If not, the option you chose is unavailable. 509 | 510 | 511 | #### _W3_: I get LaTeX Warning: Unused global option(s):[something]. 512 | 513 | You are trying to load an option that is not supported in the PhDThesisClass and the Book Class. Are you sure you are using the right option? Check your spelling! 514 | 515 | #### _W4_: I get I'm skipping whatever remains of this command line \# of file thesis.aux \@input{Chapter1/chapter1.aux} 516 | 517 | If you are generating a separate abstract for your thesis submission, ignore this warning and good luck with your submission. If you are compiling your thesis and see this warning, please remove the option `abstract` from the document class. 518 | 519 | #### _W5_: I get blank pages between chapters 520 | 521 | This is normal for a book class. Usually, a new chapter in a book always starts on the right hand side, which is why you see a blank page. You can remove the extra blank page by passing `openany` option to the documentclass. This works for double sided printing. However, if you are printing on a single side, please pass `oneside` option to the document class. 522 | 523 | #### _W6_: My references aren't listed in the ordered in which I cite them 524 | 525 | This is controlled by the bibliography style. Please use `\bibliographystyle{unsrt}` in `thesis.tex` instead of `apalike`. This applicable only for numerically sorted references. 526 | 527 | -------------------------------------------------------------------------------- 528 | 529 | ## Known issue(s) / Bugs / Feature requests 530 | 531 | * Hyperlinks doesn't seem to be working in Post-Script file, however works on DVI and PDF (which is produced from the PS file), possibly viewer limitation than a code bug. 532 | 533 | * On older versions of dvips (version 5.97 or below), if your page margins do not appear properly in your PDF, when compiling through DVI >> PS >> PDF, please ensure that you have set a4paper or a5paper in the document class. If you are still having issues you can run: 534 | 535 | ps2pdf -sPAPERSIZE=a4 thesis.ps thesis.pdf 536 | 537 | This issue occurs only when the papersize is not specified in the document class and you are compiling DVI >> PS >> PDF using an older version (5.97 or below) of dvips. 538 | 539 | * Open issues can be tracked at [https://github.com/kks32/phd-thesis-template/issues](https://github.com/kks32/phd-thesis-template/issues). If you would like a new feature to be added to the template, please create an issue and label it as an enhancement. 540 | * Please [fork me on github](https://github.com/kks32/phd-thesis-template/fork) and create a pull request, if you would like to contribute to the repo. 541 | 542 | 543 | ## ChangeLog 544 | 545 | The history of releases can be viewed at [ChangeLog](ChangeLog.md) 546 | 547 | 548 | -------------------------------------------------------------------------------- 549 | 550 | ## Inspirations/Based on 551 | 552 | * Cambridge Computer Laboratory PhD Thesis Template [https://github.com/cambridge/thesis](https://github.com/cambridge/thesis) 553 | 554 | * CUED Version 1.1 Template by H. Banderi 555 | 556 | ## Acknowlegments 557 | 558 | * Alex Ridge - original idea, code concepts & testing 559 | 560 | * Steven Kaneti - code concepts 561 | 562 | * Tina Schwamb - testing and bug reports 563 | 564 | * John Plaice - Bug fixes 565 | -------------------------------------------------------------------------------- /References/references.bib: -------------------------------------------------------------------------------- 1 | % ------------------------------------------------------------------------ 2 | % SAMPLE BIBLIOGRAPHY FILE 3 | % ------------------------------------------------------------------------ 4 | @misc{cve-2008-1368, 5 | key = {CVE-2008-1368}, 6 | title = {Publication quality tables in \LaTeX*}, 7 | howpublished = {}, 8 | institution = {NIST}, 9 | day = 17, 10 | month = {March}, 11 | year = 2008, 12 | note = {[online] \url{http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-1368}}, 13 | url = {http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-1368} 14 | } 15 | 16 | @MISC{prime-number-theorem, 17 | author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin", 18 | note = "A strong form of the prime number theorem, 19th century" } 19 | 20 | % ------------------------------------------------------------------------ 21 | 22 | @BOOK{texbook, 23 | author = "Donald E. Knuth", 24 | title= "The {{\TeX}book}", 25 | publisher = "Addison-Wesley", 26 | year = 1984 } 27 | 28 | @BOOK{latex, 29 | author = "Leslie Lamport", 30 | title = "{\LaTeX:} {A} Document Preparation System", 31 | publisher = "Addison-Wesley", 32 | year = 1986 } 33 | 34 | % ------------------------------------------------------------------------ 35 | @article{Ancey1996, 36 | author = {Ancey, Christophe and Coussot, Philippe and Evesque, Pierre}, 37 | journal = {Mechanics of Cohesive-frictional Materials}, 38 | number = {4}, 39 | pages = {385--403}, 40 | title = {Examination of the possibility of a fluid-mechanics treatment of dense granular flows}, 41 | url = {http://doi.wiley.com/10.1002/(SICI)1099-1484(199610)1:4<385::AID-CFM20>3.0.CO;2-0}, 42 | volume = {1}, 43 | year = {1996} 44 | } 45 | 46 | @BOOK{RR73, 47 | author={H. Radjavi and P. Rosenthal}, 48 | title={Invariant {Subspaces}}, 49 | publisher={Springer-Verlag}, 50 | address={New York}, 51 | year={1973}, 52 | } 53 | 54 | @BOOK{Aup91, 55 | author={B. Aupetit}, 56 | title={A {Primer} on {Spectral} {Theory}}, 57 | publisher={Springer-Verlag}, 58 | address={New York}, 59 | year={1991}, 60 | } 61 | 62 | @BOOK{Dou72, 63 | author={R. G. Douglas}, 64 | title={Banach {Algebra} {Techniques} in {Operator} {Theory}}, 65 | publisher={Academic Press}, 66 | address={New York}, 67 | year={1972}, 68 | } 69 | 70 | @BOOK{Hal82, 71 | author={P. R. Halmos}, 72 | title={A {Hilbert} {Space} {Problem} {Book}}, 73 | edition={Second}, 74 | publisher={Springer-Verlag}, 75 | address={New York}, 76 | year={1982}, 77 | } 78 | 79 | @BOOK{Rud73, 80 | author={W. Rudin}, 81 | title={Functional {Analysis}}, 82 | publisher={McGraw-Hill}, 83 | address={New York}, 84 | year={1973}, 85 | } 86 | 87 | @BOOK{Con90, 88 | author={J. B. Conway}, 89 | title={A {Course} in {Functional} {Analysis}}, 90 | edition={Second}, 91 | publisher={Springer-Verlag}, 92 | address={New York}, 93 | year={1990}, 94 | } 95 | 96 | @BOOK{Con78, 97 | author={J. B. Conway}, 98 | title={Functions of {One} {Complex} {Variable}}, 99 | publisher={Springer-Verlag}, 100 | address={New York}, 101 | year={1978}, 102 | } 103 | 104 | @BOOK{KR83, 105 | author={R. V. Kadison and J. R. Ringrose}, 106 | title={Fundamentals of the {Theory} of {Operator} {Algebras}, 107 | {Part} {I}}, 108 | publisher={Academic Press}, 109 | address={New York}, 110 | year={1983}, 111 | } 112 | 113 | @BOOK{KR86, 114 | author={R. V. Kadison and J. R. Ringrose}, 115 | title={Fundamentals of the {Theory} of {Operator} {Algebras}, 116 | {Part} {II}}, 117 | publisher={Academic Press}, 118 | address={New York}, 119 | year={1986}, 120 | } 121 | 122 | @INBOOK{SFPT, 123 | author={N. Dunford and J. T. Schwartz}, 124 | title={Linear {Operators}, 125 | {Part} {I}: {General} {Theory}}, 126 | pages={456}, 127 | publisher={Interscience}, 128 | address={New York}, 129 | year={1957}, 130 | } 131 | 132 | @BOOK{DS57, 133 | author={N. Dunford and J. T. Schwartz}, 134 | title={Linear {Operators}, 135 | {Part} {I}: {General} {Theory}}, 136 | publisher={Interscience}, 137 | address={New York}, 138 | year={1957}, 139 | } 140 | 141 | @BOOK{Gan59, 142 | author={F. R. Gantmacher}, 143 | title={Applications of the {Theory} of {Matrices}}, 144 | publisher={Interscience}, 145 | address={New York}, 146 | year={1959}, 147 | } 148 | 149 | @BOOK{Pau86, 150 | author={Vern I. Paulsen}, 151 | title={Completely bounded maps and dilations}, 152 | series={Pitman Research Notes in Mathematics Series}, 153 | volume={146}, 154 | publisher={Longman Scientific \& Technical}, 155 | address={Harlow UK}, 156 | year={1986}, 157 | } 158 | 159 | @BOOK{Dav88, 160 | author={Kenneth R. Davidson}, 161 | title={Nest algebras}, 162 | series={Pitman Research Notes in Mathematics Series}, 163 | volume={191}, 164 | publisher={Longman Scientific \& Technical}, 165 | address={Harlow UK}, 166 | year={1988}, 167 | } 168 | 169 | @BOOK{Spi65, 170 | author={Michael Spivak}, 171 | title={Calculus on {Manifolds}}, 172 | publisher={The Benjamin/Cummings Publishing Company}, 173 | address={New York}, 174 | year={1965}, 175 | } 176 | 177 | @BOOK{Dev68, 178 | author={Allen Devinaz}, 179 | title={Advanced {Calculus}}, 180 | publisher={Holt, Rinehart and Winston}, 181 | address={New York}, 182 | year={1968}, 183 | } 184 | 185 | @BOOK{Gam90, 186 | editor={R. V. Gamkerlidze}, 187 | title={Analysis {I}{I}: {Convex} {Analysis} and 188 | {Approximation} {Theory}}, 189 | series={Encyclopaedia of Mathematical Sciences}, 190 | volume={14}, 191 | publisher={Springer-Verlag}, 192 | address={New York}, 193 | year={1990}, 194 | } 195 | 196 | @BOOK{Hen93, 197 | author={Peter Henderson}, 198 | title={Object-oriented specification and design with {C}$++$}, 199 | publisher={McGraw-Hill}, 200 | address={London}, 201 | year={1993}, 202 | } 203 | 204 | % ------------------------------------------------------------------------ 205 | 206 | @ARTICLE{Rea85, 207 | author={C. J. Read}, 208 | title={A solution to the invariant subspace problem on the space $l_1$}, 209 | journal={Bull. London Math. Soc.}, 210 | volume={17}, 211 | year={1985}, 212 | pages={305-317}, 213 | } 214 | 215 | @ARTICLE{Enf87, 216 | author={P. Enflo}, 217 | title={On the invariant subspaces problem for {Banach} spaces}, 218 | journal={Acta. Math.}, 219 | note={Seminare Maurey-Schwartz (1975-1976)}, 220 | volume={158}, 221 | year={1987}, 222 | pages={213-313}, 223 | } 224 | 225 | @ARTICLE{Dau75, 226 | author={J. Daughtry}, 227 | title={An invariant subspace theorem}, 228 | journal={Proc. Amer. Math. Soc.}, 229 | volume={49}, 230 | year={1975}, 231 | pages={267-268}, 232 | } 233 | 234 | @ARTICLE{KPS75, 235 | author={H. W. Kim and C. Pearcy and A. L. Shields}, 236 | title={Rank-One Commutators and Hyperinvariant Subspaces}, 237 | journal={Michigan Math. J.}, 238 | volume={22}, 239 | number={3}, 240 | year={1975}, 241 | pages={193-194}, 242 | } 243 | 244 | % -------------------------------------------------------------------------- 245 | 246 | @ARTICLE{Rad87, 247 | author={H. Radjavi}, 248 | title={The {Engel}-{Jacobson} {Theorem} {Revisited}}, 249 | journal={J. Alg.}, 250 | volume={111}, 251 | year={1987}, 252 | pages={427-430}, 253 | } 254 | 255 | @ARTICLE{MOR91, 256 | author={B. Mathes and M. Omladi\v{c} and H. Radjavi}, 257 | title={Linear {Spaces} of {Nilpotent} {Operators}}, 258 | journal={Linear Algebra Appl.}, 259 | volume={149}, 260 | year={1991}, 261 | pages={215-225}, 262 | } 263 | 264 | @ARTICLE{Lom73, 265 | author={V. I. Lomonosov}, 266 | title={Invariant subspaces for operators commuting with compact 267 | operators}, 268 | journal={Functional Anal. Appl.}, 269 | volume=7, 270 | year=1973, 271 | pages="213-214", 272 | } 273 | 274 | @ARTICLE{Lom91, 275 | author={V. I. Lomonosov}, 276 | title={An extension of {Burnside}'s theorem to infinite 277 | dimensional spaces}, 278 | journal={Israel J. Math}, 279 | volume=75, 280 | year=1991, 281 | pages="329-339", 282 | } 283 | 284 | @ARTICLE{Lom92, 285 | author={V. I. Lomonosov}, 286 | title={On {Real} {Invariant} {Subspaces} of {Bounded} {Operators} with 287 | {Compact} {Imaginary} {Part}}, 288 | journal={Proc. Amer. Math. Soc.}, 289 | volume=115, 290 | number=3, 291 | month=jul, 292 | year=1992, 293 | pages="775-777", 294 | } 295 | 296 | @ARTICLE{dB59, 297 | author={L. de Branges}, 298 | title={The {Stone}-{Weierstrass} {Theorem}}, 299 | journal={Proc. Amer. Math. Soc.}, 300 | volume=10, 301 | year=1959, 302 | pages="822-824", 303 | } 304 | 305 | @ARTICLE{dB93, 306 | author={L. de Branges}, 307 | title={A construction of invariant subspaces}, 308 | journal={Math. Nachr.}, 309 | volume=163, 310 | year=1993, 311 | pages="163-175", 312 | } 313 | 314 | @ARTICLE{AAB95, 315 | author={Y. A. Abramovich and C. D. Aliprantis and O. Burkinshaw}, 316 | title={Another Characterization of the Invariant Subspace Problem}, 317 | journal={Operator Theory in Function Spaces and Banach Lattices. 318 | {\em The A.C.\,Zaanen Anniversary Volume}, 319 | Operator Theory: Advances and Applications}, 320 | volume={75}, 321 | year={1995}, 322 | pages={15-31}, 323 | note={Birkh\"auser Verlag}, 324 | } 325 | 326 | @ARTICLE{LM65, 327 | author={Ju. I. Ljubi\v{c} and V. I. Macaev}, 328 | title={On Operators with a Separable Spectrum}, 329 | journal={Amer. Math. Soc. Transl. (2)}, 330 | volume={47}, 331 | year={1965}, 332 | pages={89-129}, 333 | } 334 | 335 | % ------------------------------------------------------------------------ 336 | 337 | @MASTERSTHESIS{Sim90, 338 | author={A. Simoni\v{c}}, 339 | title={Grupe Operatorjev s Pozitivnim Spektrom}, 340 | school={Univerza v Ljubljani, FNT, Oddelek za Matematiko}, 341 | year={1990}, 342 | } 343 | 344 | @UNPUBLISHED{Sim91, 345 | author={A. Simoni\v{c}}, 346 | title={Notes on {Subharmonic} {Functions}}, 347 | note={Lecture Notes, Dalhousie University, 348 | Department of Mathematics, Statistics, \& Computing Science}, 349 | year={1991}, 350 | } 351 | 352 | @ARTICLE{Sim92, 353 | author={A. Simoni\v{c}}, 354 | title={Matrix {Groups} with {Positive} {Spectra}}, 355 | journal={Linear Algebra Appl.}, 356 | volume={173}, 357 | year={1992}, 358 | pages={57-76}, 359 | } 360 | 361 | @PHDTHESIS{Sim94, 362 | author={A. Simoni\v{c}}, 363 | title={An {Extension} of {Lomonosov's} {Techniques} to {Non}-{Compact} 364 | {Operators}}, 365 | school={Dalhousie University, 366 | Department of Mathematics, Statistics, \& Computing Science}, 367 | year={1994}, 368 | } 369 | 370 | @ARTICLE{Sim96a, 371 | author={A. Simoni\v{c}}, 372 | title={A {Construction} of {Lomonosov} {Functions} and 373 | {Applications} to the {Invariant} {Subspace} {Problem}}, 374 | journal={Pacific J. Math.}, 375 | volume={175}, 376 | pages={257-270}, 377 | year={1996}, 378 | } 379 | 380 | @ARTICLE{Sim96b, 381 | author={A. Simoni\v{c}}, 382 | title={An extension of {Lomonosov's} {Techniques} to non-compact 383 | {Operators}}, 384 | journal={Trans. Amer. Math. Soc.}, 385 | volume={348}, 386 | pages={975-995}, 387 | year={1996}, 388 | } 389 | 390 | % ------------------------------------------------------------------------ 391 | -------------------------------------------------------------------------------- /Variables.ini: -------------------------------------------------------------------------------- 1 | # If you list files or wildcards here, they will *not* be cleaned - default is 2 | # to allow everything to be cleaned. 3 | neverclean := *.pdf *.ps *.dvi 4 | 5 | # If you list files here, they will be treated as _include_ files 6 | includes.fig := Figs/University_Crest.pdf Figs/University_Crest.eps 7 | onlysources.tex := thesis.tex 8 | LATEX_COLOR_WARNING := 'bold red uline' 9 | -------------------------------------------------------------------------------- /compile-thesis-windows.bat: -------------------------------------------------------------------------------- 1 | SET FILENAME=thesis 2 | 3 | DEL "%FILENAME%.aux" 4 | DEL "%FILENAME%.bbl" 5 | DEL "%FILENAME%.blg" 6 | DEL "%FILENAME%.d" 7 | DEL "%FILENAME%.fls" 8 | DEL "%FILENAME%.ild" 9 | DEL "%FILENAME%.ind" 10 | DEL "%FILENAME%.toc" 11 | DEL "%FILENAME%.lot" 12 | DEL "%FILENAME%.lof" 13 | DEL "%FILENAME%.idx" 14 | DEL "%FILENAME%.out" 15 | DEL "%FILENAME%.nlo" 16 | DEL "%FILENAME%.nls" 17 | DEL "%FILENAME%.pdf" 18 | DEL "%FILENAME%.ps" 19 | DEL "%FILENAME%.dvi" 20 | 21 | pdflatex -interaction=nonstopmode "%FILENAME%.tex" 22 | bibtex "%FILENAME%.aux" 23 | makeindex "%FILENAME%.aux" 24 | makeindex "%FILENAME%.idx" 25 | makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls 26 | pdflatex -interaction=nonstopmode "%FILENAME%.tex" 27 | makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls 28 | pdflatex -interaction=nonstopmode "%FILENAME%.tex" 29 | 30 | 31 | DEL "%FILENAME%.aux" 32 | DEL "%FILENAME%.bbl" 33 | DEL "%FILENAME%.blg" 34 | DEL "%FILENAME%.d" 35 | DEL "%FILENAME%.fls" 36 | DEL "%FILENAME%.ild" 37 | DEL "%FILENAME%.ind" 38 | DEL "%FILENAME%.toc" 39 | DEL "%FILENAME%.lot" 40 | DEL "%FILENAME%.lof" 41 | DEL "%FILENAME%.idx" 42 | DEL "%FILENAME%.out" 43 | DEL "%FILENAME%.nlo" 44 | DEL "%FILENAME%.nls" 45 | 46 | 47 | "%FILENAME%.pdf" 48 | -------------------------------------------------------------------------------- /compile-thesis.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # A script to compile the PhD Thesis - Krishna Kumar 3 | # Distributed under GPLv2.0 License 4 | 5 | compile="compile"; 6 | clean="clean"; 7 | 8 | if test -z "$2" 9 | then 10 | if [ $1 = $clean ]; then 11 | echo "Cleaning please wait ..." 12 | rm -f *~ 13 | rm -rf *.aux 14 | rm -rf *.bbl 15 | rm -rf *.blg 16 | rm -rf *.d 17 | rm -rf *.fls 18 | rm -rf *.ilg 19 | rm -rf *.ind 20 | rm -rf *.toc* 21 | rm -rf *.lot* 22 | rm -rf *.lof* 23 | rm -rf *.log 24 | rm -rf *.idx 25 | rm -rf *.out* 26 | rm -rf *.nlo 27 | rm -rf *.nls 28 | rm -rf $filename.pdf 29 | rm -rf $filename.ps 30 | rm -rf $filename.dvi 31 | rm -rf *#* 32 | echo "Cleaning complete!" 33 | exit 34 | else 35 | echo "Shell script for compiling the PhD Thesis" 36 | echo "Usage: sh ./compile-thesis.sh [OPTIONS] [filename]" 37 | echo "[option] compile: Compiles the PhD Thesis" 38 | echo "[option] clean: removes temporary files no filename required" 39 | exit 40 | fi 41 | fi 42 | 43 | filename=$2; 44 | 45 | if [ $1 = $clean ]; then 46 | echo "Cleaning please wait ..." 47 | rm -f *~ 48 | rm -rf *.aux 49 | rm -rf *.bbl 50 | rm -rf *.blg 51 | rm -rf *.d 52 | rm -rf *.fls 53 | rm -rf *.ilg 54 | rm -rf *.ind 55 | rm -rf *.toc* 56 | rm -rf *.lot* 57 | rm -rf *.lof* 58 | rm -rf *.log 59 | rm -rf *.idx 60 | rm -rf *.out* 61 | rm -rf *.nlo 62 | rm -rf *.nls 63 | rm -rf $filename.pdf 64 | rm -rf $filename.ps 65 | rm -rf $filename.dvi 66 | rm -rf *#* 67 | echo "Cleaning complete!" 68 | exit 69 | elif [ $1 = $compile ]; then 70 | echo "Compiling your PhD Thesis...please wait...!" 71 | pdflatex -interaction=nonstopmode $filename.tex 72 | bibtex $filename.aux 73 | makeindex $filename.aux 74 | makeindex $filename.idx 75 | makeindex $filename.nlo -s nomencl.ist -o $filename.nls 76 | pdflatex -interaction=nonstopmode $filename.tex 77 | makeindex $filename.nlo -s nomencl.ist -o $filename.nls 78 | pdflatex -interaction=nonstopmode $filename.tex 79 | echo "Success!" 80 | exit 81 | fi 82 | 83 | 84 | if test -z "$3" 85 | then 86 | exit 87 | fi 88 | -------------------------------------------------------------------------------- /hooks/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Adapted from https://gist.github.com/tilap/0590e78c9cfd8f6548f5 4 | 5 | # Basic script to set custom project hook and share it with other developpers 6 | # 7 | # cd [path-of-the-script] 8 | # . install.sh 9 | # 10 | # Folders usecase 11 | # /.git 12 | # /.git/hooks 13 | # /hooks/install.sh <- this script 14 | # /hooks <- path of your hooks 15 | 16 | set -e 17 | 18 | # list of hooks the script will look for 19 | HOOK_NAMES="applypatch-msg pre-applypatch post-applypatch pre-commit prepare-commit-msg commit-msg post-commit pre-rebase post-checkout post-merge pre-receive update post-receive post-update pre-auto-gc" 20 | 21 | PROJECT_ROOT_DIR=`git rev-parse --show-toplevel` 22 | 23 | # absolute folder path of directory into which hooks should be installed 24 | TGT_DIR=$PROJECT_ROOT_DIR/.git/hooks 25 | 26 | # absolute folder path of the custom hooks to deploy / current script 27 | SRC_DIR=$PROJECT_ROOT_DIR/hooks 28 | 29 | # relative folder path from the target dir to the source dir 30 | LNS_RELATIVE_PATH=../../hooks 31 | 32 | echo "Install project git hooks" 33 | 34 | for hook in $HOOK_NAMES; do 35 | # if we have a custom hook to set 36 | if [ -f $SRC_DIR/$hook ]; then 37 | echo "> Hook $hook" 38 | if [ ! -x $SRC_DIR/$hook ]; then 39 | echo " > Not executable, skipping" 40 | continue 41 | fi 42 | # If the hook already exists, is executable, and is not a symlink 43 | if [ ! -h $TGT_DIR/$hook -a -x $TGT_DIR/$hook ]; then 44 | echo " > Old git hook $hook disabled" 45 | # append .old to disable it 46 | mv $TGT_DIR/$hook $TGT_DIR/$hook.old 47 | fi 48 | 49 | # create the symlink, overwriting the file if it exists 50 | echo " > Enable project git hook" 51 | ln -s -f $LNS_RELATIVE_PATH/$hook $TGT_DIR/$hook 52 | fi 53 | done 54 | -------------------------------------------------------------------------------- /hooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # look at all staged files with the given extensions; 3 | # if any were modified more recently than your target, 4 | # rebuild the target with the default `make` task, 5 | # and `git add` the changed target file. 6 | 7 | set -e 8 | 9 | # extensions of files which may affect what your target looks like 10 | extensions="tex|pdf|png|bib|eps|cls" 11 | 12 | # your target file 13 | tgt="thesis.pdf" 14 | 15 | for fpath in $(git diff --cached --name-only --diff-filter=ACM | grep -P "\.${extensions}" | grep -v "${tgt}") 16 | do 17 | if test ${fpath} -nt ${tgt}; then 18 | make 19 | git add ${tgt} 20 | break 21 | fi 22 | done 23 | -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | **The MIT License (MIT)** 2 | 3 | *Copyright (c) 2013 Krishna Kumar* 4 | 5 | >Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | >The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | >THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /sty/breakurl.sty: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `breakurl.sty', 3 | %% generated with the docstrip utility. 4 | %% 5 | %% The original source files were: 6 | %% 7 | %% breakurl.dtx (with options: `package') 8 | %% 9 | %% This is a generated file. 10 | %% 11 | %% Copyright (C) 2005 by Vilar Camara Neto. 12 | %% 13 | %% This file may be distributed and/or modified under the 14 | %% conditions of the LaTeX Project Public License, either 15 | %% version 1.2 of this license or (at your option) any later 16 | %% version. The latest version of this license is in: 17 | %% 18 | %% http://www.latex-project.org/lppl.txt 19 | %% 20 | %% and version 1.2 or later is part of all distributions of 21 | %% LaTeX version 1999/12/01 or later. 22 | %% 23 | %% Currently this work has the LPPL maintenance status "maintained". 24 | %% 25 | %% The Current Maintainer of this work is Vilar Camara Neto. 26 | %% 27 | %% This work consists of the files breakurl.dtx and 28 | %% breakurl.ins and the derived file breakurl.sty. 29 | %% 30 | \NeedsTeXFormat{LaTeX2e}[1999/12/01] 31 | \ProvidesPackage{breakurl} 32 | [2013/04/10 v1.40 Breakable hyperref URLs] 33 | 34 | 35 | \RequirePackage{xkeyval} 36 | \RequirePackage{ifpdf} 37 | 38 | \ifpdf 39 | % Dummy package options 40 | \DeclareOptionX{preserveurlmacro}{} 41 | \DeclareOptionX{hyphenbreaks}{} 42 | \DeclareOptionX{anythingbreaks}{} 43 | \DeclareOptionX{vertfit}{} 44 | \ProcessOptionsX\relax 45 | 46 | \PackageWarning{breakurl}{% 47 | You are using breakurl while processing via pdflatex.\MessageBreak 48 | \string\burl\space will be just a synonym of \string\url.\MessageBreak} 49 | \DeclareRobustCommand{\burl}{\url} 50 | \DeclareRobustCommand*{\burlalt}{\hyper@normalise\burl@alt} 51 | \def\burl@alt#1#2{\hyper@linkurl{\Hurl{#1}}{#2}} 52 | \expandafter\endinput 53 | \fi 54 | 55 | \@ifpackageloaded{hyperref}{}{% 56 | \PackageError{breakurl}{The breakurl depends on hyperref package}% 57 | {I can't do anything. Please type X , edit the source file% 58 | \MessageBreak 59 | and add \string\usepackage\string{hyperref\string} before 60 | \string\usepackage\string{breakurl\string}.} 61 | \endinput 62 | } 63 | 64 | \newif\if@preserveurlmacro\@preserveurlmacrofalse 65 | \newif\if@burl@fitstrut\@burl@fitstrutfalse 66 | \newif\if@burl@fitglobal\@burl@fitglobalfalse 67 | \newif\if@burl@anythingbreaks\@burl@anythingbreaksfalse 68 | 69 | \newtoks\burl@toks 70 | 71 | \let\burl@charlistbefore\empty 72 | \let\burl@charlistafter\empty 73 | 74 | \def\burl@addtocharlistbefore{\g@addto@macro\burl@charlistbefore} 75 | \def\burl@addtocharlistafter{\g@addto@macro\burl@charlistafter} 76 | 77 | \bgroup 78 | \catcode`\&=12\relax 79 | \hyper@normalise\burl@addtocharlistbefore{%} 80 | \hyper@normalise\burl@addtocharlistafter{:/.?#&_,;!} 81 | \egroup 82 | 83 | \def\burl@growmif#1#2{% 84 | \g@addto@macro\burl@mif{\def\burl@ttt{#1}\ifx\burl@ttt\@nextchar#2\else}% 85 | } 86 | \def\burl@growmfi{% 87 | \g@addto@macro\burl@mfi{\fi}% 88 | } 89 | \def\burl@defifstructure{% 90 | \let\burl@mif\empty 91 | \let\burl@mfi\empty 92 | \expandafter\@tfor\expandafter\@nextchar\expandafter:\expandafter=% 93 | \burl@charlistbefore\do{% 94 | \expandafter\burl@growmif\@nextchar\@burl@breakbeforetrue 95 | \burl@growmfi 96 | }% 97 | \expandafter\@tfor\expandafter\@nextchar\expandafter:\expandafter=% 98 | \burl@charlistafter\do{% 99 | \expandafter\burl@growmif\@nextchar\@burl@breakaftertrue 100 | \burl@growmfi 101 | }% 102 | } 103 | 104 | \AtEndOfPackage{\burl@defifstructure} 105 | 106 | \def\burl@setvertfit#1{% 107 | \lowercase{\def\burl@temp{#1}}% 108 | \def\burl@opt{local}\ifx\burl@temp\burl@opt 109 | \@burl@fitstrutfalse\@burl@fitglobalfalse 110 | \else\def\burl@opt{strut}\ifx\burl@temp\burl@opt 111 | \@burl@fitstruttrue\@burl@fitglobalfalse 112 | \else\def\burl@opt{global}\ifx\burl@temp\burl@opt 113 | \@burl@fitstrutfalse\@burl@fitglobaltrue 114 | \else 115 | \PackageWarning{breakurl}{Unrecognized vertfit option `\burl@temp'.% 116 | \MessageBreak 117 | Adopting default `local'} 118 | \@burl@fitstrutfalse\@burl@fitglobalfalse 119 | \fi\fi\fi 120 | } 121 | 122 | \DeclareOptionX{preserveurlmacro}{\@preserveurlmacrotrue} 123 | \DeclareOptionX{hyphenbreaks}{% 124 | \bgroup 125 | \catcode`\&=12\relax 126 | \hyper@normalise\burl@addtocharlistafter{-}% 127 | \egroup 128 | } 129 | \DeclareOptionX{anythingbreaks}{% 130 | \@burl@anythingbreakstrue 131 | } 132 | \DeclareOptionX{vertfit}[local]{\burl@setvertfit{#1}} 133 | 134 | \ProcessOptionsX\relax 135 | 136 | \def\burl@hyper@linkurl#1#2{% 137 | \begingroup 138 | \hyper@chars 139 | \burl@condpdflink{#1}% 140 | \endgroup 141 | } 142 | 143 | \def\burl@condpdflink#1{% 144 | \literalps@out{ 145 | /burl@bordercolor {\@urlbordercolor} def 146 | /burl@border {\@pdfborder} def 147 | }% 148 | \if@burl@fitstrut 149 | \sbox\pdf@box{#1\strut}% 150 | \else\if@burl@fitglobal 151 | \sbox\pdf@box{\burl@url}% 152 | \else 153 | \sbox\pdf@box{#1}% 154 | \fi\fi 155 | \dimen@\ht\pdf@box\dimen@ii\dp\pdf@box 156 | \sbox\pdf@box{#1}% 157 | \ifdim\dimen@ii=\z@ 158 | \literalps@out{BU.SS}% 159 | \else 160 | \lower\dimen@ii\hbox{\literalps@out{BU.SS}}% 161 | \fi 162 | \ifHy@breaklinks\unhbox\else\box\fi\pdf@box 163 | \ifdim\dimen@=\z@ 164 | \literalps@out{BU.SE}% 165 | \else 166 | \raise\dimen@\hbox{\literalps@out{BU.SE}}% 167 | \fi 168 | \pdf@addtoksx{H.B}% 169 | } 170 | 171 | \DeclareRobustCommand*{\burl}{% 172 | \leavevmode 173 | \begingroup 174 | \let\hyper@linkurl=\burl@hyper@linkurl 175 | \catcode`\&=12\relax 176 | \hyper@normalise\burl@ 177 | } 178 | 179 | \DeclareRobustCommand*{\burlalt}{% 180 | \begingroup 181 | \let\hyper@linkurl=\burl@hyper@linkurl 182 | \catcode`\&=12\relax 183 | \hyper@normalise\burl@alt 184 | } 185 | 186 | \newif\if@burl@breakbefore 187 | \newif\if@burl@breakafter 188 | \newif\if@burl@prevbreakafter 189 | 190 | \bgroup 191 | \catcode`\&=12\relax 192 | \gdef\burl@#1{% 193 | \def\burl@url{#1}% 194 | \def\burl@urltext{#1}% 195 | \burl@doit 196 | } 197 | 198 | \gdef\burl@alt#1{% 199 | \def\burl@url{#1}% 200 | \hyper@normalise\burl@@alt 201 | } 202 | \gdef\burl@@alt#1{% 203 | \def\burl@urltext{#1}% 204 | \burl@doit 205 | } 206 | 207 | \gdef\burl@doit{% 208 | \burl@toks{}% 209 | \let\burl@UrlRight\UrlRight 210 | \let\UrlRight\empty 211 | \@burl@prevbreakafterfalse 212 | \@ifundefined{@urlcolor}{\Hy@colorlink\@linkcolor}{\Hy@colorlink\@urlcolor}% 213 | \expandafter\@tfor\expandafter\@nextchar\expandafter:\expandafter=% 214 | \burl@urltext\do{% 215 | \if@burl@breakafter\@burl@prevbreakaftertrue 216 | \else\@burl@prevbreakafterfalse\fi 217 | \if@burl@anythingbreaks\@burl@breakbeforetrue\else\@burl@breakbeforefalse\fi 218 | \@burl@breakafterfalse 219 | \expandafter\burl@mif\burl@mfi 220 | \if@burl@breakbefore 221 | % Breakable if the current char is in the `can break before' list 222 | \burl@flush\linebreak[0]% 223 | \else 224 | \if@burl@prevbreakafter 225 | \if@burl@breakafter\else 226 | % Breakable if the current char is not in any of the `can break' 227 | % lists, but the previous is in the `can break after' list. 228 | % This mechanism accounts for sequences of `break after' characters, 229 | % where a break is allowed only after the last one 230 | \burl@flush\linebreak[0]% 231 | \fi 232 | \fi 233 | \fi 234 | \expandafter\expandafter\expandafter\burl@toks 235 | \expandafter\expandafter\expandafter{% 236 | \expandafter\the\expandafter\burl@toks\@nextchar}% 237 | }% 238 | \let\UrlRight\burl@UrlRight 239 | \burl@flush 240 | \literalps@out{BU.E}% 241 | \Hy@endcolorlink 242 | \endgroup 243 | } 244 | \egroup 245 | 246 | \def\the@burl@toks{\the\burl@toks} 247 | 248 | \def\burl@flush{% 249 | \expandafter\def\expandafter\burl@toks@def\expandafter{\the\burl@toks}% 250 | \literalps@out{/BU.L (\burl@url) def}% 251 | \hyper@linkurl{\expandafter\Hurl\expandafter{\burl@toks@def}}{\burl@url}% 252 | \global\burl@toks{}% 253 | \let\UrlLeft\empty 254 | }% 255 | 256 | \if@preserveurlmacro\else\let\url\burl\let\urlalt\burlalt\fi 257 | 258 | \AtBeginDvi{% 259 | \headerps@out{% 260 | /burl@stx null def 261 | /BU.S { 262 | /burl@stx null def 263 | } def 264 | /BU.SS { 265 | currentpoint 266 | /burl@lly exch def 267 | /burl@llx exch def 268 | burl@stx null ne {burl@endx burl@llx ne {BU.FL BU.S} if} if 269 | burl@stx null eq { 270 | burl@llx dup /burl@stx exch def /burl@endx exch def 271 | burl@lly dup /burl@boty exch def /burl@topy exch def 272 | } if 273 | burl@lly burl@boty gt {/burl@boty burl@lly def} if 274 | } def 275 | /BU.SE { 276 | currentpoint 277 | /burl@ury exch def 278 | dup /burl@urx exch def /burl@endx exch def 279 | burl@ury burl@topy lt {/burl@topy burl@ury def} if 280 | } def 281 | /BU.E { 282 | BU.FL 283 | } def 284 | /BU.FL { 285 | burl@stx null ne {BU.DF} if 286 | } def 287 | /BU.DF { 288 | BU.BB 289 | [ /H /I /Border [burl@border] /Color [burl@bordercolor] 290 | /Action << /Subtype /URI /URI BU.L >> /Subtype /Link BU.B /ANN pdfmark 291 | /burl@stx null def 292 | } def 293 | /BU.BB { 294 | burl@stx HyperBorder sub /burl@stx exch def 295 | burl@endx HyperBorder add /burl@endx exch def 296 | burl@boty HyperBorder add /burl@boty exch def 297 | burl@topy HyperBorder sub /burl@topy exch def 298 | } def 299 | /BU.B { 300 | /Rect[burl@stx burl@boty burl@endx burl@topy] 301 | } def 302 | /eop where { 303 | begin 304 | /@ldeopburl /eop load def 305 | /eop { SDict begin BU.FL end @ldeopburl } def 306 | end 307 | } { 308 | /eop { SDict begin BU.FL end } def 309 | } ifelse 310 | }% 311 | } 312 | \endinput 313 | %% 314 | %% End of file `breakurl.sty'. 315 | -------------------------------------------------------------------------------- /thesis-info.tex: -------------------------------------------------------------------------------- 1 | % ************************ Thesis Information & Meta-data ********************** 2 | %% The title of the thesis 3 | \title{Writing your PhD thesis in \texorpdfstring{\\ \LaTeX2e}{LaTeX2e}} 4 | %\texorpdfstring is used for PDF metadata. Usage: 5 | %\texorpdfstring{LaTeX_Version}{PDF Version (non-latex)} eg., 6 | %\texorpdfstring{$sigma$}{sigma} 7 | 8 | %% Subtitle (Optional) 9 | \subtitle{Using the CUED template} 10 | 11 | %% The full name of the author 12 | \author{Krishna Kumar} 13 | 14 | %% Department (eg. Department of Engineering, Maths, Physics) 15 | \dept{Department of Engineering} 16 | 17 | %% University and Crest 18 | \university{University of Cambridge} 19 | % Crest minimum should be 30mm. 20 | \crest{\includegraphics[width=0.2\textwidth]{University_Crest}} 21 | %% Use this crest, if you are using the college crest 22 | %% Crest long miminum should be 65mm 23 | %\crest{\includegraphics[width=0.45\textwidth]{University_Crest_Long}} 24 | 25 | %% College shield [optional] 26 | % Crest minimum should be 30mm. 27 | %\collegeshield{\includegraphics[width=0.2\textwidth]{CollegeShields/Kings}} 28 | 29 | 30 | %% Supervisor (optional) 31 | %% for multiple supervisors, append each supervisor with the \newline command 32 | %\supervisor{Prof. A.B. Supervisor\newline 33 | %Prof. C.D. Supervisor} 34 | 35 | %% Supervisor Role (optional) - Supervisor (default) or advisor 36 | % \supervisorrole{\textbf{Supervisors: }} 37 | %% if no title is desired: 38 | % \supervisorrole{} 39 | 40 | %% Supervisor line width: required to align supervisors 41 | %\supervisorlinewidth{0.35\textwidth} 42 | 43 | %% Advisor (optional) 44 | %% for multiple advisors, append each advisor with the \newline command 45 | %\advisor{Dr. A. Advisor\newline 46 | %Dr. B. Advisor} 47 | 48 | %% Advisor Role (optional) - Advisor (default) or leave empty 49 | % \advisorrole{Advisors: } 50 | %% if no title is required 51 | % \advisorrole{} 52 | 53 | %% Advisor line width: required to align supervisors 54 | %\advisorlinewidth{0.25\textwidth} 55 | 56 | 57 | %% You can redefine the submission text: 58 | % Default as per the University guidelines: 59 | % ``This dissertation is submitted for the degree of'' 60 | %\renewcommand{\submissiontext}{change the default text here if needed} 61 | 62 | %% Full title of the Degree 63 | \degreetitle{Doctor of Philosophy} 64 | 65 | %% College affiliation (optional) 66 | \college{King's College} 67 | 68 | %% Submission date 69 | % Default is set as {\monthname[\the\month]\space\the\year} 70 | %\degreedate{September 2014} 71 | 72 | %% Meta information 73 | \subject{LaTeX} \keywords{{LaTeX} {PhD Thesis} {Engineering} {University of 74 | Cambridge}} 75 | -------------------------------------------------------------------------------- /thesis.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kks32/phd-thesis-template/a10e01cb944af369e261a500332dfdcc4c4aa288/thesis.pdf -------------------------------------------------------------------------------- /thesis.tex: -------------------------------------------------------------------------------- 1 | % ******************************* PhD Thesis Template ************************** 2 | % Please have a look at the README.md file for info on how to use the template 3 | 4 | \documentclass[a4paper,12pt,times,numbered,print,index]{PhDThesisPSnPDF} 5 | 6 | % ****************************************************************************** 7 | % ******************************* Class Options ******************************** 8 | % *********************** See README for more details ************************** 9 | % ****************************************************************************** 10 | 11 | % `a4paper'(The University of Cambridge PhD thesis guidelines recommends a page 12 | % size a4 - default option) or `a5paper': A5 Paper size is also allowed as per 13 | % the Cambridge University Engineering Deparment guidelines for PhD thesis 14 | % 15 | % `11pt' or `12pt'(default): Font Size 10pt is NOT recommended by the University 16 | % guidelines 17 | % 18 | % `oneside' or `twoside'(default): Printing double side (twoside) or single 19 | % side. 20 | % 21 | % `print': Use `print' for print version with appropriate margins and page 22 | % layout. Leaving the options field blank will activate Online version. 23 | % 24 | % `index': For index at the end of the thesis 25 | % 26 | % `draftclassic': For draft mode without loading any images (same as draft in book) 27 | % 28 | % `draft': Special draft mode with line numbers, images, and water mark with 29 | % timestamp and custom text. Position of the text can also be modified. 30 | % 31 | % `abstract': To generate only the title page and abstract page with 32 | % dissertation title and name, to submit to the Student Registry 33 | % 34 | % `chapter`: This option enables only the specified chapter and its references 35 | % Useful for review and corrections. 36 | % 37 | % ************************* Custom Page Margins ******************************** 38 | % 39 | % `custommargin`: Use `custommargin' in options to activate custom page margins, 40 | % which can be defined in the preamble.tex. Custom margin will override 41 | % print/online margin setup. 42 | % 43 | % *********************** Choosing the Fonts in Class Options ****************** 44 | % 45 | % `times' : Times font with math support. (The Cambridge University guidelines 46 | % recommend using times) 47 | % 48 | % `fourier': Utopia Font with Fourier Math font (Font has to be installed) 49 | % It's a free font. 50 | % 51 | % `customfont': Use `customfont' option in the document class and load the 52 | % package in the preamble.tex 53 | % 54 | % default or leave empty: `Latin Modern' font will be loaded. 55 | % 56 | % ********************** Choosing the Bibliography style *********************** 57 | % 58 | % `authoryear': For author-year citation eg., Krishna (2013) 59 | % 60 | % `numbered': (Default Option) For numbered and sorted citation e.g., [1,5,2] 61 | % 62 | % `custombib': Define your own bibliography style in the `preamble.tex' file. 63 | % `\RequirePackage[square, sort, numbers, authoryear]{natbib}'. 64 | % This can be also used to load biblatex instead of natbib 65 | % (See Preamble) 66 | % 67 | % **************************** Choosing the Page Style ************************* 68 | % 69 | % `default (leave empty)': For Page Numbers in Header (Left Even, Right Odd) and 70 | % Chapter Name in Header (Right Even) and Section Name (Left Odd). Blank Footer. 71 | % 72 | % `PageStyleI': Chapter Name next & Page Number on Even Side (Left Even). 73 | % Section Name & Page Number in Header on Odd Side (Right Odd). Footer is empty. 74 | % 75 | % `PageStyleII': Chapter Name on Even Side (Left Even) in Header. Section Number 76 | % and Section Name in Header on Odd Side (Right Odd). Page numbering in footer 77 | 78 | % Uncomment to change page style 79 | %\pagestyle{PageStyleII} 80 | 81 | % ********************************** Preamble ********************************** 82 | % Preamble: Contains packages and user-defined commands and settings 83 | \input{Preamble/preamble} 84 | 85 | % ************************ Thesis Information & Meta-data ********************** 86 | % Thesis title and author information, refernce file for biblatex 87 | \input{thesis-info} 88 | 89 | % ***************************** Abstract Separate ****************************** 90 | % To printout only the titlepage and the abstract with the PhD title and the 91 | % author name for submission to the Student Registry, use the `abstract' option in 92 | % the document class. 93 | 94 | \ifdefineAbstract 95 | \pagestyle{empty} 96 | \includeonly{Declaration/declaration, Abstract/abstract} 97 | \fi 98 | 99 | % ***************************** Chapter Mode *********************************** 100 | % The chapter mode allows user to only print particular chapters with references 101 | % Title, Contents, Frontmatter are disabled by default 102 | % Useful option to review a particular chapter or to send it to supervisior. 103 | % To use choose `chapter' option in the document class 104 | 105 | \ifdefineChapter 106 | \includeonly{Chapter3/chapter3} 107 | \fi 108 | 109 | % ******************************** Front Matter ******************************** 110 | \begin{document} 111 | 112 | \frontmatter 113 | 114 | \maketitle 115 | 116 | \include{Dedication/dedication} 117 | \include{Declaration/declaration} 118 | \include{Acknowledgement/acknowledgement} 119 | \include{Abstract/abstract} 120 | 121 | % *********************** Adding TOC and List of Figures *********************** 122 | 123 | \tableofcontents 124 | 125 | \listoffigures 126 | 127 | \listoftables 128 | 129 | % \printnomenclature[space] space can be set as 2em between symbol and description 130 | %\printnomenclature[3em] 131 | 132 | \printnomenclature 133 | 134 | % ******************************** Main Matter ********************************* 135 | \mainmatter 136 | 137 | \include{Chapter1/chapter1} 138 | \include{Chapter2/chapter2} 139 | \include{Chapter3/chapter3} 140 | %\include{Chapter4/chapter4} 141 | %\include{Chapter5/chapter5} 142 | %\include{Chapter6/chapter6} 143 | %\include{Chapter7/chapter7} 144 | 145 | 146 | 147 | % ********************************** Back Matter ******************************* 148 | % Backmatter should be commented out, if you are using appendices after References 149 | %\backmatter 150 | 151 | % ********************************** Bibliography ****************************** 152 | \begin{spacing}{0.9} 153 | 154 | % To use the conventional natbib style referencing 155 | % Bibliography style previews: http://nodonn.tipido.net/bibstyle.php 156 | % Reference styles: http://sites.stat.psu.edu/~surajit/present/bib.htm 157 | 158 | \bibliographystyle{apalike} 159 | %\bibliographystyle{unsrt} % Use for unsorted references 160 | %\bibliographystyle{plainnat} % use this to have URLs listed in References 161 | \cleardoublepage 162 | \bibliography{References/references} % Path to your References.bib file 163 | 164 | 165 | % If you would like to use BibLaTeX for your references, pass `custombib' as 166 | % an option in the document class. The location of 'reference.bib' should be 167 | % specified in the preamble.tex file in the custombib section. 168 | % Comment out the lines related to natbib above and uncomment the following line. 169 | 170 | %\printbibliography[heading=bibintoc, title={References}] 171 | 172 | 173 | \end{spacing} 174 | 175 | % ********************************** Appendices ******************************** 176 | 177 | \begin{appendices} % Using appendices environment for more functunality 178 | 179 | \include{Appendix1/appendix1} 180 | \include{Appendix2/appendix2} 181 | 182 | \end{appendices} 183 | 184 | % *************************************** Index ******************************** 185 | \printthesisindex % If index is present 186 | 187 | \end{document} 188 | --------------------------------------------------------------------------------