-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
179 lines (158 loc) · 6.6 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
% **************************************************************************************************************
% A PhD thesis suitable for submission at the University of Sussex
%
% Copyright (c) 2018 Martin Jung
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in all
% copies or substantial portions of the Software.
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.
%
% **************************************************************************************************************
% Document class via KOMA script
\documentclass[a4paper,12pt,oneside]{memoir}
\newcommand{\myTitle}{Quantifying the impacts of land change on biodiversity \xspace}
%\newcommand{\mySubtitle}{Not set \xspace}
\newcommand{\myKeywords}{Biodiversity, Remote sensing, Land change, Land use, PREDICTS, biotic lag, BBS, history \xspace}
\newcommand{\myDegree}{ PhD Environmental Science \xspace}
\newcommand{\myName}{Martin Jung\xspace}
\newcommand{\myNameLink}{http://www.sussex.ac.uk/profiles/357982}
\newcommand{\myProf}{J{\"o}rn P. W. Scharlemann \xspace}
\newcommand{\myOtherProf}{Pedram Rowhani\xspace}
\newcommand{\mySupervisor}{J{\"o}rn P. W. Scharlemann \xspace}
\newcommand{\myFaculty}{School of Life Sciences\xspace}
\newcommand{\myDepartment}{Division of Evolution, Behaviour and Environment\xspace}
\newcommand{\myUni}{University of Sussex\xspace}
\newcommand{\myLocation}{Brighton\xspace}
\newcommand{\myTime}{\today \xspace}
\newcommand{\myVersion}{version 1.0\xspace}
% Load all settings and packages
\input{settings}
% **************************************************************************************************************
%---------------------------------------------------
% BEGIN DOCUMENT
%---------------------------------------------------
\begin{document}
%\frenchspacing
\raggedbottom
%\pagestyle{plain}
\makeatletter
\renewcommand{\counterwithin}{\@ifstar{\@csinstar}{\@csin}}
\makeatother
\pagestyle{custom}% Set page style to custom
%\chapterstyle{madsen} % Set chapter style
\chapterstyle{gilgauge} % Revamped Madsen style moving the number out of the margin
%---------------------------------------------------
% PREAMBLE: roman page numbering i, ii, iii, ...
%---------------------------------------------------
\begingroup
\frontmatter
\pagenumbering{roman}
\clearpage\input{front/Titlepage} % Title page
%\clearpage\input{front/License} % License
\clearpage\input{front/Declaration} % Declaration page
\clearpage\input{front/Abstract} % Abstract page
\clearpage\input{front/Acknowledgments} % Acknowledgements page
% \addcontentsline{toc}{chapter}{Summary}
\endgroup
%---------------------------------------------------
% TABLE OF CONTENTS, LISTS OF TABLES & FIGURES
%---------------------------------------------------
\begingroup
\newpage
\setlength{\parskip}{0pt} % To restore distance between Chapters, sections and subsections in the table of contents
\pdfbookmark[0]{Contents}{contents_bookmark}
\pagestyle{custom}% Set page style to custom
\chapterstyle{madsen}
% \chapterstyle{hansen} % Set chapter style
\tableofcontents* % as per in memoir class
%\listoffigures* % list of figures
%\listoftables* % list of tables
\endgroup
%---------------------------------------------------
% MAIN THESIS TEXT: arabic page numbering 1, 2, 3, ...
% THESIS CONTENT - CHAPTERS
%---------------------------------------------------
\mainmatter
%\setcounter{page}{90} % Manual adjustment if necessary
% Modify the header style
%\pagestyle{scrheadings}
\pagenumbering{arabic} %Start official numbering here
\begingroup
\input{content/01Chapter} %Introduction
\input{content/02Chapter} % Pairwise piece
\input{content/03Chapter} %Abrupt land change
\input{content/04Chapter} %Land sequence piece
\input{content/05Chapter} %Bird piece
\input{content/06Chapter} %Synthesis
\endgroup
% Acronyms of communly used terms
%\input{front/Acronyms.tex}
%---------------------------------------------------
% BIBLIOGRAPHY
%---------------------------------------------------
\backmatter
\clearpage
\phantomsection
%\markright{ \spacedlowsmallcaps{Bibliography} }{\spacedlowsmallcaps{Bibliography}}
\begin{small}
\bibliography{allreferences}
\end{small}
%\clearpage\input{front/Colophon}
%---------------------------------------------------
% APPENDICES
%---------------------------------------------------
\setcounter{chapter}{1}
\appendix
\counterwithin{figure}{section}
\counterwithin{table}{section}
\chapter{Appendix}
\clearpage
\markboth{}{Appendix}
%\begingroup
\section{Appendix - Chapter 2}
% Ugly hack, but it works
\markboth{}{Appendix - Chapter 2}
\setcounter{figure}{0} \renewcommand{\thefigure}{A.2.\arabic{figure}}
\setcounter{table}{0} \renewcommand{\thetable}{A.2.\arabic{table}}
\input{appendix/02AChapter.tex}
\clearpage
\markboth{}{Appendix - Chapter 3}
\section{Appendix - Chapter 3}
\markboth{}{Appendix - Chapter 3}
\setcounter{figure}{0} \renewcommand{\thefigure}{A.3.\arabic{figure}}
\setcounter{table}{0} \renewcommand{\thetable}{A.3.\arabic{table}}
\input{appendix/03AChapter.tex}
\clearpage
\markboth{}{Appendix - Chapter 4}
\section{Appendix - Chapter 4}
\markboth{}{Appendix - Chapter 4}
\setcounter{figure}{0} \renewcommand{\thefigure}{A.4.\arabic{figure}}
\setcounter{table}{0} \renewcommand{\thetable}{A.4.\arabic{table}}
\input{appendix/04AChapter.tex}
\clearpage
\markboth{}{Appendix - Chapter 5}
\section{Appendix - Chapter 5}
\markboth{}{Appendix - Chapter 5}
\setcounter{figure}{0} \renewcommand{\thefigure}{A.5.\arabic{figure}}
\setcounter{table}{0} \renewcommand{\thetable}{A.5.\arabic{table}}
\input{appendix/05AChapter.tex}
\clearpage
%\endgroup
%---------------------------------------------------
% END DOCUMENT
%---------------------------------------------------
\end{document}