/
usthesis.layout
295 lines (257 loc) · 6.06 KB
/
usthesis.layout
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[usthesis]{thesis (Stellenbosch)}
# For the University of Stellenbosch thesis style by Danie Els
# Author: Stéfan van der Walt <stefan@sun.ac.za>
Input stdclass.inc
Sides 1
PageStyle Headings
TitleLatexName "frontmatter\TitlePage"
Preamble
\usepackage{color}
\definecolor{USmaroon}{rgb}{0.375,0.1328,0.2305}
\definecolor{USgray}{rgb}{0.5469,0.5895,0.6016}
\usepackage{graphicx}
\usepackage{usbib}
EndPreamble
ClassOptions
FontSize 10|11|12
Other "a4paper,openany,masters-t,afrikaans,UKenglish"
End
DefaultFont
Family Roman
Series Medium
Shape Up
Size Normal
Color None
EndFont
# Afrikaans style definition
Style Afrikaans
Margin Static
LatexType Environment
LatexName Afr
ParIndent MM
ParSkip 0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
Font
Color blue
EndFont
End
# English style definition
Style English
Margin Static
LatexType Environment
LatexName Eng
ParIndent MM
ParSkip 0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
Font
Color magenta
EndFont
End
Style Author
Margin Static
LatexType Command
InTitle 1
LatexName author
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
AlignPossible Center
LabelType No_Label
# standard font definition
Font
Size Large
EndFont
OptionalArgs 1
End
Style Degree
CopyStyle Author
LabelType Static
LabelString "Degree:"
LatexName degree
Margin Static
LeftMargin MMMMM
LatexType Command
Align Center
AlignPossible Center
LabelFont
Color Blue
EndFont
End
Style Faculty
CopyStyle Author
LabelType Static
LabelString "Faculty:"
LatexName faculty
Margin Static
LeftMargin MMMMM
LatexType Command
Align Center
AlignPossible Center
LabelFont
Color Blue
EndFont
End
Style Address
LabelType No_Label
LatexName address
LatexType Command
InTitle 1
Align Center
AlignPossible Center
BottomSep 0.4
Font
Shape Slanted
EndFont
PreAmble
EndPreamble
End
Style Studyleader
CopyStyle Author
LatexName studyleader
LatexType Command
LabelType Top_Environment
LabelString "Advisor(s):"
Margin First_Dynamic
Align Center
AlignPossible Center
TopSep 0.3
LabelFont
Color Blue
EndFont
End
Style Date
LatexName setdate
LabelType Static
LabelString "Date: "
LabelFont
Color blue
EndFont
End
Style Declaration
KeepEmpty 1
LatexType Command
LatexName DeclarationPage{}\newpage{}
Margin First_Dynamic
Align Center
AlignPossible Center
LabelType Static
LabelString "-Declaration Page-"
LeftMargin MMMMM
TopSep 1.5
BottomSep 1.2
LabelFont
Family Roman
Series Bold
Size Largest
Color Latex
EndFont
End
Style Copyright
KeepEmpty 1
CopyStyle Declaration
LatexName CopyrightPage{}\newpage{}
LabelString "-Copyright Page-"
End
Style Mainmatter
KeepEmpty 1
CopyStyle Declaration
LatexName mainmatter
LabelString "-Main-"
End
Style Samevatting
CopyStyle Abstract
LatexParam [afrikaans]
LabelString "Samevatting"
End
Style FrontChapter
CopyStyle Chapter*
LatexName chapter
TopSep 1.5
End
Style Definition
Margin Manual
LatexType List_Environment
LatexName listofsymbols
LabelType Manual
LabelString 00.00.0000
LabelSep xxx
NextNoindent 1
ParSkip 0.4
TopSep 0.7
BottomSep 0.7
ParSep 0.5
Align Block
AlignPossible Block, Left
Preamble
\newenvironment{listofsymbols}[1]%<- Nomenclature list environment
{\list{}{%
\setlength{\labelwidth}{2em}%
\setlength{\labelsep}{1em}%
\setlength{\itemindent}{0pt}%
\setlength{\leftmargin}{\labelwidth+\labelsep-\itemindent+1em}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemsep}{\smallskipamount}%
\setlength{\parsep}{\parskip}%
\renewcommand\makelabel[1]{##1\hfil}}%
}{\endlist}
EndPreamble
End
Style Bibliography
TopSep 1
LabelString Bibliography
# label font definition
LabelFont
Series Bold
Size Huge
EndFont
End
Style Appendix
Margin Static
LatexType Command
LatexName usappendix
NeedProtect 1
NextNoIndent 1
ParSkip 0.4
TopSep 4
BottomSep 0.8
ParSep 0.8
Align Block
AlignPossible Block, Left
LabelType Counter_Chapter
LabelString "Chapter "
LabelStringAppendix "Appendix "
OptionalArgs 1
# standard font definition
Font
Series Bold
Size Huge
EndFont
Preamble
\newcommand\usappendix[1]{
\clearpage
\setcounter{page}{1}
\renewcommand{\thepage}{\thechapter-\arabic{page}}
\chapter{#1}
}
EndPreamble
End
# Numbering Algorithm floats within chapters
# (from http://home.caltech.edu/ling/tips/cit_thesis.html)
Float
Type algorithm
GuiName Algorithm
Placement tbp
Extension loa
NumberWithin chapter
Style ruled
ListName "List of Algorithms"
LaTeXBuiltin false
End