Formatting in class and tex files
This commit is contained in:
parent
66c5d791b8
commit
a343db7c5f
@ -57,7 +57,7 @@
|
||||
\newif\ifPHD@pageStyleI\PHD@pageStyleIfalse % Set Page StyleI
|
||||
\DeclareOption{PageStyleI}{\PHD@pageStyleItrue}
|
||||
|
||||
\newif\ifPHD@pageStyleII\PHD@pageStyleIIfalse % Set Page StyleI
|
||||
\newif\ifPHD@pageStyleII\PHD@pageStyleIIfalse % Set Page StyleII
|
||||
\DeclareOption{PageStyleII}{\PHD@pageStyleIItrue}
|
||||
|
||||
% ***************************** Custom Margins ********************************
|
||||
@ -119,7 +119,7 @@ PhD thesis guidelines recommend using A4 or A5paper}
|
||||
% 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
|
||||
'\CurrentOption'. I'll 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}
|
||||
@ -233,7 +233,7 @@ supported!}
|
||||
% ************************** Layout and Formatting *****************************
|
||||
\def\pdfshellescape{1}
|
||||
\RequirePackage{lscape} % Supports Landscape Layout
|
||||
\RequirePackage{setspace} % Define line spacing in para
|
||||
\RequirePackage{setspace} % Define line spacing in paragraph
|
||||
\RequirePackage{calc} % To calculate vertical spacing
|
||||
|
||||
% ************************* Conditional Statements *****************************
|
||||
@ -315,7 +315,7 @@ and define the natbibpackage with required style in the Preamble.tex file}
|
||||
\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}
|
||||
font in the preamble.tex file by specifying `customfont' in the class options}
|
||||
\RequirePackage{lmodern}
|
||||
\setFonttrue
|
||||
\fi
|
||||
@ -500,6 +500,7 @@ font in preamble by specifying `customfont' in the class options}
|
||||
|
||||
% ******************************** Title Page **********************************
|
||||
\renewcommand{\maketitle}{
|
||||
|
||||
%%Can use the line below to remove the blank page after the title page
|
||||
%%\setcounter{page}{0} % Sasa Tomic
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
% ******************************************************************************
|
||||
% ****************************** Custom Margin *********************************
|
||||
|
||||
% Add `custommargin' in the document class option to use this section
|
||||
% Add `custommargin' in the document class options to use this section
|
||||
% Set {innerside margin / outerside margin / topmargin / bottom margin} and
|
||||
% many custom size for page layout
|
||||
% other page dimensions
|
||||
\ifsetMargin
|
||||
\else
|
||||
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
|
||||
@ -17,7 +17,7 @@
|
||||
\ifsetFont
|
||||
\else
|
||||
% Set your custom font here and use `customfont' in options. Leave empty to
|
||||
% load computer modern font.
|
||||
% load computer modern font (default LaTeX font).
|
||||
\RequirePackage{libertine}
|
||||
\fi
|
||||
|
||||
@ -58,33 +58,38 @@
|
||||
|
||||
|
||||
% ************************* Algorithms and Pseudocode **************************
|
||||
|
||||
%\usepackage{algpseudocode}
|
||||
|
||||
|
||||
% ********************Captions and Hyperreferencing / URL **********************
|
||||
%% Captions: This makes captions of figures use a boldfaced small font.
|
||||
|
||||
% Captions: This makes captions of figures use a boldfaced small font.
|
||||
%\RequirePackage[small,bf]{caption}
|
||||
|
||||
\RequirePackage[labelsep=space,tableposition=top]{caption}
|
||||
\renewcommand{\figurename}{Fig.} %to support older versions of captions.sty
|
||||
|
||||
% ************************ Formatting / Footnote *******************************
|
||||
|
||||
%\usepackage[perpage]{footmisc} %Range of footnote options
|
||||
|
||||
|
||||
% ****************************** Line Numbers **********************************
|
||||
|
||||
%\RequirePackage{lineno}
|
||||
%\linenumbers
|
||||
|
||||
% ************************** Graphics and figures *****************************
|
||||
% Subfigure (note: this must be included after the `caption` package).
|
||||
|
||||
%\usepackage{rotating}
|
||||
%\usepackage{wrapfig}
|
||||
%\usepackage{float}
|
||||
\usepackage{subfig}
|
||||
\usepackage{subfig} %note: subfig must be included after the `caption` package.
|
||||
|
||||
|
||||
% ********************************* Table **************************************
|
||||
|
||||
%\usepackage{longtable}
|
||||
%\usepackage{multicol}
|
||||
%\usepackage{multirow}
|
||||
@ -92,6 +97,7 @@
|
||||
|
||||
|
||||
% ***************************** Math and SI Units ******************************
|
||||
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amssymb}
|
||||
@ -104,16 +110,19 @@
|
||||
|
||||
|
||||
% ********************** TOC depth and numbering depth *************************
|
||||
|
||||
\setcounter{secnumdepth}{2}
|
||||
\setcounter{tocdepth}{2}
|
||||
|
||||
% ******************************* Nomenclature *********************************
|
||||
|
||||
% To change the name of the Nomenclature section, uncomment the following line
|
||||
|
||||
% \renewcommand\nomname{Symbols}
|
||||
|
||||
|
||||
% ********************************* Appendix ***********************************
|
||||
|
||||
% The default value of both \appendixtocname and \appendixpagename is `Appendices'. These names can all be changed via:
|
||||
|
||||
%\renewcommand{\appendixtocname}{List of appendices}
|
||||
|
32
README.md
32
README.md
@ -171,9 +171,9 @@ It supports the following custom options:
|
||||
|
||||
* `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.
|
||||
|
||||
Header (Even) : 4 Introduction
|
||||
Header (Even) : 4 Introduction
|
||||
|
||||
Header (Odd) : 1.2 Section Name 5
|
||||
Header (Odd) : 1.2 Section Name 5
|
||||
|
||||
Footer : Empty
|
||||
|
||||
@ -181,17 +181,33 @@ It supports the following custom options:
|
||||
|
||||
Header (Even) : 4 | Introduction
|
||||
|
||||
Header (Odd) : 1.2 Section Name | 5
|
||||
Header (Odd) : 1.2 Section Name | 5
|
||||
|
||||
Footer : Empty
|
||||
Footer : 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. Layout:
|
||||
|
||||
Header (Even) : Introduction
|
||||
|
||||
Header (Odd) : 1.2 Section Name
|
||||
Header (Odd) : 1.2 Section Name
|
||||
|
||||
Footer[centered]: 3
|
||||
Footer[centered]: 3
|
||||
|
||||
### Changing the visual style of chapter headings
|
||||
|
||||
The visual style of chapter headings can be modified using the `titlesec` package. Edit the following lines in the `preamble.tex` file.
|
||||
|
||||
\RequirePackage{titlesec}
|
||||
\newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
|
||||
{\Large\filleft{\chaptertitlename} \Huge\thechapter}
|
||||
{1ex}{}
|
||||
[\vspace{1ex}\titlerule]}
|
||||
\newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
|
||||
{\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex}
|
||||
{\titlerule\vspace{1ex}\filright}
|
||||
[\vspace{1ex}\titlerule]}
|
||||
\newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
|
||||
\PreContentTitleFormat
|
||||
|
||||
### Custom Settings
|
||||
|
||||
@ -330,11 +346,11 @@ If you are generating a separate abstract for your thesis submission, ignore thi
|
||||
|
||||
* 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.
|
||||
|
||||
* On older versions of dvips (version 5.97 or below), if your page margins are not set properly in your PDF, when compiling through DVI >> PS >> PDF, please use a4paper or a5paper in the document class. If you are still having issues you can run:
|
||||
* 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:
|
||||
|
||||
ps2pdf -sPAPERSIZE=a4 thesis.ps thesis.pdf
|
||||
|
||||
This issue is 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.
|
||||
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.
|
||||
|
||||
* If you find any let me know, or even better, patch it and contribute to the development of the LaTeX Template.
|
||||
|
||||
|
11
thesis.tex
11
thesis.tex
@ -1,4 +1,4 @@
|
||||
% ********************o*********** PhD Thesis Template **************************
|
||||
% ******************************* PhD Thesis Template **************************
|
||||
% Please have a look at the README.md file for info on how to use the template
|
||||
|
||||
\documentclass[a4paper,times,numbered,print,index]{Classes/PhDThesisPSnPDF}
|
||||
@ -147,10 +147,13 @@ Cambridge}}
|
||||
% ******************************** Main Matter *********************************
|
||||
\mainmatter
|
||||
|
||||
\include{Chapter1/chapter1} \include{Chapter2/chapter2}
|
||||
\include{Chapter1/chapter1}
|
||||
\include{Chapter2/chapter2}
|
||||
\include{Chapter3/chapter3}
|
||||
%\include{Chapter4/chapter4} \include{Chapter5/chapter5}
|
||||
%\include{Chapter6/chapter6} \include{Chapter7/chapter7}
|
||||
%\include{Chapter4/chapter4}
|
||||
%\include{Chapter5/chapter5}
|
||||
%\include{Chapter6/chapter6}
|
||||
%\include{Chapter7/chapter7}
|
||||
|
||||
% ********************************** Appendices ********************************
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user