%% %% This is file `sdthesis.cls', generated %% on <1996/10/5> with the docstrip utility (2.2i). %% %% The original source files were: %% %% sdthesis.dtx (with options: `class') %% %% Copyright (c) 1995 Glenn Maughan %% %% %% This is sdthesis.dtx $Revision: 1.9 $. %% %% Please note: This document class is not compatable with the %% old LaTeX 2.09. It uses LaTeX2e specific commands. %% %% Please send bug reports to: %% %% glennm@insect.sd.monash.edu.au (Glenn Maughan) %% %% To generate a stand-along class file run the sdthesis.ins file %% through LaTeX with the command: %% %% latex sdthesis.ins %% %% To generate documentation for this source run this file through %% LaTeX: %% %% latex sdthesis.dtx %% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{sdthesis}[1995/10/14 Monash Software Development thesis class] \DeclareOption{thesisdraft}{% \AtEndOfClass{% \def\ps@textpageheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@oddhead{\textsl{Draft of \timestamp}\hfil\thepage}% \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble} } } \DeclareOption{thesispsdraft}{% \AtEndOfClass{% \def\ps@textpageheadings{% \special{!userdict begin /bop-hook{gsave 90 270 translate 90 rotate /Times-Roman findfont 100 scalefont setfont 0 0 moveto 0.9 setgray (DRAFT) show grestore}def end} \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@oddhead{\textsl{Draft of \timestamp}\hfil\thepage}% \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble} } } \DeclareOption{phdthesis}{% \newcommand{\thesisfulfilment}{for fulfilment} \newcommand{\thesistype}{Dissertation} \newcommand{\thesisdegree}{Doctor of Philosophy} \newcommand{\thesisdegreeabbreviation}{PhD} } \DeclareOption{mastersthesis}{% \newcommand{\thesisfulfilment}{for fulfilment} \newcommand{\thesistype}{Thesis} \newcommand{\thesisdegree}{Master of Computing} \newcommand{\thesisdegreeabbreviation}{MComp} } \DeclareOption{mastersthesisminor}{% \newcommand{\thesisfulfilment}{in partial fulfilment} \newcommand{\thesistype}{Thesis} \newcommand{\thesisdegree}{Master of Computing (Minor)} \newcommand{\thesisdegreeabbreviation}{MComp} } \DeclareOption{honoursthesis}{% \newcommand{\thesisfulfilment}{in partial fulfilment} \newcommand{\thesistype}{Thesis} \newcommand{\thesisdegree}{Bachelor of Computing with Honours} \newcommand{\thesisdegreeabbreviation}{BComp (Hons)} } %% \DeclareOption{singlespace}{\AtBeginDocument{\singlespacing}} \DeclareOption{oneandhalfspace}{\AtBeginDocument{\onehalfspacing}} \DeclareOption{doublespace}{\AtBeginDocument{\doublespacing}} \DeclareOption{indentfirst}{\let\@afterindentfalse\@afterindenttrue \@afterindenttrue} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} \ExecuteOptions{oneandhalfspace} \ProcessOptions \LoadClass[oneside,openany]{book}[1994/12/01] \ifx\undefined\thesistype \ClassError{sdthesis} {Please select either the phdthesis, mastersthesis, mastersminorthesis or honoursthesis class options} {Use, for example, \protect\documentclass[phdthesis]{sdthesis}} \fi \RequirePackage[normalem]{ulem} \RequirePackage{setspace} \newcommand{\thesisauthor}{Ima B. Student} \newcommand{\thesisauthorlastname}{Student} \newcommand{\thesisauthorpreviousdegrees}{} \newcommand{\thesismonth}{May} \newcommand{\thesisyear}{1994} \newcommand{\thesistitle}{Title} \newcommand{\thesissupervisor}{I. M. Tenure} \newcommand{\thesisassociatesupervisor}{A. N. Tenure} \newcommand{\thesisstartmonth}{Feb} \newcommand{\thesisstartyear}{1993} \newcommand{\thesisdepartment}{Software Development} \newcommand{\thesisuniversity}{Monash University} \newcommand{\thesisauthoraddress}{Department of Software Development\\Monash University\\Australia} \newcommand{\thesistypist}{the author} \newcommand{\thesispercentage}{} \newcommand{\thesisdefaultbaselinestretch}{1.5} \newcommand{\thesistypetypesize}{\large} \newcommand{\thesistitletypesize}{\Large} \newcommand{\thesistitlebold}{\textbf{\thesistitletypesize\thesistitle}} \newcommand{\thesisstudenttypesize}{\large} \newcommand{\thesisstudentbold}{\textbf{\thesisstudenttypesize \thesisstudent}} \newcommand{\thesisdegreetypesize}{\large} \newcommand{\thesistitlepagefont}{\fontsize{14}{14}\selectfont} \newcommand{\thesiscopyrightholder}{\thesisauthor} \newcommand{\thesiscommittee}{Supervising Committee:} \newcommand{\thesiscommitteesize}{5} \newcommand{\thesisvitahead}{Vita} \newcommand{\thesisvitaheadtypesize}{\huge\bfseries} \newcommand{\thesisacknowledgmenthead}{Acknowledgments} \newcommand{\thesisacknowledgmentsigname}{\thesisauthor} \newcommand{\thesisacknowledgmentsignametype}{\large} \newcommand{\thesisacknowledgmentsigplace}% {{\slshape \thesisuniversity \\ \thesismonth\ \thesisyear}} \newcommand{\thesisstudent}{\thesisauthor, \thesisauthorpreviousdegrees} \newcommand{\thesisdedication}{To myself} \setlength{\textheight}{8in} \setlength{\oddsidemargin}{0.5in} \setlength{\evensidemargin}{0.5in} \setlength{\textwidth}{6in} \setlength{\topmargin}{0in} \setlength{\headheight}{0.2in} \setlength{\headsep}{0.25in} \setlength{\parindent}{0mm} \setlength{\parskip}{1ex} \widowpenalty =10000 \clubpenalty =10000 \brokenpenalty=10000 \renewcommand{\frontmatter}{% \cleardoublepage \@mainmatterfalse \pagenumbering{roman} \pagestyle{plain}} \renewcommand{\mainmatter}{% \cleardoublepage \@mainmattertrue \pagenumbering{arabic} \pagestyle{textpageheadings}} \def\ps@textpageheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@oddhead{\hfil\thepage} \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble} %% \section{Frontmatter pages} \newcommand{\thesisdedicationpage}{% \strut \vfill \begin{spacing}{1.5} \begin{center} \thesisdedication \end{center} \end{spacing} \vfill \strut \newpage} %% \begin{environment}{thesisacknowledgments} \newenvironment{thesisacknowledgments} {% \chapter*{\thesisacknowledgmenthead \@mkboth{\thesisacknowledgmenthead} {\thesisacknowledgmenthead}} \addcontentsline{toc}{chapter}{\thesisacknowledgmenthead} \begin{spacing}{1.1}} {\nopagebreak\end{spacing} \par\nopagebreak \raggedleft {\thesisacknowledgmentsignametype\thesisacknowledgmentsigname} \\*[10mm] \raggedright \thesisacknowledgmentsigplace \newpage} \newcommand{\thesistitlepage}{% \thispagestyle{empty} \begin{spacing}{2} \begin{center} \thesistitlebold \\[8mm] by \\[4mm] \thesisstudentbold \\ \vspace{26mm} \textbf{\thesistypetypesize \thesistype} \\ Submitted by \thesisauthor \\ \thesisfulfilment\thesispercentage\ of the Requirements \\ for the Degree of \\ \textbf{\thesisdegreetypesize \thesisdegree} \\ in the Department of \thesisdepartment\ at \\ \thesisuniversity \\[26mm] \textbf{\Large \thesisuniversity} \\[4mm] \thesismonth, \thesisyear \end{center} \end{spacing} \newpage} \newcommand{\thesiscopyrightpage}{% \thispagestyle{empty} \strut \vfill \begin{center} \begin{spacing}{2} \copyright\ Copyright \\ by \\ \thesiscopyrightholder \\ \thesisyear \end{spacing} \end{center} \vfill \strut \newpage} \newenvironment{thesisabstract}{% \newpage \addcontentsline{toc}{chapter}{Abstract} \setlength{\unitlength}{1mm} \begin{spacing}{1} \begin{center} \thesistitlebold \\[7mm] \thesisauthor, \thesisdegreeabbreviation \\ \thesisuniversity, \thesisyear \\[7mm] Supervisors: \thesissupervisor \\[7mm] \textbf{Abstract} \\ \end{center} \vspace{5mm} \noindent} {\end{spacing} \newpage} \newcommand{\thesissecondarytitle}{% \newpage \setlength{\unitlength}{1mm} \begin{spacing}{1} \begin{center} \thesistitlebold \\[7mm] \thesisauthor, \thesisdegreeabbreviation \\ \thesisuniversity, \thesisyear \\[7mm] \begin{tabular}{ll} Supervisors: & \thesissupervisor \\ Associate Supervisor: & \thesisassociatesupervisor \\ Start Date: & \thesisstartmonth\ \thesisstartyear \\ Submit Date: & \thesismonth\ \thesisyear \end{tabular} \end{center} \end{spacing} \newpage} \newcommand{\thesisdeclarationpage}{% \begin{center} \thesistitlebold \end{center} \vspace{20mm} \begin{center} {\bf Declaration} \end{center} \begin{spacing}{1} 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{spacing} \vspace{15mm} \mbox{} \hfill \begin{minipage}{67mm} \begin{spacing}{1} \vspace{10mm} \setlength{\unitlength}{1mm} \begin{picture}(67,1)(0,0) \line(1,0){67} \end{picture} \thesisauthor \\ \today \end{spacing} \end{minipage} \newpage} \newcommand{\thesissignaturepage}{% \begin{center} \thesistitlebold \end{center} \vspace{20mm} \begin{center} {\bf \thesistype\ Acceptance} \end{center} \begin{spacing}{1} This student's \thesistype, entitled {\def\UL@cr{}\expandafter\uline\expandafter{\thesistitle}} has been examined by the undersigned committee of faculty members and has received full approval for acceptance \thesisfulfilment\ of the requirements for the degree \thesisdegree. \end{spacing} \vspace{15mm} \hbox to \hsize{\hfill APPROVAL: \begin{minipage}[b]{67mm} \setlength{\unitlength}{1mm} \begin{picture}(67,-70) \multiput(0,-2)(0,-10) {\thesiscommitteesize}{\line(1,0){67}} \end{picture} \end{minipage} Chairman} \newpage} \newcommand{\thesisshorttitlepage}{% \vbox to 4.1in{\vfil \hbox to \hsize {Short Title: \thesisshorttitle \hfill \thesisauthorlastname, \thesisdegreeabbreviation\ \thesisyear \hspace{0.5in}}} \newpage} \renewcommand{\listoffigures}{% \chapter*{\listfigurename}% \addcontentsline{toc}{chapter}{\listfigurename}% \@starttoc{lof} } \renewcommand{\listoftables}{% \chapter*{\listtablename}% \addcontentsline{toc}{chapter}{\listtablename}% \@starttoc{lot} } %% \section{Mainmatter} \renewcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} \newif\if@appendix\@appendixfalse \renewcommand{\appendix}{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \renewcommand{\@chapapp}{\appendixname}% \renewcommand{\thechapter}{\Alph{chapter}} \@appendixtrue} \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \if@mainmatter \refstepcounter{chapter}% \typeout{\@chapapp\space\thechapter.}% \if@appendix \addcontentsline{toc}{chapter}% {\appendixname\ \thechapter\ #1}% \else \addcontentsline{toc}{chapter}% {\protect\numberline{\thechapter}#1}% \fi \else \addcontentsline{toc}{chapter}{#1}% \fi \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}% \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi} \renewcommand{\l@chapter}[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak% \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill \nobreak\hbox to\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} \newenvironment{thesisauthorvita}{% \clearpage \chapter*{\thesisvitahead \@mkboth{\uppercase{\thesisvitahead}} {\uppercase{\thesisvitahead}}} \addcontentsline{toc}{chapter}{\thesisvitahead} \begin{spacing}{\thesisdefaultbaselinestretch}} {\end{spacing} \par \vspace{20mm} \noindent Permanent Address: \begin{minipage}[t]{90mm} \thesisauthoraddress \end{minipage} \par \vspace{15mm} \noindent This \lowercase\expandafter{\thesistype} was typeset with \LaTeXe\footnote{\LaTeXe{} is an extension of \LaTeX. \LaTeX{} is a collection of macros for \TeX. \TeX{} is a trademark of the American Mathematical Society. The macros used in formatting this \lowercase\expandafter{\thesistype} were written by Glenn Maughan of Monash University. } by \thesistypist.} \renewenvironment{theindex} {\addcontentsline{toc}{chapter}{\indexname} \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi \columnseprule \z@ \columnsep 35\p@ \twocolumn[\@makeschapterhead{\indexname}]% \@mkboth{\MakeUppercase\indexname}% {\MakeUppercase\indexname}% \thispagestyle{plain}\parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem \begin{spacing}{1}} {\end{spacing}\if@restonecol\onecolumn\else\clearpage\fi} \newcount\hour \newcount\minute \hour=\time \divide \hour by 60 \minute=\time \loop \ifnum \minute > 59 \advance \minute by -60 \repeat \def\thesistime{\ifnum \hour<13 \number\hour:% \ifnum \minute<10 0\fi \number\minute \ifnum \hour<12 \ am\else \ pm\fi \else \advance \hour by -12 \number\hour:% \ifnum \minute<10 0\fi \number\minute \ pm\fi} \def\timestamp{\thesistime, \today} \newcommand{\@uppercase}[1]{{\expandafter\uppercase\expandafter{#1}}} \newcommand\@seperator{\vrule height.4pt depth0pt width3.5in} \newcommand\@numberword[1]{\ifcase#1 zero\or one\or two\or three\or four\or five\or six\or seven\or eight\else nine\fi\relax} \endinput %% %% End of file `sdthesis.cls'.