-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuoyths.dtx
3067 lines (2986 loc) · 129 KB
/
uoyths.dtx
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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%^^A------------------------------------------------------------
%^^A- Standard Licence Spiel -
%^^A------------------------------------------------------------
% \iffalse meta-comment
%
% Copyright (C) 2005 by Lee Netherton <ltn100@ohm.york.ac.uk>
% --------------------------------------------------------------
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.2
% of this license or (at your option) any later version.
% The latest version of this license is in:
%
% http://www.latex-project.org/lppl.txt
%
% and version 1.2 or later is part of all distributions of LaTeX
% version 1999/12/01 or later.
%
% \fi
%
% \iffalse
%
%^^A------------------------------------------------------------
%^^A- File Information -
%^^A------------------------------------------------------------
%<*driver|class>
\def\datelastmodified/{2005/03/15}%
\def\versionnumber/{v0.1}%
\def\filedescription/{Thesis Class to University of York Specifications}%
%</driver|class>%
%
%^^A------------------------------------------------------------
%^^A- Identification -
%^^A------------------------------------------------------------
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]%
%<class>\ProvidesClass{uoyths}[\datelastmodified/ \versionnumber/ \filedescription/]%
%
%^^A------------------------------------------------------------
%^^A- Set-up Doc driver -
%^^A------------------------------------------------------------
%<*driver>
\ProvidesFile{uoyths.dtx}[\datelastmodified/ \versionnumber/ \filedescription/]%
\documentclass{ltxdoc}%
\EnableCrossrefs%
\CodelineIndex%
\RecordChanges%
\begin{document}%
\DocInput{uoyths.dtx}%
\end{document}%
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{v1.0}{2005/03/15}{Initial version}
%
% \GetFileInfo{uoyths.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment,\relax,\end,\begin}
%
%
% \title{The \textsf{uoyths} class\thanks{This document
% corresponds to \textsf{uoyths}~\fileversion, dated \filedate.}\vspace{2mm}\\
% \small(\fileinfo)}
% \author{Lee Netherton \\ \texttt{ltn100@ohm.york.ac.uk}}
%
% \maketitle
%
%^^A************************************************************
%^^A* Introduction *
%^^A************************************************************
% \section{Introduction}
% \label{sec:intro}
%
% This thesis class adheres to the University of York these regulations
% and, in addition, will provide the following functionality:
%
% \begin{itemize}
% \item Nomenclature support
% \item Acronym support
% \item Glossary support
% \item A |minitoc| at the start of each chapter
% \item A |bibunits| section at the end of each chapter
% \item Support for many bibliography styles with |natbib|
% \item Chapter and section \emph{environments}
% \item A full bibliography at the end in addition to the |bibunits|
% %\item Support for |hyperref|
% \end{itemize}
%
%
%^^A************************************************************
%^^A* Implementation *
%^^A************************************************************
% \iffalse
%<*class>
% \fi
% \StopEventually{\PrintChanges\PrintIndex}
%
% \section{Implementation}
% \label{sec:implementation}
%
%^^A------------------------------------------------------------
%^^A- Initial Code -
%^^A------------------------------------------------------------
%
% \begin{macrocode}
\hbadness=10000% Suppress hbox warnings
\RequirePackage{ifthen}%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Declaration of Options -
%^^A------------------------------------------------------------
% \subsection{Parent Class and Options}
% \label{subsec:parent}
% We shall pass the report class the font size option.
% \begin{macrocode}
\DeclareOption{10pt}{\PassOptionsToClass{\CurrentOption}{report}}%
\DeclareOption{11pt}{\PassOptionsToClass{\CurrentOption}{report}}%
\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{report}}%
\DeclareOption{bibunits}{}%
\DeclareOption{nobibunits}{}%
\DeclareOption{minitocs}{}%
\DeclareOption{nominitocs}{}%
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}%
% \end{macrocode}
%^^A------------------------------------------------------------
%^^A- Execution of Options -
%^^A------------------------------------------------------------
% \begin{macrocode}
\ProcessOptions\relax%
% \end{macrocode}
%^^A------------------------------------------------------------
%^^A- Package Loading -
%^^A------------------------------------------------------------
% We can then load the class as the parent.
% \begin{macrocode}
\LoadClass[11pt,a4paper,dvips]{report}%
% \end{macrocode}
% We will require some packages to provide the functionality set
% out in chapter \ref{sec:intro}.
% \begin{macrocode}
\RequirePackage{minitoc}%
\RequirePackage{natbib}%
\RequirePackage[globalcitecopy,sectionbib]{bibunits}%
\RequirePackage{acronym}% must be above glossary (for some reason!)
\RequirePackage[style=long,number=none,toc=true]{glossary}% also requires package 'supertabular'
\RequirePackage{chapterEnv}%
\RequirePackage[notintoc]{nomencl}%
\RequirePackage{setspace}%
\RequirePackage{fancyhdr}% fancyhdr - fancy page headings
\RequirePackage{epsfig}% Allow rendering of the logo from eps
\RequirePackage{xkeyval}% Allows for key/value options for commands and environments
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Main Code -
%^^A------------------------------------------------------------
% \subsection{Variables}
% \label{subsec:vars}
% Here we will define some variables that will help us set up our class.
% \begin{macro}{\cite@style}
% Firstly, a variable containing the bibliography style to be used. It is
% initially set to |agsm|, the Harvard citation style.
% \begin{macrocode}
%\IfFileExists{thesis.bst}{%
% \def\cite@style{uoyths}%
%}{%
\def\cite@style{agsm}%
%}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\bib@file}
% Now for a variable containing the location of the bibliography file.
% \begin{macrocode}
\def\bib@file{}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\caption@size}
% Variable for the caption font size.
% \begin{macrocode}
\def\caption@size{\footnotesize}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\caption@size}
% Variable for the caption font size.
% \begin{macrocode}
\def\mtc@indent{24pt}%
% \end{macrocode}
% \end{macro}
%
% \subsection{Defining Variables}
% \label{subsec:definevars}
% To define the variables in section \ref{subsec:vars} we supply some
% commands.
% \begin{macro}{\SetCitationStyle}
% To set the style of the references in the document we use |\SetCitationStyle|
% \begin{macrocode}
\newcommand{\SetCitationStyle}[1]{\def\cite@style{#1}}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\SetBibliographyFile}
% To set the name and location of bibliography file we use |\SetBibliographyFile|
% \begin{macrocode}
\newcommand{\SetBibliographyFile}[1]{\def\bib@file{#1}}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\SetBibliographyFile}
% To set the name and location of bibliography file we use |\SetBibliographyFile|
% \begin{macrocode}
\newcommand{\SetCaptionSize}[1]{\def\caption@size{#1}}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\SetBibliographyFile}
% To set the name and location of bibliography file we use |\SetBibliographyFile|
% \begin{macrocode}
\newcommand{\SetMtcIndent}[1]{\def\mtc@indent{#1}}%
% \end{macrocode}
% \end{macro}
%
% \subsection{Configuring Packages}
% \label{subsec:config}
% \begin{macro}{\SetupPackages}
% The configuring of the packages will be done by the command |\SetupPackages|
% \begin{macrocode}
\newcommand{\SetupPackages}%
{%
% \end{macrocode}
% \end{macro}
%^^A------------------------------------------------------------
%^^A- Set-up natbib -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{natbib}}
% \label{subsubsec:natbib}
% We shall set up |natbib| to use the citation style selected.
% \begin{macrocode}
\citestyle{\cite@style}%
\bibpunct
{(} % Left parenthesis
{)} % Right parenthesis
{;} % Punctuation between multiple citations
{a} % Author-year style
{,} % Punctuation between author names and year
{,~}% Punctuation between multiple citations with a common author
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Set-up bibunits -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{bibunits}}
% \label{subsubsec:bibunits}
% The |bibunits| will provide a section level bibliography
% at the end of every chapter. To allow the bib-section to
% be numbered, the starring (non-numbering) of sections
% is inhibited, as the normal |\putbib| command uses the
% starred form.
% \begin{macrocode}
\defaultbibliography{\bib@file}
\defaultbibliographystyle{\cite@style}
\let\temp@putbib\putbib%
\def\putbib
{%
\let\temp@bibname\bibname%
\def\bibname{\@chapapp\space\temp@bibname}%
\let\temp@section\section%
\renewcommand{\section}[2]{\temp@section{\bibname}}%
\temp@putbib%
\@ifundefined{temp@section}{}{\let\section\temp@section}%
\let\bibname\temp@bibname%
}%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Set-up minitoc -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{minitoc}}
% \label{subsubsec:minitocs}
% We shall set up the minitocs to have a depth of 3.
% We shall also set up some indenting and some fonts.
% \begin{macrocode}
\dominitoc%
\dominilof%
\dominilot%
\setcounter{minitocdepth}{3}%
\setlength{\mtcindent}{\mtc@indent}%
\renewcommand{\mtcfont}{\small\rm}%
\renewcommand{\mtcSfont}{\small\bf}%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Set-up nomenclature -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{nomencl2}}
% \label{subsubsec:nomencl2}
% We need to make a call to |\mtcaddchapter| as we do not have
% a minitoc for the `chapter' Nomenclature. Also, |\mtcaddchapter| add
% an entry to the TOC for us. |\@mkboth| is used to update the header
% information.
% \begin{macrocode}
\renewcommand{\nompreamble}{\mtcaddchapter[\nomname]\@mkboth{\MakeUppercase\nomname}{\MakeUppercase\nomname}}%
\makenomenclature%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Set-up glossary -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{glossary}}
% \label{subsubsec:glossary}
%
% \begin{macrocode}
\renewcommand{\glossaryname}{Glossary of Terms}% Change title of glossary
\setlength{\descriptionwidth}{110mm}%
\let\old@afterglossary\afterglossary%
\renewcommand{\afterglossary}{\adjustmtc\relax\addcontentsline{lof}{xchapter}{}\relax\addcontentsline{lot}{xchapter}{}\relax\old@afterglossary}
\makeglossary%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Set-up chapterEnv -
%^^A------------------------------------------------------------
% \subsubsection{Configure \texttt{chapterEnv}}
% \label{subsubsec:chapterEnv}
% At the beginning of each chapter we will include a
% single-spaced |minitoc|.
% \begin{macrocode}
\newif\if@chapmtc\@chapmtctrue%
\newif\if@chapmlf\@chapmlffalse%
\newif\if@chapmlt\@chapmltfalse%
\newif\if@chapbu\@chapbutrue%
\newcommand{\showmtc}{\@chapmtctrue}%
\newcommand{\hidemtc}{\@chapmtcfalse}%
\newcommand{\showmlf}{\@chapmlftrue}%
\newcommand{\hidemlf}{\@chapmlffalse}%
\newcommand{\showmlt}{\@chapmlttrue}%
\newcommand{\hidemlt}{\@chapmltfalse}%
\newcommand{\showbu}{\@chapbutrue}%
\newcommand{\hidebu}{\@chapbufalse}%
\addToStartOfChapter%
{%
\acresetall%
\begin{singlespace}%
\if@chapmtc%
\minitoc%
\if@chapmlf%
\mtcskip%
\fi%
\fi%
\if@chapmlf%
\minilof%
\if@chapmlt%
\mtcskip%
\fi%
\fi%
\if@chapmlt%
\minilot%
\fi%
\end{singlespace}%
\begin{bibunit}
}%
% \end{macrocode}
% At the end of each chapter we will include a |bibunit|.
% \begin{macrocode}
\addToEndOfChapter%
{%
\begin{singlespace}%
\if@chapbu%
\putbib%
\fi%
\end{singlespace}%
\end{bibunit}
}%
% \end{macrocode}
% The end of |\SetupPackages|:
% \begin{macrocode}
}%
\AtBeginDocument{\SetupPackages}
% \end{macrocode}
%^^A------------------------------------------------------------
%^^A- Redeclare the abstract environment -
%^^A------------------------------------------------------------
% \begin{environment}{abstract}
% The |abstract| environment creates an abstract chapter.
% \begin{macrocode}
\renewenvironment{abstract}%
{%
\hidemtc% Remove MiniTOC
\hidebu% Remove MiniTOC
\begin{chapterEnv}{Abstract}
}%
% \end{macrocode}
% \begin{macrocode}
{%
\end{chapterEnv}
\showmtc%
\showbu%
}%
% \end{macrocode}
% \end{environment}
%^^A------------------------------------------------------------
%^^A- Page Setup -
%^^A------------------------------------------------------------
% \subsection{Set Up Page}
% \label{subsec:page}
%
% \begin{macrocode}
% Vertical Setup
% A4 height is 297mm
\voffset -25.4mm % Remove Latex one inch offset
\topmargin 15mm % Top of page to top of header
\headheight 5mm % Height of header
\headsep 10mm % Bottom of header to top of body
\textheight 242mm % Body height 15+5+10+<body>+10+15 = 297
\footskip 10mm % Bottom of body to bottom of footer
% Horizontal Setup
% A4 width is 210mm
\hoffset -25.4mm % Remove Latex one inch offset
\oddsidemargin 40mm % Binding side margin width - page edge to body
\textwidth 155mm % Body width 40+<body>+0+0+15 = 210
\marginparsep 0mm % Separation between body and margin motes
\marginparwidth 0mm % Margin notes width
%\marginparpush 0mm % ???
% Paragraph Setup
\parindent 0pt % Paragraph Indent
\parskip 4pt % Vertical distance between paragraphs
% Line Setup
\setstretch{1.5} % Line spacing
% set page style
\pagestyle{fancy}
% header
\lhead{\bfseries\small\nouppercase{\rightmark}}%
\rhead{\bfseries\small\nouppercase{\thepage}}%
\renewcommand{\headrulewidth}{2pt}%
% footer
%\lfoot{}
\cfoot{}
\rfoot{}
%\renewcommand{\footrulewidth}{0.4pt}
% Footnotes
\renewcommand{\@makefnmark}{\mbox{$^{[\@thefnmark]}$}}% - Add [ ] around footnote numbers (to avoid confusion with indicies)
% Float Captions
\let\old@makecaption\@makecaption%
\renewcommand{\@makecaption}{\caption@size\old@makecaption}%
% \end{macrocode}
%^^A------------------------------------------------------------
%^^A- Title Page -
%^^A------------------------------------------------------------
% \subsection{Title Page}
% \label{subsec:titlepage}
%
% \begin{macrocode}
\newlength{\barlength}
\setlength{\barlength}{\textwidth} \addtolength{\barlength}{-1pt}
\newlength{\VerticalOffset}
\setlength{\VerticalOffset}{5cm}
\newcommand{\defaulttitlefont}{\fontsize{10.95}{13.6}\selectfont}
\newcommand{\titlefont}{\bfseries \fontsize{22}{26.42pt}\selectfont}
\newcommand{\largetitlefont}{\bfseries \fontsize{29.88}{35.88pt}\selectfont}
\newcommand{\othertitlefont}{\fontsize{14.4}{17.28}\selectfont}
\newcommand{\authorfont}{\bfseries \fontsize{14.4}{17.28}\selectfont}
\newcommand{\informationfont}{\fontsize{10}{12}\selectfont}
\newcommand{\dedicationfont}{\slshape \fontsize{14.4}{17.28}\selectfont}
\newcommand{\thisyear}{\number\year}
\def\thismonth{\ifcase\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}
\newcommand{\todaysdate}{\thismonth, \thisyear}
% Create some bools for title page
\define@boolkeys{titlepagekeys}[tp@]{cover,title,logo}{}%
% Set defaults
\tp@covertrue%
\tp@titletrue%
\tp@logotrue%
\providecommand*{\sectfont}{\relax}
% \end{macrocode}
%^^A------------------------------------------------------------
%^^A- Redeclare the titlepage environment -
%^^A------------------------------------------------------------
% The |titlepage| environment creates an titlepage.
% \begin{macrocode}
\renewenvironment{titlepage}[1][,]%
{%
\setkeys{titlepagekeys}{#1}%
\relax%
}%
% \end{macrocode}
% \begin{macrocode}
{%
{\singlespacing
\let\footnotesize\small
\let\footnoterule\relax
\defaulttitlefont
% Front Cover - temporarily balance margins to 35mm each side
\iftp@cover
\thispagestyle{empty}
\begin{list}{}{
\setlength{\leftmargin}{-5mm}%
\setlength{\rightmargin}{20mm}%
}
\item[]%
\vspace*{3cm}
\begin{center}
{\titlefont \@title}
\end{center}
\par
\vspace*{\fill}
\par
\begin{center}
{\othertitlefont \@author}
\end{center}
\par
\vspace*{\fill}
\par
\begin{center}
{\othertitlefont \textsc{Ph.D.}}
\end{center}
\par
\vspace*{2cm}
\par
\begin{center}
{\othertitlefont
\textsc{The University of York}\\
\textsc{Department of Electronics}}
\end{center}
\par
\vspace*{2cm}
\par
\begin{center}
{\othertitlefont \@date}
\end{center}
\par
\end{list}
\fi
\iftp@title
% Title page with university description
\newpage \thispagestyle{empty}
\vspace*{1.5cm}
\begin{flushright}
\largetitlefont \@title
\end{flushright}
\par
\vspace*{\fill}
\begin{flushright}
\parbox{.63\linewidth}{\othertitlefont
Submitted in accordance to the requirements
of the University of York for the degree of
Doctor of Philosophy.}
\end{flushright}
\vspace*{\fill}
\par
\begin{flushright}
{\authorfont \@author}\\[2mm]
{\othertitlefont \@date}\\[1mm]
\rule{.63\linewidth}{0.8mm}\\[0mm]
\vspace*{3mm}
\iftp@logo
\epsfig{file=uoyths_logo.eps,width=.63\linewidth}
\else
\textsc{Intelligent Systems Research Group}\\[1mm]
{\othertitlefont Department of Electronics}\\[1mm]
{\othertitlefont University of York}\\[5mm]
\fi
\end{flushright}
\par
\fi
% Reset Footnote counter
\setcounter{footnote}{0}%
% Remove \maketitle commands
\let\thanks\relax\let\maketitle\relax
% Remove other commands
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
}% End Single Spacing
}%
% \end{macrocode}
%
%^^A------------------------------------------------------------
%^^A- Additional Functions -
%^^A------------------------------------------------------------
% \subsection{Additional Functions}
% \label{subsec:addfunc}
%
% \begin{macrocode}
% Acronym Glossary Entry
\newcommand{\glossac}[2]{%
\ifthenelse{\equal{#2}{}}%
{\glossary{sort={#1},name={\string\acs{#1}},description={\string\acl{#1}.}}}%
{\glossary{sort={#1},name={\string\acs{#1}},description={\string\acl{#1}---#2}}}%
}
% \end{macrocode}
% \begin{macrocode}
\newcommand{\printbibliography}{%
\let\thebibliographytemp\thebibliography%
\bibliographyunit%
\let\thebibliography\stdthebibliography%
\bibliographystyle{\cite@style}%
\newcommand{\bibpreamble}{\mtcaddchapter[\bibname]}%
\bibliography{\bib@file}%
\renewcommand{\bibpreamble}{}%
\let\thebibliography\thebibliographytemp%
}
\newcommand{\stopstar}
{
\let\temp@schapter\@schapter%
\renewcommand{\@schapter}[1]{\@chapter[##1]{##1}}%
\let\temp@ssect\@ssect%
\renewcommand{\@ssect}[5]{\@sect{section}{1}{##1}{##2}{##3}{##4}[##5]{##5}}%
}
\newcommand{\startstar}
{
\@ifundefined{temp@schapter}{}{\let\@schapter\temp@schapter}%
\@ifundefined{temp@ssect}{}{\let\@ssect\temp@ssect}%
}
\def\possessive@postmark{'s}%
\newcommand{\possessivecite}[1]%
{%
\citeauthor{#1}\possessive@postmark\ \citeyearpar{#1}
}%
% Referencing commands
\newcommand{\figref}[1]{\figurename~\ref{#1}}%
\newcommand{\Figref}[1]{\figurename~\ref{#1}}%
\newcommand{\tabref}[1]{\tablename~\ref{#1}}%
\newcommand{\Tabref}[1]{\tablename~\ref{#1}}%
\newcommand{\chapref}[1]{\chaptername~\ref{#1}}%
\newcommand{\Chapref}[1]{\chaptername~\ref{#1}}%
\newcommand{\appenref}[1]{\appendixname~\ref{#1}}%
\newcommand{\Appenref}[1]{\appendixname~\ref{#1}}%
\newcommand{\secref}[1]{Section~\ref{#1}}%
\newcommand{\Secref}[1]{Section~\ref{#1}}%
\newcommand{\subsecref}[1]{\textsection\ref{#1}}%
\newcommand{\Subsecref}[1]{Subsection~\ref{#1}}%
% \eqref already defined
\newcommand{\Eqref}[1]{Equation~\eqref{#1}}%
% \end{macrocode}
%
% \iffalse
%</class>
% \Finale
%
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%^^A% END OF PACKAGE
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%^^A---------------------------------------------------------------------
%^^A- comp_bibunits batch file
%^^A---------------------------------------------------------------------
%<*comp>
%<<COMMENT
@echo off
echo Compile bibunits.....
echo ...
echo ...
for %%f in (bu*.aux) do call comp_bibunit %%~nf
if exist comp_bibunits.tmp del comp_bibunits.tmp
echo ...
echo Making glossary.....
echo ...
echo ...
for %%f in (*.ist) do makeindex -s %%~nf.ist -t %%~nf.glg -o %%~nf.gls %%~nf.glo
echo ...
echo Making nomenclature.....
echo ...
for %%f in (*.ist) do makeindex -s nomencl.ist -t %%~nf.nlg -o %%~nf.nls %%~nf.nlo
echo ...
if %errorlevel%==0 echo ...Done!
pause
%COMMENT
%</comp>
%
%^^A---------------------------------------------------------------------
%^^A- comp_bibunit batch file
%^^A---------------------------------------------------------------------
%<*compbibunit>
%<<COMMENT
@echo off
if %1==bu goto end
find "\citation" < %1.aux > comp_bibunits.tmp
if %errorlevel%==0 bibtex %1 echo & echo.
:end
%COMMENT
%</compbibunit>
%
%^^A---------------------------------------------------------------------
%^^A- example thesis file
%^^A---------------------------------------------------------------------
%<*exampletex>
%<<COMMENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% File: example.tex
%% Purpose: Example Thesis File!
%% Usage: Compile with LaTeX, run COMPILE.bat, and then
%% compile with LaTeX again.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{uoyths}
% Set the bibliography file
\SetBibliographyFile{example}%
\begin{document}
% Content generation macros (ignore!)
\input{lorem.tex}
% Title Page
\begin{titlepage}[cover=true, title=true, logo=true] % (default, so pointless other than to show syntax)
\title{Lorem Ipsum Dolor Sit Amet, Consectetuer Adipiscing Elit.}
\author{Cicero}
\date{\today}
\end{titlepage}
% Front Matter
\begin{frontMatterEnv}
% Abstract
\begin{abstract}
\loremB{}
\end{abstract}
% Table of Contents
{\singlespacing\tableofcontents}%
% Preface
\begin{chapterEnv}{Preface}
\loremC{}
\loremB{}
\end{chapterEnv}
% Acknowledgments
\begin{chapterEnv}{Acknowledgments}
\loremB{}
\end{chapterEnv}
% Declaration
\begin{chapterEnv}{Acknowledgments}
\loremA{}
\end{chapterEnv}
\end{frontMatterEnv}
% Main Matter
\begin{mainMatterEnv}
% Introductory Chapter
\begin{chapterEnv}[chap:intro]{Introduction}
% Introductory Section
\begin{sectionEnv}[sec:intro-intro]{Introduction}
\loremC{}
\end{sectionEnv}
% Another Section
\begin{sectionEnv}[sec:intro-history]{History}
\loremD{}
% Subsection
\begin{subSectionEnv}[subsec:intro-recent]{Recent Attempts}
\loremB{}
\end{subSectionEnv}
\end{sectionEnv}
% Summary Section
\begin{sectionEnv}[sec:intro-summary]{Summary}
\loremC{}
\end{sectionEnv}
\end{chapterEnv}
% Chapter 2
\begin{chapterEnv}[chap:concepts]{Concepts}
\begin{sectionEnv}[sec:concepts-intro]{Introduction}
\loremC{}
\end{sectionEnv}
\begin{sectionEnv}[sec:concepts-discussion]{Discussion}
\loremB{}
\begin{subSectionEnv}[subsec:concepts-recent]{Recent Attempts}
\loremB{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:concepts-findings]{Findings}
\begin{subSectionEnv}[subsec:concepts-argument1]{First Argument}
\loremA{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:concepts-argument2]{Second Argument}
\loremA{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:concepts-argument3]{Final Argument}
\loremA{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:intro-summary]{Summary}
\loremC{}
\end{sectionEnv}
\end{chapterEnv}
% Chapter 3
\begin{chapterEnv}[chap:method]{Methodology}
\begin{sectionEnv}[sec:method-intro]{Introduction}
\loremC{}
\end{sectionEnv}
\begin{sectionEnv}[sec:method-integration]{Integration}
\loremA{}
\begin{subSectionEnv}[subsec:method-problems]{Problems}
\loremB{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:method-hierarchy]{Hierarchy}
% Sub-sub-sections
\begin{subSubSectionEnv}[subsec:method-step1]{Step 1}
\loremA{}
\end{subSubSectionEnv}
\begin{subSubSectionEnv}[subsec:method-step2]{Step 2}
\loremA{}
\end{subSubSectionEnv}
\begin{subSubSectionEnv}[subsec:method-step3]{Step 3}
\loremA{}
\end{subSubSectionEnv}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:concepts-implementation]{Implementation}
\begin{subSectionEnv}[subsec:method-justification]{Justification}
\loremB{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:concepts-formality]{Formality}
\loremB{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:concepts-succession]{Succession}
\loremC{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:concepts-summary]{Summary}
\loremC{}
\end{sectionEnv}
\end{chapterEnv}
% Conclusions Chapter
\begin{chapterEnv}[chap:conclusion]{Conclusions and Further Work}
\begin{sectionEnv}[sec:conclusion-intro]{Introduction}
\loremB{}
\end{sectionEnv}
\begin{sectionEnv}[sec:conclusion-resolution]{Resolution}
\loremA{}
\begin{subSectionEnv}[subsec:conclusion-accuracy]{Accuracy}
\loremB{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:conclusion-verification]{Verification}
\loremC{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:conclusion-reasoning]{Reasoning}
\loremC{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:conclusion-further]{Further Work}
\loremA{}
\begin{subSectionEnv}[subsec:conclusion-continuation]{Continuation}
\loremB{}
\end{subSectionEnv}
\begin{subSectionEnv}[subsec:conclusion-ideas]{Ideas}
\loremA{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[sec:conclusion-summary]{Summary}
\loremB{}
\end{sectionEnv}
\end{chapterEnv}
\end{mainMatterEnv}
% Back Matter
\begin{backMatterEnv}
% Nomenclature
\printnomenclature%
% Glossary
\printglossary%
% Bibliography
%Included for Gather Purpose only (WinEdt):
%input "example.bib"
\printbibliography%
% Appendix
\begin{chapterEnv}[appen:systems]{Systems}
\begin{sectionEnv}[asec:systems-intro]{Introduction}
\loremB{}
\end{sectionEnv}
\begin{sectionEnv}[asec:systems-integration]{Resolution}
\loremA{}
\begin{subSectionEnv}[asubsec:systems-accuracy]{Accuracy}
\loremB{}
\begin{subSubSectionEnv}[asubsubsec:systems-arg1]{Argument 1}
\loremA{}
\end{subSubSectionEnv}
\begin{subSubSectionEnv}[asubsubsec:systems-arg2]{Argument 2}
\loremA{}
\end{subSubSectionEnv}
\begin{subSubSectionEnv}[asubsubsec:systems-arg3]{Argument 3}
\loremA{}
\end{subSubSectionEnv}
\end{subSectionEnv}
\begin{subSectionEnv}[asubsec:systems-validity]{Validity}
\loremC{}
\end{subSectionEnv}
\end{sectionEnv}
\begin{sectionEnv}[asec:systems-summary]{Summary}
\loremB{}
\end{sectionEnv}
\end{chapterEnv}
\end{backMatterEnv}
\end{document}
%COMMENT
%</exampletex>
%
%^^A---------------------------------------------------------------------
%^^A- bib file for example thesis
%^^A---------------------------------------------------------------------
%<*examplebib>
%<<COMMENT
@article{gre34, AUTHOR={B D Greenshields}, TITLE={A Study of Traffic
Capacity}, JOURNAL={HRB Proc}, YEAR={1934}, volume={14},
pages={448-477}, }
@book{kop93, AUTHOR={Helmut Kopka and Patrick W Daly}, TITLE={A
Guide to {\LaTeX} {D}ocument Preparation},
PUBLISHER={Addison-Wesley}, YEAR={1993}, }
@inproceedings{neu59, AUTHOR={J Neumann}, TITLE={Theory of automata:
Construction, reproduction, homogeneity}, BOOKTITLE={Theory of
Self-Reproduction Automata}, YEAR={1959}, editor={W Arthur Burks}, }
@misc{ale97, author={D {McAley}}, title={The back-propagation
network: learning by example}, year={1997}, }
@phdthesis{bad93, AUTHOR={K M Badrinath}, TITLE={Urban traffic
system model for managing traffic}, SCHOOL={University of Kakatiya},
YEAR={1993}, type={Ph.{D}.{T}hesis(unpublished)},
address={Warangal}, }
@techreport{ram77, author={T V Ramanayya}, title={Analysis of mixed
stream characteristics}, institution={REC Warangal}, year={1977},
type={Research Report}, }
%COMMENT
%</examplebib>
%
%^^A---------------------------------------------------------------------
%^^A- content file for example thesis
%^^A---------------------------------------------------------------------
%<*lorem>
%<<COMMENT