This repository has been archived by the owner on May 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjcuthesis.layout
459 lines (401 loc) · 13 KB
/
jcuthesis.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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{jcuthesis}
# JCU Thesis textclass
# Based on the "UNSW Thesis" textclass by Mark Reid, and extended upon work by David L. Johnson and others.
# Author : David Breitkreutz <[email protected]>
#
# This is by no means the best way to set up a LyX layout - I probably should have
# defined a .cls file that was an extension of amsbook and put most of the markup
# in that. However, doing things this way means a user of this layout only need
# install this file and not worry about installing a new .cls file.
#
# Much of the code in the preamble is borrowed from:
# http://www.ctan.org/tex-archive/macros/latex/contrib/adfathesis/adfathesis.dtx
# General textclass parameters
# Description "jcuthesis"
Columns 1
Sides 2
PageStyle Headers
MaxCounter Counter_Chapter
ClassOptions
FontSize 8|9|10|11|12
End
# Standard style definition
Style Standard
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
End
############### Title Page.
Style Title
LatexType Command
LatexName title
InTitle 1
NewLine 1
End
Style Author
LatexType Command
LatexName author
InTitle 1
End
# Degree style definition
Style Degree
LatexType Command
LatexName degreetype
InTitle 1
Margin Dynamic
LabelType Static
LabelString "Degree: "
LabelFont
Series Bold
Size Normal
EndFont
End
# School style definition
Style School
CopyStyle Degree
LatexName school
LabelString "School: "
End
# University style definition
Style University
CopyStyle Degree
LatexName university
LabelString "University: "
End
# University style definition
Style CrestFilename
CopyStyle Degree
LatexName crestfilename
LabelString "Crest Filename: "
End
############### Pre-document Sections
Input amsdefs.inc
NoStyle Abstract
Input stdstruct.inc
Style Declaration
CopyStyle Abstract
LatexName declaration
LabelString "Declaration"
End
# Acknowledgements style definition
Style Acknowledgements
CopyStyle Abstract
LatexName acknowledgements
LabelString "Acknowledgements"
# label font definition
LabelFont
Series Bold
Size Normal
EndFont
End
############### Sections.
Input stdsections.inc
# Redefine some of the section styles.
Style Section
Align Left
AlignPossible Block, Center, Left
# standard font definition
Font
Series Medium
Size Large
EndFont
End
# Subsection-numbered style definition
Style Subsection
# standard font definition
Font
Series Bold
Size Normal
EndFont
End
# Subsubsection-numbered style definition
Style Subsubsection
# standard font definition
Font
Shape Italic
Size Normal
EndFont
End
# then define the unumbered sections, based on the numbered ones.
Input stdstarsections.inc
Input lyxmacros.inc
NoStyle Address
Input stdlayouts.inc
NoStyle Verse # Although mathematicians tend to be poets at times,
# we don't need this.
Input stdlists.inc
Input stdfloats.inc
############# Algorithm 2e Style
Float
Type algorithm2e
GuiName "Algorithm 2e"
Placement tbp
Extension loa
NumberWithin none
Style ruled
ListName "List of Algorithms"
LaTeXBuiltin false
End
Input stdcounters.inc
############### Verbatim environment using fancyvrb for code
Style Code
LatexType Environment
LatexName Verbatim
LatexParam "[fontsize=\smaller]" #,xleftmargin=2em,xrightmargin=2em]"
PassThru 1
NewLine 0
FreeSpacing 1
LeftMargin MMM
RightMargin MMM
ParSkip 0.0
TopSep 1.0
BottomSep 1.0
Align Left
AlignPossible Left
# standard font definition
Font
Family Typewriter
EndFont
Preamble
\usepackage{fancyvrb}
EndPreamble
End
########### Document Preamble
# Defines margins, etc
Preamble
\RequirePackage{graphicx}
%\numberwithin{section}{chapter}
%\theoremstyle{plain}
%\newtheorem{thm}{Theorem}[chapter]
%\numberwithin{figure}{chapter} %% Comment out for sequentially-numbered
%\numberwithin{table}{chapter} %% Comment out for sequentially-numbered
\newcommand{\setpagesize}{%
\setlength{\parskip}{0pt}
\raggedbottom
}
%Define the new environments we introduce
\newcommand{\ackname}{Acknowledgements}
\if@titlepage
\newenvironment{acknowledgements}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries \ackname
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
\else
\newenvironment{acknowledgements}{%
\if@twocolumn
\section*{\ackname}%
\else
\small
\begin{center}%
{\bfseries \ackname\vspace{-.5em}\vspace{\z@}}%
\end{center}%
\quotation
\fi}
{\if@twocolumn\else\endquotation\fi}
\fi
%-----------------------------------------------------------------------
% Reduce widow/orphan problems, mainly from a posting from Donald
% Arsenau on comp.text.tex, 24 Sep 1995.
% Updated to follow comments from Michael Downes on comp.text.tex,
% 31 Aug 1998.
%-----------------------------------------------------------------------
\doublehyphendemerits=10000 % No consecutive line hyphens.
\brokenpenalty=4991 % Reduce broken words across columns/pages.
\widowpenalty=9999 % Almost no widows at bottom of page.
\clubpenalty=9996 % Almost no orphans at top of page.
\interfootnotelinepenalty=9999 % Almost never break footnotes.
\predisplaypenalty=10000 % Default value
\postdisplaypenalty=1549 % Few breaks between display and widows
\displaywidowpenalty=1602 % At least as high as \postdisplaypenalty
%-----------------------------------------------------------------------
% Change float placement parameters to reduce problems. Based on
% values posted by Donald Arsenau on comp.text.tex at various times.
% See in particular 17th Nov 1997.
%-----------------------------------------------------------------------
\renewcommand{\topfraction}{.85}
\renewcommand{\bottomfraction}{.7}
\renewcommand{\textfraction}{.15}
\renewcommand{\floatpagefraction}{.66}
\renewcommand{\dbltopfraction}{.66}
\renewcommand{\dblfloatpagefraction}{.66}
\setcounter{topnumber}{9}
\setcounter{bottomnumber}{9}
\setcounter{totalnumber}{20}
\setcounter{dbltopnumber}{9}
%-----------------------------------------------------------------------
% Re-define \cleardoublepage as recommended by Piet van Oostrum in the
% documentation for fancyhdr.sty page 15. This is to avoid blank pages
% having headers or footers.
%-----------------------------------------------------------------------
\renewcommand{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
\thispagestyle{empty}
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%-----------------------------------------------------------------------
% Number figures, tables and equations by chapter. Re-define footnotes
% and minipage footnotes to be single spaced. Make new macros needed
% for thesis definitions.
%-----------------------------------------------------------------------
\renewcommand{\thefigure}{\thechapter.\@arabic\c@figure}
\renewcommand{\thetable}{\thechapter.\@arabic\c@table}
\renewcommand{\theequation}{\thechapter.\@arabic\c@equation}
% Re-define \@footnotetext and \@mpfootnotetext to use single spacing
% rather than the space-and-a-half that is the default elsewhere.
\renewcommand{\@footnotetext}[1]{\insert\footins{%
\linespread{1}\normalfont\footnotesize%
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth \@parboxrestore
\protected@edef\@currentlabel{%
\csname p@footnote\endcsname\@thefnmark}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
\color@endgroup}}
\renewcommand{\@mpfootnotetext}[1]{%
\global\setbox\@mpfootins\vbox{%
\unvbox \@mpfootins
\linespread{1}\normalfont\footnotesize%
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel{%
\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
\color@endgroup}}
%Define our elements for our title page
\renewcommand{\title}[1]{\gdef\@title{#1}}
\renewcommand{\author}[1]{\gdef\@author{#1}}
\newcommand{\school}[1]{\gdef\@school{#1}}
\newcommand{\degreetype}[1]{\gdef\@degreetype{#1}}
\newcommand{\university}[1]{\gdef\@university{#1}}
\newcommand{\crestfilename}[1]{\gdef\@crestfilename{#1}}
\newcommand{\submitdate}[1]{\gdef\@submitdate{#1}}
\newcommand{\declaration}[1]{\gdef\@declaration{#1}}
\newcommand{\@submitdate}{\number\the\day\ \ifcase\the\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space \number\the\year}
\ifnum\month=12
\@tempcnta=\year \advance\@tempcnta by 1
\edef\@copyrightyear{\number\the\@tempcnta}
\else
\newcommand{\@copyrightyear}{\number\the\year}
\fi
%-----------------------------------------------------------------------
% Title page definition.
%-----------------------------------------------------------------------
\newcommand{\titlep}{%
\thispagestyle{empty}%
\begin{titlepage}
\null\vskip2.5cm%
\begin{center}
{\rmfamily\huge\expandafter{\@title}}
\end{center}
\vskip1cm
\begin{center}
{\rmfamily\normalsize By \\ \expandafter{\@author}}
\end{center}
\vfill
\begin{flushleft}
{\rmfamily\normalsize Thesis submitted by \expandafter{\@author} in partial fulfillment of the requirements for the Degree of
\expandafter{\@degreetype} in \expandafter{\@school} at \expandafter{\@university}.}
\end{flushleft}
\vfill
\vskip1cm
\begin{center}
\includegraphics[width=4cm]{\@crestfilename}
\end{center}
\vskip1cm
\begin{center}
{\rmfamily\normalsize \expandafter{\@school},\\
\expandafter{\@university}.}
\vskip1cm
{\rmfamily\normalsize \@submitdate}\\
\end{center}
\vskip1cm
\end{titlepage}
\newpage}
%-----------------------------------------------------------------------
% Thesis declaration definition.
%-----------------------------------------------------------------------
\newcommand{\dodeclaration}{%
\thispagestyle{empty}%
\vspace*{\fill}
\begin{center}
{\bf\normalsize Declaration}
\end{center}
\begin{declaration}
\null\vskip2.5cm%
\begin{flushleft}
{\rmfamily\normalsize I declare that this thesis is my own work and has not been submitted in any form
for another degree or diploma at any university or other institute of tertiary education. Information derived from the
published and unpublished work of others has been acknowledged in the text and a list of references is given.}
\end{flushleft}
\vfill
\vskip1cm
\begin{flushleft}
{\rmfamily\normalsize \expandafter{\@author} \\ \@submitdate}
\end{flushleft}
\vfill
\vskip1cm
\end{declaration}
\vspace*{\fill}
\newpage
}
\newcommand{\statementofaccess}{%
\thispagestyle{empty}%
\vspace*{\fill}
\begin{center}
{\bf\normalsize Statement of Access to Thesis}
\end{center}
\begin{declaration}
\null\vskip2.5cm%
\begin{flushleft}
{\rmfamily\normalsize I, the undersigned, the author of this thesis, understand the James Cook University will make it available for use
within the University Library and, by microfilm or other photographic means, allow access to users in other approved libraries. All users consulting this
thesis will have to sign the following statement: \\
\vskip0.5cm
``In consulting this thesis I agree not to copy or closely paraphrase it in whole or in
part without the written consent of the author; and to make proper written
acknowledgement for any assistance which I have obtained from it.'' \\
\vskip0.5cm
Beyond this, I do not wish to place any restriction on access to this thesis.}
\end{flushleft}
\vfill
\vskip1cm
\begin{flushleft}
{\rmfamily\normalsize \dotfill{}\hspace*{0.3\paperwidth}\dotfill{}}
\end{flushleft}
\vfill
\vskip1cm
\end{declaration}
\vspace*{\fill}
\newpage
}
%-----------------------------------------------------------------------
% Redefine \maketitle so as to make a JCU suitable thesis
%-----------------------------------------------------------------------
\renewcommand{\maketitle}{%
\pagenumbering{roman}%
\thispagestyle{empty}%
\newpage%
\titlep
\dodeclaration
\statementofaccess
\setpagesize
\raggedbottom
}
EndPreamble