% uncthesis.sty % % Created by Wolfgang Resch based on the uncthesis.sty by Rickard E. Faith % (see below for his original preamble). Most of the code was written by Rickard. % % There are no copyright restrictions on this code whatsoever, so feel free to % modify and steal as much as you like as long as you give credit to the % creators. NO WARRATY THAT THIS STYLE WILL BE ACCEPTED BY THE GRADUATE % SCHOOL, but it worked for me. If you have any questions feel free to % contact me at wresch@email.unc.edu. % % HISTORY % % Changes reflect modified graduate school regulations as well as personal % tastes. lots of small changes were made and are not always noted in the % history or the code (such as page numbers,... % % 010101 wr updated the front matter to fit the definitions as of 2000/2001 % 010101 wr switched handling of margins over to vmargin package % 010201 wr simplified/modified abbreviation treatment and removed trademark % support % 020110 wr added a bunch more stuff (modified appendix handling,...) % added option for modified citation behavior (use cite % package, use parentheses in text, use numbers only in % bibliography % 020115 wr changed top margin to 1 inch in lists and bibliography % changed spacing on front page % %-------------------------------------------------------------------------- % COMMENTS FROM ORIGINAL VERSION %-------------------------------------------------------------------------- % % uncthesis.sty -- UNC Thesis Style % Created: Sat May 18 12:43:26 1996 by faith@acm.org % Revised: Tue Nov 25 14:53:33 1997 by faith@acm.org % Public Domain 1996, 1997 Rickard E. Faith (faith@acm.org) % % [I'm so sick of copyright restrictions, that I'm putting this in the % public domain so that you can steal whatever you need and make your own % thesis style. Hack away...] % % This program comes with ABSOLUTELY NO WARRANTY. % % $Id: 020115_unc_thesis.sty,v 1.1.1.1 2003/03/03 15:46:33 wresch Exp $ % % References in []'s from : ``A Guide to the Preparation and Submission of % Theses and Dissertations'' (The Graduate School, The University of North % Carolina at Chapel Hill). See: http://www.unc.edu/pubs/academ/thesdiss/ %-------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{uncthesis}[2002/01/16 v5.0 by wr] \typeout{UNC Thesis Style, $Revision: 1.1.1.1 $, by wolfgang resch modified from original by Rik Faith} \RequirePackage{ifthen} \RequirePackage{calc} \RequirePackage{doublespace} \RequirePackage{comment} \RequirePackage{vmargin} \RequirePackage{longtable} \RequirePackage{cite} % set up space parameters-------------------------------------------------BEG % default is 1.5 spacing % Magic numbers are from p. 53 of The LaTeX Companion % (Goosens, Mittlebach, Samarin; Addison-Wesley Publishing Co., 1994). % Set up one and one-half spacing \ifthenelse{\@ptsize = 0}{\setstretch{1.25}}{} % 10-point \ifthenelse{\@ptsize = 1}{\setstretch{1.21}}{} % 11-point \ifthenelse{\@ptsize = 2}{\setstretch{1.24}}{} % 12-point \def\unc@adjusttitlespacing{\vspace*{-\baselineskip}\vspace*{-1ex}} \def\unc@adjustabstractspacing{\vspace*{-2\baselineskip}\vspace*{-2ex}} \def\unc@adjustchapterspacing{\vspace*{-\baselineskip}} \def\unc@adjustbibspacing{\vspace*{-\baselineskip}} \DeclareOption{double}{ % Set up double spacing \ifthenelse{\@ptsize = 0}{\setstretch{1.67}}{} % 10-point \ifthenelse{\@ptsize = 1}{\setstretch{1.62}}{} % 11-point \ifthenelse{\@ptsize = 2}{\setstretch{1.66}}{} % 12-point \def\unc@adjusttitlespacing{\vspace*{-\baselineskip}\vspace*{-1ex}} \def\unc@adjustabstractspacing{\vspace*{-2\baselineskip}\vspace*{-1.6ex}} \def\unc@adjustchapterspacing{\vspace*{-\baselineskip}\vspace*{0.6ex}} \def\unc@adjustbibspacing{\vspace*{-\baselineskip}\vspace*{-1.2ex}}} \DeclareOption{single}{ \setstretch{1} % Set up single spacing \def\unc@adjusttitlespacing{\vspace*{-\baselineskip}\vspace*{-1ex}} \def\unc@adjustabstractspacing{\vspace*{-2\baselineskip}\vspace*{-2ex}} \def\unc@adjustchapterspacing{\vspace*{-\baselineskip}\vspace*{-0.5ex}} \def\unc@adjustbibspacing{\relax} } % wr - this should help prevent some of the overfull boxes \setlength{\emergencystretch}{5pt} % set up space parameters-------------------------------------------------END % set margins-------------------------------------------------------------BEG % wr - to make things easier margins are handled by the vmargin package \newcommand{\unc@setmargins} {% \setpapersize{USletter} \setmarginsrb{1.3in}{1.1in}{1in}{1in}{12pt}{7mm}{0pt}{0mm} }% % set margins-------------------------------------------------------------END % declare options---------------------------------------------------------BEG % wr - use parentheses in text, use cite package, and change label in bib \DeclareOption{citemod}{% \renewcommand{\citeleft}{(}% wr use parentheses for citations \renewcommand{\citeright}{)} \renewcommand{\@biblabel}[1]{#1.} }% \DeclareOption{nodraft}{\unc@nodraft} \DeclareOption{bottom}{\unc@bottom} \DeclareOption{draft}{\unc@draft} % timestamp each page \DeclareOption{nofront}{\unc@nofront} % condense front matter \DeclareOption{nolists}{\unc@nolists} % condense front matter \DeclareOption{narrow}{\unc@narrow} % declare options---------------------------------------------------------END % commands for options----------------------------------------------------BEG \def\unc@nofront{% \def\thesismaketitle{% \pagenumbering{roman}\setcounter{page}{1}\thispagestyle{empty}% \begin{spacing}{1}\reset@font \vspace*{1in}% \begin{center}% \begin{spacing}{2}% {\unc@titlefont\unc@adjusttitlespacing\unc@title}% \end{spacing}% \vspace{0.5in}% {\unc@authorfont by} \\ \vspace{0.5in}% {\unc@authorfont \unc@author}% \vspace{0.5in}% \unc@draftnote \end{center}% \end{spacing}% }% \def\thesismakecopyright{}% \excludecomment{dedication}% \excludecomment{acknowledgments}% \renewenvironment{abstract}{% \global\@topnum\z@ \@afterindentfalse \begin{center}\bfseries \vspace{0.5in} \abstractname \end{center}% \quotation}{\endquotation\newpage}% }% \def\unc@nolists{% \renewcommand{\uncloa}{}% \renewcommand{\unclof}{}% \renewcommand{\unclot}{}% }% \def\unc@draft{% \renewcommand{\ps@plain}{% \renewcommand{\@oddhead}{\hfil\textrm{\thepage}}% \renewcommand{\@evenhead}{\textrm{\thepage}\hfil}% \renewcommand{\@oddfoot}{\hfil Draft of \unc@timestamp}% \renewcommand{\@evenfoot}{Draft of \unc@timestamp\hfil}% }% \renewcommand{\unc@draftnote}{\emph{\bf (Draft of \unc@timestamp)}} }% \def\unc@nodraft{% \renewcommand{\ps@plain}{% \renewcommand{\@oddhead}{\hfil\textrm{\thepage}}% \renewcommand{\@evenhead}{\textrm{\thepage}\hfil}% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}% \let\@mkboth\@gobbletwo% }% }% \def\unc@bottom{% \renewcommand{\ps@plain}{% \renewcommand{\@oddhead}{}% \renewcommand{\@evenhead}{}% \renewcommand{\@oddfoot}{\hfil\textrm{\thepage}\hfil}% \renewcommand{\@evenfoot}{\hfil\textrm{\thepage}\hfil}% \let\@mkboth\@gobbletwo% }% }% \newcount\unc@hour \newcount\unc@minute \unc@hour=\time \divide\unc@hour 60 \unc@minute=-\unc@hour \multiply\unc@minute 60 \advance\unc@minute \time \def\unc@timestamp{\today{} at \two@digits{\the\unc@hour}:\two@digits{\the\unc@minute}} % commands for options----------------------------------------------------END % (default) names for frontmatter-----------------------------------------BEG \newcommand{\unc@draftnote}{} \def\thesistype#1{\gdef\unc@type{#1}} \gdef\unc@type{Dissertation} \def\thesisuniversity#1{\gdef\unc@university{#1}} \gdef\unc@university{The University of North Carolina at Chapel Hill} \def\thesisdegree#1{\gdef\unc@degree{#1}} \gdef\unc@degree{Doctor of Philosophy} \def\thesisdepartment#1{\gdef\unc@department{#1}} \gdef\unc@department{Department of Computer Science} \def\thesislocation#1{\gdef\unc@location{#1}} \gdef\unc@location{Chapel Hill} \def\thesisyear#1{\gdef\unc@year{#1}} \gdef\unc@year{\the\year} \def\thesistitle#1{\gdef\unc@title{#1}} \gdef\unc@title{Title} \def\thesisauthor#1{\gdef\unc@author{#1}\gdef\unc@AUTHOR{\uppercase{#1}}} \gdef\unc@author{Author} \gdef\unc@AUTHOR{AUTHOR} \def\thesisadvisortitle#1{\gdef\unc@advisortitle{#1}} \gdef\unc@advisortitle{Advisor} \def\thesisadvisor#1{\gdef\unc@advisora{#1}} \gdef\unc@advisora{Advisor} \def\thesisadvisora#1{\gdef\unc@advisora{#1}} \def\thesisadvisorb#1{\gdef\unc@advisorb{#1}} \def\thesisreadertitle#1{\gdef\unc@readertitle{#1}} \gdef\unc@readertitle{Reader} \def\thesisreadera#1{\gdef\unc@readera{#1}} \def\thesisreaderb#1{\gdef\unc@readerb{#1}} \def\thesisreaderc#1{\gdef\unc@readerc{#1}} \def\thesisreaderd#1{\gdef\unc@readerd{#1}} \def\thesisreadere#1{\gdef\unc@readere{#1}} \def\thesisreaderf#1{\gdef\unc@readerf{#1}} \def\thesisreaderg#1{\gdef\unc@readerg{#1}} \def\thesistitlefont#1{\gdef\unc@titlefont{#1}} \gdef\unc@titlefont{\Large\bfseries} \def\thesisauthorfont#1{\gdef\unc@authorfont{#1}} \gdef\unc@authorfont{\large\bfseries} % (default) names for frontmatter-----------------------------------------END % section names-----------------------------------------------------------BEG % wr - names of sections, some different from default \renewcommand{\abstractname}{Abstract} \newcommand{\dedicationname}{Dedication} \newcommand{\acknowledgmentsname}{Acknowledgments} \renewcommand{\contentsname}{Contents} \renewcommand{\listfigurename}{List of Figures} \renewcommand{\listtablename}{List of Tables} \renewcommand{\appendixname}{Appendix} \newcommand{\listabbreviationname}{List of Abbreviations and Symbols} \newcommand{\colophonname}{Colophon} \newcommand{\glossaryname}{Glossary} % section names-----------------------------------------------------------END % title page generation---------------------------------------------------BEG \def\thesismaketitle{% \pagenumbering{roman}\setcounter{page}{1}\thispagestyle{empty}% \begin{spacing}{1}\reset@font% \vspace*{1in}% \begin{center}% \begin{spacing}{1.5}% {\unc@titlefont\unc@adjusttitlespacing\unc@title} \end{spacing}% \vspace{0.9 in}% {\unc@authorfont by\\ \unc@author}% \end{center}% \vspace{1 in}% A \unc@type{} submitted to the faculty of the \unc@university{} in partial fulfillment of the requirements for the degree of \unc@degree{} in the \unc@department{}.% \vspace{0.4in}% \begin{center}% \unc@location \\% \unc@year \\% \end{center}% \vspace{0.4 in}% wr - as requested added more space here \hfill\unc@signatures% \end{spacing}% \cleardoublepage% }% % wr - tightened up spacing of signatures from 0.5 to 0.26 in \def\unc@signatureline#1#2{% \vspace{0.26in}\hbox to 3in{\hfil\shortstack{\vrule% width 3in height 0.4pt\\#1, #2}} }% \def\unc@signatures{% \begin{minipage}{3in} Approved by: \@ifundefined{unc@advisora}{}% {\unc@signatureline{\unc@advisora}{\unc@advisortitle}} \@ifundefined{unc@advisorb}{}% {\unc@signatureline{\unc@advisorb}{\unc@advisortitle}} \@ifundefined{unc@readera}{}% {\unc@signatureline{\unc@readera}{\unc@readertitle}} \@ifundefined{unc@readerb}{}% {\unc@signatureline{\unc@readerb}{\unc@readertitle}} \@ifundefined{unc@readerc}{}% {\unc@signatureline{\unc@readerc}{\unc@readertitle}} \@ifundefined{unc@readerd}{}% {\unc@signatureline{\unc@readerd}{\unc@readertitle}} \@ifundefined{unc@readere}{}% {\unc@signatureline{\unc@readere}{\unc@readertitle}} \@ifundefined{unc@readerf}{}% {\unc@signatureline{\unc@readerf}{\unc@readertitle}} \@ifundefined{unc@readerg}{}% {\unc@signatureline{\unc@readerg}{\unc@readertitle}} \end{minipage} } % title page generation---------------------------------------------------END % copyright page generation-----------------------------------------------BEG \def\thesismakecopyright{% \thispagestyle{plain}% \mbox{}\vfill% \begin{spacing}{1.1}% \begin{center}% Copyright \copyright{} \unc@year \\ \unc@author \\ All rights reserved% \end{center}% \end{spacing}% \cleardoublepage }% % copyright page generation-----------------------------------------------END % abstract environment----------------------------------------------------BEG % watch out if printing double sided thesis: % this envionment does not deal with abstracts of more than one page % this has to be done in the thesis !!! \renewenvironment{abstract}{% \thispagestyle{plain} \global\@topnum\z@ \@afterindentfalse\reset@font \vspace*{0.5in}\unc@adjustabstractspacing \begin{center}\bfseries\Large \textsc{\abstractname} \\ % wr - moved to fit grad school specs \begin{spacing}{1}\normalsize \vspace*{0.2in} \uppercase{\unc@author}\\ \vspace*{0.2in}% \unc@title. \\ (Under the direction of \@ifundefined{unc@advisorb}% {\unc@advisora}{\unc@advisora{} and \unc@advisorb}.) \\ %\vspace*{0.2in} \end{spacing} \end{center}% }{\vfill\cleardoublepage} % abstract environment----------------------------------------------------END % dedication environment--------------------------------------------------BEG \newenvironment{dedication}{% \thispagestyle{plain}% \global\@topnum\z@ \@afterindentfalse\reset@font \vspace*{0.5in}\unc@adjustabstractspacing \begin{center} \bfseries\Large% \textsc{\dedicationname} \vspace{0.2in}% \end{center}% }{\vfill\cleardoublepage}% % dedication environment--------------------------------------------------END % acknowlegment environment-----------------------------------------------BEG \newenvironment{acknowledgments}{% \thispagestyle{plain}% \global\@topnum\z@ \@afterindentfalse\reset@font \vspace*{0.5in}\unc@adjustabstractspacing\begin{center}\bfseries\Large% \textsc{\acknowledgmentsname} \vspace{0.2in}% \end{center}% }{\vfill\cleardoublepage} % acknowlegment environment-----------------------------------------------END % table of contents-------------------------------------------------------BEG % wr - change formatting of the table of contents head (1 inch top margin) \renewcommand{\tableofcontents}{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi %%% begin original % \chapter*{\contentsname % \@mkboth{% % \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% %%% end original %%% i tryed the following modification, but it resulted in a loss %%% of indentation in the table of contents (not sure why) %%% begin modification - reduce top margin; pagenumber % \begin{center} % \vspace*{0.2in} % {\Large\bfseries\unc@adjustchapterspacing\textsc\contentsname} % \@mkboth{% this does something to the headings % \MakeUppercase\contentsname}{\MakeUppercase\contentsname}% % \end{center} %%% end modification \unc@makelisthead{\contentsname} \@starttoc{toc}% \if@restonecol\twocolumn\fi }% % table of contents-------------------------------------------------------END % list of figures---------------------------------------------------------BEG \renewcommand{\listoffigures}{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \unc@makelisthead{\listfigurename} \@starttoc{lof}% \if@restonecol\twocolumn\fi }% % list of figures---------------------------------------------------------END % list of tables----------------------------------------------------------BEG \renewcommand{\listoftables}{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \unc@makelisthead{\listtablename} \@starttoc{lot}% \if@restonecol\twocolumn\fi }% % list of tables----------------------------------------------------------END % abbreviation support----------------------------------------------------BEG %example for usage: \abbrev{\cmd}{formatted abbreviation}{full length} %this results in {formatted abbreviation} and {full length} being shown in %the list of abbreviations and \cmd being defined to output the formatted %abbreviation. \newcommand{\abbrev}[3] {% \unc@addabbreviation{#2}{#3}%add to loa file \newcommand{#1}{#2}% }% %second and third arguments of abbreviation are written to file for use %in \listofabbreviations \def\unc@addabbreviation#1#2{% \protected@write\@auxout {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble}% {\string\@writefile{loa}{\protect\abbreviationline{#1}{#2}}}% \typeout{\protect #1 #2} } \def\abbreviationline#1#2{\noindent\makebox[1in][l]{\textbf{#1}} #2\newline} \newcommand{\listofabbreviations}{% \clearpage \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \unc@makelisthead{\listabbreviationname} \@starttoc{loa}% \if@restonecol\twocolumn\fi }% % abbreviation support----------------------------------------------------BEG % all frontmatter starts on right handed page-----------------------------BEG \newcommand{\unctoc}{\cleardoublepage\tableofcontents} \newcommand{\unclof}{\cleardoublepage\listoffigures} \newcommand{\unclot}{\cleardoublepage\listoftables} \newcommand{\uncloa}{\cleardoublepage\listofabbreviations} % all frontmatter starts on right handed page-----------------------------END % sectioning commands-----------------------------------------------------BEG % wr - include chapter number in the equation number \renewcommand{\theequation}{\thechapter.\arabic{equation}} % wr - modified chapter command \renewcommand{\chapter}{% \cleardoublepage %start new (righthanded) page \thispagestyle{empty} %no page number on 1st page \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter %use standard section definition commands }% % for \chapter \def\@makechapterhead#1{% \ifnum\unc@first=0% \def\unc@first{1}\pagenumbering{arabic}\setcounter{page}{1}% \fi \thispagestyle{empty}% {\parindent \z@ \raggedright \reset@font \begin{center} \vspace*{1in} \huge\bfseries\unc@adjustchapterspacing \ifnum \c@secnumdepth >\m@ne \@chapapp{} \thechapter \par\nobreak \vskip 20\p@ \fi \interlinepenalty\@M \begin{spacing}{1}#1\par\nobreak\end{spacing} %this is single spaced \end{center}% \vskip 40\p@ }% }% % \chapter* \def\@makeschapterhead#1{% %\ifthenelse{\equal{#1}{\contentsname}\or\equal{#1}{\colophonname}}% % {\relax}% % {\addcontentsline{toc}{chapter}{#1}}% \ifthenelse{\equal{#1}{\bibname}}{\unc@adjustbibspacing\vspace*{-1in}}{\relax}% {\parindent \z@ \raggedright \begin{center}% \vspace*{1in}% \reset@font \interlinepenalty\@M \huge\bfseries\unc@adjustchapterspacing \begin{spacing}{1}#1\par\nobreak\end{spacing} %this is single spaced \end{center}% \vskip 40\p@ }% }% % wr - make heading for lists (smaller top margin) \def\unc@makelisthead#1{% \ifthenelse{\equal{#1}{\contentsname}\or\equal{#1}{\colophonname}}% {\relax\vspace*{0.3in}}% {\addcontentsline{toc}{chapter}{\textsc{#1}}}% {\parindent \z@ \raggedright \begin{center}% %\vspace*{0.1in}% \reset@font \interlinepenalty\@M \Large\bfseries\unc@adjustchapterspacing \textsc{#1}\par\nobreak \end{center}% \vskip 30\p@ }% }% % wr - appendices with letters rather than numbers; reset approptiate counters % NOTE: to use \secdef, the Appendix definition cannot contain argument definitions \def\Appendix{% \setcounter{section}{0}% \setcounter{subsection}{0}% \setcounter{subsubsection}{0}% \setcounter{equation}{0}% \setcounter{figure}{0} \setcounter{equation}{0} \renewcommand{\thechapter}{\Alph{appendix}}% \@afterindentfalse \secdef\@makeAppendix\@makesAppendix %use these commands for sectioning }% % wr - make the headline for the appendix; enter into toc % argument 1 goes into table of contents, argument 2 is shown as title on page \def\@makeAppendix[#1]#2{% \ifnum \c@secnumdepth >\m@ne % step the counter before anything else \addtocounter{appendix}{1}% % make entry into toc file; \protect fragile commands % don't use a numberline \addcontentsline{toc}{chapter}{\protect\appendixname{} \theappendix: #1}% % terminal and log file output; \@chapapp in the original command % represents the chaptername \typeout{Appendix \theappendix}% \else \addcontentsline{toc}{chapter}{#1}% \fi % add some space to figure and table list to separate the chapters \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% % make title \if@twocolumn \@topnewpage[\@makeappxhead{#2}]% \else \@makeappxhead{#2}% \@afterheading \fi }% % wr - make no toc entry, do not step counter \def\@makesAppendix#1{% \typeout{Appendix \theappendix}% % add some space to figure and table list to separate the chapters \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% % make title \if@twocolumn \@topnewpage[\@makeappxhead{#1}]% \else \@makeappxhead{#1}% \@afterheading \fi }% % wr - make the headline for the appendix \def\@makeappxhead#1{ \cleardoublepage \thispagestyle{empty}% {% \parindent=0pt \raggedright% \begin{center}% \begin{spacing}{1}\vspace*{1in}\end{spacing}% \reset@font\interlinepenalty\@M \huge\bfseries\unc@adjustchapterspacing \appendixname{} \theappendix \par\nobreak \vskip 20\p@ \begin{spacing}{1}#1\end{spacing}\par\nobreak \end{center}\vskip 40\p@ }% }% % sectioning commands-----------------------------------------------------END % misc definitions--------------------------------------------------------BEG \def\unc@first{0} % misc definitions--------------------------------------------------------END % new/modified counters---------------------------------------------------BEG \newcounter{appendix} \renewcommand{\theappendix}{\Alph{appendix}} % new/modified counters---------------------------------------------------END % misc environments-------------------------------------------------------BEG % wr - longtable support with modifications - indented on left and right side \newenvironment{ltable}[3]{% \footnotesize \begin{center}\begin{spacing}{1}% \setlength\LTleft{#2} \setlength\LTright{#3}% \setlength\LTcapwidth{\textwidth-\LTright-\LTleft}% \begin{longtable}{#1}% }{% \end{longtable} \setlength\LTleft\fill \setlength\LTright\fill \end{spacing}\end{center} \normalsize}% \newcommand{\mcol}[2]{% \multicolumn{#1}{ p{\textwidth-\LTright-\LTleft}}% %{\begin{spacing}{1}\centering\textbf{#2}\end{spacing}}% {\centering\textbf{#2}} }% \newenvironment{colophon}{\chapter*{\colophonname}}{} \renewenvironment{glossary}{\chapter*{\glossaryname}}{} % misc environments-------------------------------------------------------END % short caption support for sideways figures------------------------------BEG \newlength{\@shortcaptionsize} \def\shortcaption{\refstepcounter\@captype \@dblarg{\@shortcaption\@captype}} \long\def\@shortcaption#1[#2]#3{% \par\addcontentsline{\csname ext@#1\endcsname}{#1}{\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}% \begingroup \@parboxrestore \normalsize \@makeshortcaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par \endgroup }% \long\def\@makeshortcaption#1#2{% \vskip\abovecaptionskip \setlength{\@shortcaptionsize}{.75\hsize}% \sbox\@tempboxa{#1: #2}% \ifdim \wd\@tempboxa >\@shortcaptionsize \hbox to\hsize{\hfil\parbox[t]{\@shortcaptionsize}{#1: #2}\hfil}% \else \global \@minipagefalse \hbox to\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip }% % short caption support for sideways figures-------------------------------END % from UI thesis style-----------------------------------------------------BEG % Redefine the macro used for floats (including figures and tables) % so that single spacing is used. % (Note \def\figure{\@float{figure}set single spacing} doesn't work % because figure has an optional argument) \def\@xfloat#1[#2]{% \ifhmode \@bsphack\@floatpenalty -\@Mii \else \@floatpenalty-\@Miii \fi \def\@captype{#1}% \ifinner \@parmoderr\@floatpenalty\z@ \else \@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n \@tfor \@tempa :=#2\do {\if\@tempa h\advance\@tempcnta \@ne\fi \if\@tempa t\advance\@tempcnta \tw@\fi \if\@tempa b\advance\@tempcnta 4\relax\fi \if\@tempa p\advance\@tempcnta 8\relax\fi }% \global\count\@currbox\@tempcnta}\@fltovf \fi \global\setbox\@currbox\vbox\bgroup \def\baselinestretch{1}\@normalsize \boxmaxdepth\z@ \hsize\columnwidth \@parboxrestore }% % Redefine the macro used for footnotes to use single spacing \long\def\@footnotetext#1{% \insert\footins{\def\baselinestretch{1}\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}} }% % from UI thesis style-----------------------------------------------------END % execution----------------------------------------------------------------BEG \ExecuteOptions{nodraft} \unc@setmargins \ProcessOptions \AtBeginDocument{\pagestyle{plain}} % execution----------------------------------------------------------------END