Formatted the class file and preamble

This commit is contained in:
Krishna Kumar 2013-12-07 02:38:37 +00:00
parent f89c0dea78
commit 02c9c812f0
4 changed files with 1361 additions and 1322 deletions

View File

@ -68,8 +68,14 @@
\newif \ifdefineAbstract\defineAbstractfalse %To enable Separate abstract
\newif\ifCU@abstract\CU@abstractfalse % Enable Separate Abstract
\DeclareOption{abstract}{\CU@abstracttrue
\ClassWarning{PhDThesisPSnPDF}{You have chosen an option that generates only the Title page and an abstract with PhD title and author name, if this was intentional, ignore this warning. Congratulations on submitting your thesis!! If not, please remove the option `abstract' from the document class and recompile. Good luck with your writing!}}
\DeclareOption{abstract}{
\CU@abstracttrue
\ClassWarning{PhDThesisPSnPDF}{You have chosen an option that generates only
the Title page and an abstract with PhD title and author name, if this was
intentional, ignore this warning. Congratulations on submitting your thesis!!
If not, please remove the option `abstract' from the document class and
recompile. Good luck with your writing!}
}
\ProcessOptions\relax%
@ -78,7 +84,12 @@
% Font Size
\newcommand\CU@ptsize{12pt} %Set Default Size as 12
\DeclareOption{10pt}{\ClassWarning{PhDThesisPSnPDF}{The Cambridge University PhD thesis guidelines recommend using a minimum font size of 11pt (12pt is preferred) and 10pt for footnotes.}\renewcommand\CU@ptsize{10pt}}
\DeclareOption{10pt}{
\ClassWarning{PhDThesisPSnPDF}{The Cambridge University PhD thesis guidelines
recommend 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}%
@ -88,9 +99,11 @@
\DeclareOption{a4paper}{\renewcommand\CU@papersize{a4paper}}
\DeclareOption{a5paper}{\renewcommand\CU@papersize{a5paper}}
\DeclareOption{letterpaper}{\ClassWarning{PhDThesisPSnPDF}{
The Cambridge University Engineering Deparment PhD thesis guidelines recommend using A4 or A5paper}
\renewcommand\CU@papersize{letterpaper}}
\DeclareOption{letterpaper}{
\ClassWarning{PhDThesisPSnPDF}{The Cambridge University Engineering Deparment
PhD thesis guidelines recommend using A4 or A5paper}
\renewcommand\CU@papersize{letterpaper}
}
\PassOptionsToClass{\CU@papersize}{book}%
@ -103,7 +116,10 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
% Generates Warning for unknown options
\DeclareOption*{
\ClassWarning{PhDThesisPSnPDF}{Unknown or non-standard option '\CurrentOption'. Will see if I can load it from the book class. If you get a warning unused global option(s): `\CurrentOption` then the option is not supported!}
\ClassWarning{PhDThesisPSnPDF}{Unknown or non-standard option
'\CurrentOption'. Will see if I can load it from the book class. If you get a
warning unused global option(s): `\CurrentOption` then the option is not
supported!}
\PassOptionsToClass{\CurrentOption}{book}
}
@ -166,6 +182,7 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
\else
\hypersetup{pdfpagelayout=OneColumn}
\fi
\else
% For PDF Online version
\hypersetup{
@ -181,7 +198,8 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
linkcolor=blue,
urlcolor=blue,
citecolor=blue,
anchorcolor=green}
anchorcolor=green
}
\ifCU@custommargin
\setMarginfalse
@ -257,7 +275,10 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
\else
\RequirePackage[numbers,sort&compress]{natbib} % Default - numbered
\setBibtrue
\ClassWarning{PhDThesisPSnPDF}{No bibliography style was specified. Default numbered style is used. If you would like to use a different style, use `authoryear' or `numbered' in the options in documentclass or use `custombib` and define the natbibpackage with required style in the Preamble.tex file}
\ClassWarning{PhDThesisPSnPDF}{No bibliography style was specified.
Default numbered style is used. If you would like to use a different style, use
`authoryear' or `numbered' in the options in documentclass or use `custombib`
and define the natbibpackage with required style in the Preamble.tex file}
% Generate a warning message here
\fi
\fi
@ -282,7 +303,10 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
\ifCU@customfont
\setFontfalse
\else
\ClassWarning{PhDThesisPSnPDf}{Using default font Latin Modern. If you would like to use other pre-defined fonts use `times' (The Cambridge University PhD thesis guidelines recommend using Times font) 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' (The Cambridge University
PhD thesis guidelines recommend using Times font) or `fourier' or load a custom
font in preamble by specifying `customfont' in the class options}
\RequirePackage{lmodern}
\setFonttrue
\fi
@ -354,7 +378,8 @@ The Cambridge University Engineering Deparment PhD thesis guidelines recommend u
\else
% Default Style: Sets Page Number at the Top (LE/RO) with Chapter/Section Name on LO/RE and an empty footer
% Default Style: Sets Page Number at the Top (LE/RO) with Chapter/Section Name
% on LO/RE and an empty footer
\renewcommand{\chaptermark}[1]{\markboth {##1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1}}
\fancyhf{}

View File

@ -1,12 +1,13 @@
% *****************************************************************************
% ******************************* Custom Margin ********************************
% ******************************************************************************
% ****************************** Custom Margin *********************************
% Add `custommargin' in the document class option to use this section
% Set {innerside margin / outerside margin / topmargin / bottom margin} and many custom size for page layout
% Set {innerside margin / outerside margin / topmargin / bottom margin} and
% many custom size for page layout
\ifsetMargin
\else
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
\setFancyHdr % To apply fancy header after geometry package is loaded
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
\setFancyHdr % To apply fancy header after geometry package is loaded
\fi
% *****************************************************************************
@ -16,7 +17,9 @@
%\renewcommand\rmdefault{psb}
\ifsetFont
\else
\RequirePackage{libertine} % Set your custom font here and use `customfont' in options. Leave empty to load computer modern font.
% Set your custom font here and use `customfont' in options. Leave empty to
% load computer modern font.
\RequirePackage{libertine}
\fi
% *****************************************************************************
@ -26,7 +29,7 @@
\usepackage{cleveref} %Referencing without need to explicitly state fig /table
\ifsetBib % True, Bibliography option is chosen in class options
\else % If custom bibliography style chosen then load bibstyle here
\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib
\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib
\fi
@ -35,22 +38,22 @@
% *****************************************************************************
% ************************** Algorithms and Pseudocode *************************
%\usepackage{algpseudocode} % Algorithmicx package support for algorithms and pseudocode
% ************************* Algorithms and Pseudocode **************************
%\usepackage{algpseudocode}
% *********************Captions and Hyperreferencing / URL ***********************
% ********************Captions and Hyperreferencing / URL **********************
%% Captions: This makes captions of figures use a boldfaced small font.
%\RequirePackage[small,bf]{caption}
\RequirePackage[figurename=Fig.,labelsep=space,tableposition=top]{caption}
% ************************ Formatting / Footnote *****************************
% ************************ Formatting / Footnote *******************************
%\usepackage[perpage]{footmisc} %Range of footnote options
% ****************************** Line Numbers ********************************
% ****************************** Line Numbers **********************************
%\RequirePackage{lineno}
%\linenumbers
@ -62,14 +65,14 @@
\usepackage{subfig}
% ********************************* Table *************************************
% ********************************* Table **************************************
%\usepackage{longtable}
%\usepackage{multicol}
%\usepackage{multirow}
%\usepackage{tabularx}
% ****************************** Math and SI Units ****************************
% ***************************** Math and SI Units ******************************
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}

Binary file not shown.

2513
thesis.ps

File diff suppressed because it is too large Load Diff