dissertation-4-dissertation/Preamble/preamble.tex

234 lines
7.9 KiB
TeX
Raw Permalink 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-06-06 19:22:15 +01:00
\ifsetCustomMargin
2021-05-13 19:35:32 +01:00
\RequirePackage[left=20mm,right=20mm,top=32mm,bottom=20mm]{geometry}
2014-06-09 00:57:35 +01:00
\setFancyHdr % To apply fancy header after geometry package is loaded
2013-11-26 00:56:29 +00:00
\fi
% Add spaces between paragraphs
%\setlength{\parskip}{0.5em}
% Ragged bottom avoids extra whitespaces between paragraphs
\raggedbottom
% To remove the excess top spacing for enumeration, list and description
%\usepackage{enumitem}
%\setlist[enumerate,itemize,description]{topsep=0em}
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
2014-06-08 19:02:10 +01:00
\ifsetCustomFont
2014-06-09 00:57:35 +01:00
% Set your custom font here and use `customfont' in options. Leave empty to
% load computer modern font (default LaTeX font).
2015-06-19 22:08:36 +01:00
%\RequirePackage{helvet}
% For use with XeLaTeX
% \setmainfont[
% Path = ./libertine/opentype/,
% Extension = .otf,
% UprightFont = LinLibertine_R,
% BoldFont = LinLibertine_RZ, % Linux Libertine O Regular Semibold
% ItalicFont = LinLibertine_RI,
% BoldItalicFont = LinLibertine_RZI, % Linux Libertine O Regular Semibold Italic
% ]
% {libertine}
% % load font from system font
% \newfontfamily\libertinesystemfont{Linux Libertine O}
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
2013-12-07 02:38:37 +00:00
% ************************* Algorithms and Pseudocode **************************
2013-12-09 22:04:17 +00:00
2014-06-05 23:45:56 +01:00
%\usepackage{algpseudocode}
\usepackage{minted}
\usepackage{listings}
2020-11-28 14:17:03 +00:00
\setminted{
fontsize=\footnotesize,
linenos,
breaklines,
}
2013-12-07 02:38:37 +00:00
% ********************Captions and Hyperreferencing / URL **********************
2013-12-09 22:04:17 +00:00
2014-06-05 23:45:56 +01:00
% Captions: This makes captions of figures use a boldfaced small font.
2013-11-17 01:01:46 +00:00
%\RequirePackage[small,bf]{caption}
2014-06-05 23:45:56 +01:00
\RequirePackage[labelsep=space,tableposition=top]{caption}
2013-12-08 12:39:32 +00:00
\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
2021-04-08 21:01:48 +01: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}
2020-11-06 18:38:12 +00:00
\usepackage{pdfpages}
\usepackage{graphicx}
2020-11-28 14:17:03 +00:00
\usepackage{bytefield}
\usepackage{rotating}
2021-01-29 22:43:23 +00:00
\usepackage{dpfloat}
2021-02-08 00:08:51 +00:00
\usepackage{dirtree}
2021-04-08 21:01:48 +01:00
\usepackage{svg}
2013-11-17 01:01:46 +00:00
\usepackage{tikz}
\usetikzlibrary{positioning}
2021-02-08 01:05:06 +00:00
\usetikzlibrary{shapes.multipart}
2014-06-29 20:06:31 +01:00
% ********************************** Tables ************************************
2014-06-29 12:13:35 +01:00
\usepackage{booktabs} % For professional looking tables
2014-06-29 20:06:31 +01:00
\usepackage{multirow}
%\usepackage{multicol}
2014-06-29 20:06:31 +01:00
%\usepackage{longtable}
2020-11-19 20:57:30 +00:00
\usepackage{tabularx}
2013-11-17 01:01:46 +00:00
% *********************************** SI Units *********************************
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 *********************************
2014-05-31 17:01:18 +01:00
% Choose linespacing as appropriate. Default is one-half line spacing as per the
% University guidelines
2014-04-21 23:20:36 +01:00
% \doublespacing
% \onehalfspacing
% \singlespacing
2021-05-13 19:35:32 +01:00
\setstretch{1.0}
2014-04-21 23:20:36 +01:00
% ************************ Formatting / Footnote *******************************
2014-08-24 15:38:27 +01:00
% Don't break enumeration (etc.) across pages in an ugly manner (default 10000)
%\clubpenalty=500
%\widowpenalty=500
2014-06-05 23:45:56 +01:00
%\usepackage[perpage]{footmisc} %Range of footnote options
2014-04-21 23:20:36 +01:00
% *****************************************************************************
% *************************** Bibliography and References ********************
%\usepackage{cleveref} %Referencing without need to explicitly state fig /table
% Add `custombib' in the document class option to use this section
2014-06-09 00:05:59 +01:00
\ifuseCustomBib
2014-08-07 19:05:36 +01:00
\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
2014-08-07 19:05:36 +01:00
%\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex}
%\addbibresource{References/references} %Location of references.bib only for biblatex, Do not omit the .bib extension from the filename.
\fi
2020-12-31 21:02:32 +00:00
\setcitestyle{authoryear,open={(},close={)}}
% changes the default name `Bibliography` -> `References'
2020-11-06 18:38:12 +00:00
%\renewcommand{\bibname}{References}
2013-11-17 01:25:23 +00:00
% ******************************************************************************
% ************************* User Defined Commands ******************************
% ******************************************************************************
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}
2021-02-02 22:45:05 +00:00
\setcounter{tocdepth}{1}
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
2014-06-05 23:45:56 +01:00
% The default value of both \appendixtocname and \appendixpagename is `Appendices'. These names can all be changed via:
2013-12-07 20:40:49 +00:00
%\renewcommand{\appendixtocname}{List of appendices}
%\renewcommand{\appendixname}{Appndx}
2014-04-21 11:45:36 +01:00
% *********************** Configure Draft Mode **********************************
% Uncomment to disable figures in `draft'
2014-06-08 15:43:33 +01:00
%\setkeys{Gin}{draft=true} % set draft to false to enable figures in `draft'
% These options are active only during the draft mode
2014-06-05 23:45:56 +01:00
% Default text is "Draft"
2014-06-06 17:55:39 +01:00
%\SetDraftText{DRAFT}
2014-06-06 17:55:39 +01:00
% Default Watermark location is top. Location (top/bottom)
%\SetDraftWMPosition{bottom}
% Draft Version - default is v1.0
2014-06-06 17:55:39 +01:00
%\SetDraftVersion{v1.1}
% Draft Text grayscale value (should be between 0-black and 1-white)
% Default value is 0.75
%\SetDraftGrayScale{0.8}
2014-08-15 11:46:25 +01:00
2014-08-16 17:53:14 +01:00
% ******************************** Todo Notes **********************************
2014-10-02 15:14:38 +01:00
%% Uncomment the following lines to have todonotes.
2014-10-02 15:28:14 +01:00
%\ifsetDraft
% \usepackage[colorinlistoftodos]{todonotes}
2021-02-08 16:14:28 +00:00
% \newcommand{\mynote}[1]{\todo[author=jsh77,size=\small,inline,color=green!40]{#1}}
2014-10-02 15:28:14 +01:00
%\else
% \newcommand{\mynote}[1]{}
% \newcommand{\listoftodos}{}
%\fi
2014-10-02 15:14:38 +01:00
2021-02-08 16:14:28 +00:00
\usepackage[colorinlistoftodos]{todonotes}
\newcommand{\mynote}[1]{\todo[author=jsh77,size=\small,inline,color=orange!40]{#1}}
2014-10-02 15:14:38 +01:00
% Example todo: \mynote{Hey! I have a note}
2017-11-06 17:27:51 +00:00
2018-10-24 11:56:05 +01:00
% ******************************** Highlighting Changes **********************************
%% Uncomment the following lines to be able to highlight text/modifications.
%\ifsetDraft
% \usepackage{color, soul}
% \newcommand{\hlc}[2][yellow]{{\sethlcolor{#1} \hl{#2}}}
% \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}}
%\else
% \newcommand{\hlc}[2]{}
% \newcommand{\hlfix}[2]{}
%\fi
2018-10-24 11:56:05 +01:00
% Example highlight 1: \hlc{Text to be highlighted}
% Example highlight 2: \hlc[green]{Text to be highlighted in green colour}
% Example highlight 3: \hlfix{Original Text}{Fixed Text}
2017-11-06 17:27:51 +00:00
% *****************************************************************************
% ******************* Better enumeration my MB*************
\usepackage{enumitem}