-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththesis.tex
156 lines (112 loc) · 3.04 KB
/
thesis.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
\startproduct thesis
% Features:
% Style Switch: Classic/Modern (via modes)*
% Colour Switch: BW/Coloured (via modes)*
% Colour and fontsizes (via variables)*
% Fonts (via variables)*
% Chapter Epigraphs
% Fullpage Figures*
% Tables
% Figures and Captions
% Parts:
% Cover *
% Styled Pre-Title (possibly copy of cover)
% Title Page
% Abstract
% Dedication
% Epigraph
% TOC, TOF, TOT
% Abbreviations
% Symbols
% Foreword/Acknowledgements
% Bibliography
% Index
%% BUGS
%% Left/right margin figures are different should be done automatically
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Thesis Project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Overall project
\project project_thesis
\enablemode[docbody]
% Thesis specific layout
\environment env_thesis_layout
\setupnotation[footnote][way=bypage,numbercommand=\tf]
\setupcolor[hex]
\definecolor[linkcolor][h=222222]
\definecolor[linkcontrastcolor][h=EE2222]
% Use pdf links & clickable urls
\setupinteraction[state=start, color=linkcolor, contrastcolor=linkcontrastcolor,
focus=standard]
% Use this module to print epigraphs
\usemodule[epigraph]
% Setup bibliography
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=thesis]
\version[concept]
\language[en-gb]
%\showlayout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Title
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The title page
% We want a pretitle
\enablemode[pretitled]
\component title
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Front Matter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startfrontmatter
% Let the page numbering appear with roman numerals
% in the middle
\setuppagenumber[numberconversion=romannumerals,number=1]
\resetpagenumber
\setuppagenumbering[location=middle]
% Compact mode removes forcing frontmatter components
% to start on an odd page
% \enablemode[compact]
\component abstract
\component dedication
\component epigraph
\component tocs
\component symabbrv
\setuplayout[reset]
\stopfrontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Body Matter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startbodymatter
% Let the page numbering reappear with arabic numerals
\setuppagenumber[numberconversion=numbers]
\setuppagenumbering[conversion=numbers,
location=right]
\component foreword
% Footnotes
\setupfootnotes[rule=off]
% One and half line spacing (if needed)
\setupinterlinespace[medium]
\component intro
\component pics
\component math
\stopbodymatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startappendices
\setuppagenumber[numberconversion=numbers]
\setuppagenumbering[conversion=numbers,
location=right]
\chapter{Test}
\stopappendices
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Backmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startbackmatter
\setuppagenumber[numberconversion=numbers]
\setuppagenumbering[conversion=numbers,
location=right]
\component bib
\component index
\stopbackmatter
\stopproduct