Default font and paper and adhering to University regulations
This commit is contained in:
parent
627a506f57
commit
1f695d512a
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@
|
||||
*#*
|
||||
*.nls
|
||||
*.nlg
|
||||
thesis.txt*
|
||||
|
@ -36,7 +36,7 @@ CIF: \hspace*{5mm}F_0^j(a) &=& \frac{1}{2\pi \iota} \oint_{\gamma} \frac{F_0^j(z
|
||||
%********************************** %Second Section *************************************
|
||||
\section{Why do we use Loren Ipsum?} %Section - 1.2
|
||||
|
||||
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).
|
||||
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).
|
||||
|
||||
%********************************** % Third Section *************************************
|
||||
\section{Where does it come from?} %Section - 1.3
|
||||
|
@ -6,13 +6,13 @@
|
||||
%% Authors: Krishna Kumar %%
|
||||
%% Date: 2013/11/16 %%
|
||||
%% Based on: King's LaTeX workshop by Krishna, CUED V1.1 Template by H. Banderi %%
|
||||
%% Compuer Lab PhD Template & Alex Rige's idea of an unified template %%
|
||||
%% Cambridge Computer Laboratory PhD Template %%
|
||||
%% License: GPL V2.0 https://www.gnu.org/licenses/gpl-2.0.html %%
|
||||
%% GitHub Repo: https://github.com/kks32/phd-thesis-template/ %%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% ******************** Class Identification *********************
|
||||
%\NeedsTeXFormat{LaTeX2e}
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{PhDThesisPSnPDF}[2013/11/24 version 1.0Beta by Krishna Kumar]
|
||||
\typeout{https://github.com/kks32/phd-thesis-template/}
|
||||
|
||||
@ -71,14 +71,21 @@
|
||||
% ********************* Pre-defined Options **********************
|
||||
|
||||
% Font Size
|
||||
\DeclareOption{10pt}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\DeclareOption{11pt}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\newcommand\CU@ptsize{12pt} %Set Default Size as 12
|
||||
|
||||
\DeclareOption{10pt}{\ClassWarning{PhDThesisPSnPDF}{Cambridge University recommends using a minimum font size of 11pt (12pt is preferred) and 10pt for footnotes.}\renewcommand\CU@ptsize{10pt}}
|
||||
\DeclareOption{11pt}{\renewcommand\CU@ptsize{11pt}}%
|
||||
\DeclareOption{12pt}{\renewcommand\CU@ptsize{12pt}}%
|
||||
\PassOptionsToClass{\CU@ptsize}{book}%
|
||||
|
||||
% Page Size
|
||||
\DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\DeclareOption{a5paper}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\DeclareOption{letterpaper}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
\newcommand\CU@papersize{a4paper} % Set Default as a4paper
|
||||
|
||||
\DeclareOption{a4paper}{\renewcommand\CU@papersize{a4paper}}
|
||||
\DeclareOption{a5paper}{\renewcommand\CU@papersize{a5paper}}
|
||||
\DeclareOption{letterpaper}{\ClassWarning{PhDThesisPSnPDF}{Cambridge University Engineering Deparment recommends using A4 or A5paper}\renewcommand\CU@papersize{letterpaper}}
|
||||
|
||||
\PassOptionsToClass{\CU@papersize}{book}%
|
||||
|
||||
% Column layout
|
||||
\DeclareOption{oneside}{\PassOptionsToClass{\CurrentOption}{book}}%
|
||||
@ -257,7 +264,7 @@
|
||||
\ifCU@customfont
|
||||
\setFontfalse
|
||||
\else
|
||||
\ClassWarning{PhDThesisPSnPDf}{Using default font Latin Modern. If you would like to use other pre-defined fonts use `times' or `fourier' or load a custom font in preamble by specifying `customfont' in the class options}
|
||||
\ClassWarning{PhDThesisPSnPDf}{Using default font Latin Modern. If you would like to use other pre-defined fonts use `times' (Cambridge University recommends using Times font) or `fourier' or load a custom font in preamble by specifying `customfont' in the class options}
|
||||
\RequirePackage{lmodern}
|
||||
\setFonttrue
|
||||
\fi
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
\begin{declaration} %this creates the heading for the dedication page
|
||||
|
||||
I hereby declare that except where specific reference is made to the work of others, the contents of this dissertation are original and have not been submitted in whole or in part for consideration for any other degree or qualification in this, or any other University. This dissertation is entirely the result of my own work and includes nothing which is the outcome of work done in collaboration, except where specified in the text. This dissertation contains less than 65,000 words, excluding table of contents, tables, figures, titles, footnotes, references and appendices and 150 figures.
|
||||
I hereby declare that except where specific reference is made to the work of others, the contents of this dissertation are original and have not been submitted in whole or in part for consideration for any other degree or qualification in this, or any other University. This dissertation is entirely the result of my own work and includes nothing which is the outcome of work done in collaboration, except where specified in the text. This dissertation contains less than 65,000 words including appendices, bibliography, footnotes, tables and equations and has less than 150 figures.
|
||||
|
||||
%Permission has been granted by board of graduate studies to exceed the recommended limits 150 figures and to include a CD-ROM in the dissertation. This dissertation is presented less than 65,000 words and 210 figures.
|
||||
\flushright
|
||||
|
25
README.md
25
README.md
@ -1,6 +1,6 @@
|
||||
phd-thesis-template
|
||||
===================
|
||||
> A PhD thesis LaTeX template for Cambridge University, based on Krishna Kumar's King's latex course, CUED V1.1 Template by H. Banderi, and Cambridge Computer Laboratory Template.
|
||||
> A PhD thesis LaTeX template for Cambridge University Engineering Department, based on Krishna Kumar's King's latex course, Cambridge Computer Laboratory Template and CUED V1.1 Template by H. Banderi.
|
||||
|
||||
### Features
|
||||
|
||||
@ -17,7 +17,7 @@ phd-thesis-template
|
||||
* Pre-defined and custom margin size
|
||||
|
||||
|
||||
### Build your thesis
|
||||
### Building your thesis
|
||||
|
||||
#### Using the Make File (Unix/Linux)
|
||||
|
||||
@ -76,11 +76,11 @@ Usage: `sh ./compile-thesis.sh [OPTIONS] [filename]`
|
||||
|
||||
It support the following custom options:
|
||||
|
||||
* `a4paper` or `a5paper` or `letter`: Paper size
|
||||
* `a4paper` (default as per University guidelines) or `a5paper`: Paper size
|
||||
|
||||
* `10pt` or `11pt` or `12pt`: Font Size
|
||||
* `11pt` or `12pt`: Cambridge University recommends using a minimum font size of 11pt (12pt is preferred) and 10pt for footnotes. This template also supports `10pt`.
|
||||
|
||||
* `oneside` or `twoside`: This is especially useful for printing double side (twoside) or single side.
|
||||
* `oneside` or `twoside` (default): This is especially useful for printing double side (twoside) or single side.
|
||||
|
||||
* `print`: Supports Print and Online Version with different page margins and hyperlink styles.
|
||||
Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles.
|
||||
@ -100,7 +100,7 @@ It support the following custom options:
|
||||
|
||||
`PhDThesisPSnPDF` currently supports two fonts `Times` and `Latin Modern (default)`.
|
||||
|
||||
* `times`: Specifying times option in the document class will use `mathptpx` or `Times` font with Math Support.
|
||||
* `times`: (Cambridge University recommends using Times). Specifying times option in the document class will use `mathptpx` or `Times` font with Math Support.
|
||||
* `fourier`: fourier font with math support
|
||||
* `default (empty)`: When no font is specified, `Latin Modern` is used as the default font with Math Support.
|
||||
* `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
|
||||
@ -191,10 +191,12 @@ You can report issues through
|
||||
[our GitHub repository](https://github.com/kks32/phd-thesis-template).
|
||||
|
||||
You can also mail
|
||||
[the maintainers](https://github.com/kks32/phd-thesis-template/collaborators) directly.
|
||||
[the developers](https://github.com/kks32/phd-thesis-template/collaborators) directly.
|
||||
|
||||
## _Q2_: Where can I find the thesis formatting guidelines this class is based on?
|
||||
|
||||
[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)
|
||||
|
||||
[http://www.eng.cam.ac.uk/postgraduate/assets/library/document/p/original/planningphd.pdf](http://www.eng.cam.ac.uk/postgraduate/assets/library/document/p/original/planningphd.pdf)
|
||||
|
||||
|
||||
@ -217,7 +219,10 @@ After you've installed your custom/favourite fonts, add the following command in
|
||||
## _Q5_: How should I count the number of words in my thesis?
|
||||
|
||||
You can run the following command:
|
||||
`ps2ascii thesis.pdf | wc -w`
|
||||
`ps2ascii thesis.pdf | wc -w` (eg., result 2713 words)
|
||||
|
||||
or
|
||||
`pdftotext thesis.pdf | wc thesis.txt -w` (eg., result 2690 words)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
# Warnings and FAQs
|
||||
@ -251,8 +256,4 @@ You are trying to load an option that is not supported in the PhDThesisClass and
|
||||
|
||||
# TODO list
|
||||
|
||||
* Scale the section sizes by an order when moving from a4paper to a5paper
|
||||
|
||||
* Support Libertine fonts + Math
|
||||
|
||||
|
||||
|
8
Variables.ini
Normal file
8
Variables.ini
Normal file
@ -0,0 +1,8 @@
|
||||
# If you list files or wildcards here, they will *not* be cleaned - default is
|
||||
# to allow everything to be cleaned.
|
||||
#neverclean := *.pdf *.ps
|
||||
|
||||
# If you list files here, they will be treated as _include_ files
|
||||
includes.fig := Figs/University_Crest.pdf Figs/University_Crest.eps
|
||||
onlysources.tex := thesis.tex
|
||||
LATEX_COLOR_WARNING := 'bold red uline'
|
BIN
thesis.pdf
BIN
thesis.pdf
Binary file not shown.
40
thesis.tex
40
thesis.tex
@ -1,22 +1,22 @@
|
||||
% ******************************* PhD Thesis Template ************************
|
||||
% Please have a look at the README.md file for info on how to use the template
|
||||
|
||||
\documentclass[a4paper,twoside,12pt,times,numbered,print,index]{Classes/PhDThesisPSnPDF}
|
||||
\documentclass[times,twoside,numbered,print,index]{Classes/PhDThesisPSnPDF}
|
||||
|
||||
% *****************************************************************************
|
||||
% ******************************* Class Options *******************************
|
||||
% *****************************************************************************
|
||||
% `a4paper` or `a5paper` or `letter`: Paper size
|
||||
% `a4paper'(Cambridge University recommended page size - set as default) or `a5paper': Paper size
|
||||
%
|
||||
% `10pt` or `11pt` or `12pt`: Font Size
|
||||
% `11pt' or `12pt'(default): Font Size 10pt is NOT recommended by the University)
|
||||
%
|
||||
% `oneside` or `twoside`: Printing double side (twoside) or single side.
|
||||
% `oneside' or `twoside'(default): Printing double side (twoside) or single side.
|
||||
%
|
||||
% `print`: Use `print` for print version with appropriate margins and page layout. Leaving the options field blank will activate Online version.
|
||||
% `print': Use `print' for print version with appropriate margins and page layout. Leaving the options field blank will activate Online version.
|
||||
%
|
||||
% `index`: For index at the end of the thesis
|
||||
% `index': For index at the end of the thesis
|
||||
%
|
||||
% `draft`: For draft mode without loading any images (same as draft in book)
|
||||
% `draft': For draft mode without loading any images (same as draft in book)
|
||||
%
|
||||
% ************************* Custom Page Margins ********************************
|
||||
%
|
||||
@ -24,30 +24,30 @@
|
||||
%
|
||||
% ******************* Choosing the Fonts in Class Options *********************
|
||||
%
|
||||
% `times`: For Times font with math support.
|
||||
% `times' : Times font with math support. (Cambridge University recommends using times)
|
||||
%
|
||||
% `fourier`: For Fourier font
|
||||
% `fourier': Utopia Font with Fourier Math font
|
||||
%
|
||||
% `customfont`: Use `customfont' option in the document class and load the package in the preamble.tex
|
||||
% `customfont': Use `customfont' option in the document class and load the package in the preamble.tex
|
||||
%
|
||||
% `default (leave empty)`: When no font is specified, `Latin Modern` is used as the default font with Math Support.
|
||||
% default or leave empty: `Latin Modern' font will be loaded.
|
||||
%
|
||||
% ******************** Choosing the Bibliography style ***********************
|
||||
%
|
||||
% `authoryear`: For author-year citation eg., Krishna (2013)
|
||||
% `authoryear': For author-year citation eg., Krishna (2013)
|
||||
%
|
||||
% `numbered`: (Default Option) For numbered and sorted citation e.g., [1,5,2]
|
||||
% `numbered': (Default Option) For numbered and sorted citation e.g., [1,5,2]
|
||||
%
|
||||
% `custombib`: Define your own bibliography style in the `preamble.tex` file.
|
||||
% `\RequirePackage[square, sort, numbers, authoryear]{natbib}`
|
||||
% `custombib': Define your own bibliography style in the `preamble.tex' file.
|
||||
% `\RequirePackage[square, sort, numbers, authoryear]{natbib}'
|
||||
%
|
||||
% ********************** Choosing the Page Style *********************************
|
||||
%
|
||||
% `default (leave empty)`: For Page Numbers in Header (Left Even, Right Odd) and Chapter Name in Header (Right Even) and Section Name (Left Odd). Blank Footer.
|
||||
% `default (leave empty)': For Page Numbers in Header (Left Even, Right Odd) and Chapter Name in Header (Right Even) and Section Name (Left Odd). Blank Footer.
|
||||
%
|
||||
% `PageStyleI`: Chapter Name next & Page Number on Even Side (Left Even). Section Name & Page Number in Header on Odd Side (Right Odd). Footer is empty.
|
||||
% `PageStyleI': Chapter Name next & Page Number on Even Side (Left Even). Section Name & Page Number in Header on Odd Side (Right Odd). Footer is empty.
|
||||
%
|
||||
% `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
|
||||
% `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
|
||||
|
||||
|
||||
% ********************************* Preamble **********************************
|
||||
@ -135,8 +135,8 @@
|
||||
% ***********************************Bibliography**********************************
|
||||
|
||||
\begin{spacing}{0.9}
|
||||
%\bibliographystyle{apalike}
|
||||
\bibliographystyle{plainnat}
|
||||
\bibliographystyle{apalike}
|
||||
%\bibliographystyle{plainnat} % use this to have URLs listed in References
|
||||
\renewcommand{\bibname}{References}% changes default name Bibliography-> References
|
||||
\cleardoublepage
|
||||
\bibliography{References/References} % Path to your References.bib file
|
||||
|
Loading…
Reference in New Issue
Block a user