dissertation-4-dissertation/Preamble/preamble.tex

167 lines
5.8 KiB
TeX
Raw Normal View History

2013-12-07 02:38:37 +00:00
% ******************************************************************************
% ****************************** Custom Margin *********************************
2013-12-09 22:04:17 +00:00
% Add `custommargin' in the document class options to use this section
2013-12-07 02:38:37 +00:00
% Set {innerside margin / outerside margin / topmargin / bottom margin} and
2013-12-09 22:04:17 +00:00
% other page dimensions
2014-01-20 01:21:13 +00:00
2013-11-26 00:56:29 +00:00
\ifsetMargin
\else
2013-12-07 02:38:37 +00:00
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
\setFancyHdr % To apply fancy header after geometry package is loaded
2013-11-26 00:56:29 +00:00
\fi
2013-11-25 11:11:21 +00:00
% *****************************************************************************
% ******************* Fonts (like different typewriter fonts etc.)*************
2013-11-25 11:11:21 +00:00
% Add `customfont' in the document class option to use this section
2014-01-20 01:21:13 +00:00
2013-11-25 11:11:21 +00:00
\ifsetFont
\else
2013-12-07 02:38:37 +00:00
% Set your custom font here and use `customfont' in options. Leave empty to
2013-12-09 22:04:17 +00:00
% load computer modern font (default LaTeX font).
2014-01-20 01:21:13 +00:00
2013-12-07 02:38:37 +00:00
\RequirePackage{libertine}
2013-11-25 11:11:21 +00:00
\fi
% *****************************************************************************
2013-12-07 20:40:49 +00:00
% **************************** Custom Packages ********************************
2013-11-17 01:01:46 +00:00
2014-04-21 23:20:36 +01:00
2013-12-07 02:38:37 +00:00
% ************************* Algorithms and Pseudocode **************************
2013-12-09 22:04:17 +00:00
2013-12-07 02:38:37 +00:00
%\usepackage{algpseudocode}
2013-11-17 01:01:46 +00:00
2013-12-07 02:38:37 +00:00
% ********************Captions and Hyperreferencing / URL **********************
2013-12-09 22:04:17 +00:00
% Captions: This makes captions of figures use a boldfaced small font.
2013-11-17 01:01:46 +00:00
%\RequirePackage[small,bf]{caption}
2013-12-08 12:39:32 +00:00
\RequirePackage[labelsep=space,tableposition=top]{caption}
\renewcommand{\figurename}{Fig.} %to support older versions of captions.sty
2013-11-17 01:01:46 +00:00
2014-04-21 11:45:36 +01:00
% *************************** Graphics and figures *****************************
2013-12-09 22:04:17 +00:00
%\usepackage{rotating}
%\usepackage{wrapfig}
2014-04-21 22:11:32 +01:00
% Uncomment the following two lines to force Latex to place the figure.
% Use [H] when including graphics. Note 'H' instead of 'h'
%\usepackage{float}
2014-04-21 22:11:32 +01:00
%\restylefloat{figure}
2014-05-15 09:55:18 +01:00
% Subcaption package is also available in the sty folder you can use that by
2014-04-22 17:46:24 +01:00
% uncommenting the following line
2014-05-15 09:55:18 +01:00
% This is for people stuck with older versions of texlive
2014-04-22 17:46:24 +01:00
%\usepackage{sty/caption/subcaption}
2014-04-21 11:45:36 +01:00
\usepackage{subcaption}
2013-11-17 01:01:46 +00:00
% ********************************** Table *************************************
2013-12-09 22:04:17 +00:00
%\usepackage{longtable}
%\usepackage{multicol}
%\usepackage{multirow}
%\usepackage{tabularx}
2013-11-17 01:01:46 +00:00
2013-12-07 02:38:37 +00:00
% ***************************** Math and SI Units ******************************
2013-12-09 22:04:17 +00:00
2013-11-17 01:01:46 +00:00
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
2014-05-02 18:34:14 +01:00
\usepackage{siunitx} % use this package module for SI units
2013-11-17 01:01:46 +00:00
2014-04-21 23:20:36 +01:00
% ******************************* Line Spacing *********************************
% Choose linespacing as appropriate. Default is single line spacing
% \doublespacing
% \onehalfspacing
% \singlespacing
% ************************ Formatting / Footnote *******************************
%\usepackage[perpage]{footmisc} %Range of footnote options
% *****************************************************************************
% *************************** Bibliography and References ********************
%\usepackage{cleveref} %Referencing without need to explicitly state fig /table
% Add `custombib' in the document class option to use this section
\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
% 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
% \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex}
% \bibliography{References/references} %Location of references.bib only for biblatex
\fi
% changes the default name `Bibliography` -> `References'
\renewcommand{\bibname}{References}
% *****************************************************************************
% *************** Changing the Visual Style of Chapter Headings ***************
% This section on visual style is from https://github.com/cambridge/thesis
% Uncomment the section below. Requires titlesec package.
%\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
2013-11-17 01:25:23 +00:00
% ******************************************************************************
% ************************* User Defined Commands ******************************
% ******************************************************************************
2014-05-03 08:18:07 +01:00
% ********************* To enable figures in draft mode ************************
\setkeys{Gin}{draft=false} % comment out to disable figures in draft mode
2014-04-21 23:20:36 +01:00
2014-01-16 00:34:36 +00:00
% *********** To change the name of Table of Contents / LOF and LOT ************
%\renewcommand{\contentsname}{My Table of Contents}
%\renewcommand{\listfigurename}{My List of Figures}
%\renewcommand{\listtablename}{My List of Tables}
2013-12-07 20:40:49 +00:00
% ********************** TOC depth and numbering depth *************************
2013-12-09 22:04:17 +00:00
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
2014-04-21 11:45:36 +01:00
2013-11-20 00:55:21 +00:00
% ******************************* Nomenclature *********************************
2013-12-09 22:04:17 +00:00
2013-11-20 00:55:21 +00:00
% To change the name of the Nomenclature section, uncomment the following line
2013-12-07 20:40:49 +00:00
2014-01-16 00:34:36 +00:00
%\renewcommand{\nomname}{Symbols}
2013-12-07 20:40:49 +00:00
% ********************************* Appendix ***********************************
2013-12-09 22:04:17 +00:00
2013-12-07 20:40:49 +00:00
% The default value of both \appendixtocname and \appendixpagename is `Appendices'. These names can all be changed via:
%\renewcommand{\appendixtocname}{List of appendices}
%\renewcommand{\appendixname}{Appndx}
2014-04-21 11:45:36 +01:00