%%% This is ncsuthesis.cls, borrowed in part from the uscthesis.cls package, %%% Version 17 February 1999, written by the LaTex guru Dr. George McNulty %%% at the University of South Carolina. %%% %%% It lays out the pages as required by the NCSU thesis and dissertation %%% guidelines for both a MS thesis and a PhD dissertation. It starts %%% each chapter of your thesis/dissertation on a new page, %%% with the print starting two inches below the top edge of the paper, %%% centering the page numbers at the bottom of the page. %%% It double spaces the text, but sets footnotes %%% and stuff like that single spaced. It also formats your title page, %%% table of contents, abstract, acknowledgments, biography, %%% the optional dedication, ect. %%% %%% To use this class package, you must FOLLOW THE DIRECTIONS BELOW: %%% %%% %%% (1.) To use this package, you should prepare a .tex file %%% for each section of your dissertation or thesis. This file should %%% contain ONLY the text of the section, DO NOT include any package %%% commands such as \usepackage{} or the commands \begin{document} and %%% \end{document}. %%% %%% The file containing the first section of a chapter should begin with %%% %%% \chapter{Put the Chapter Title Here} %%% %%% \section{Put the section title here} %%% %%% A file containing a section which is not the first %%% section of the chapter should begin %%% %%% \section{Put the section title here} %%% %%% If your chapter contains no ``subsections'', then you need only type in %%% %%% \chapter{Put Chapter Title Here} %%% %%% NOTE: This package will automatically number {1., 2., ect} your chapters %%% and sections. If you do not want it to do this, you need to type the %%% following at the beginning of each chapter (instead of what is listed %%% above): %%% %%% \chapter*{Put Chapter Title Here} %%% %%% The '*' command will supress the numbering. %%% %%% (2.) Then, make another file (your source file, another example is given %%% later) called mainthesis.tex that looks like this: %%% %%% \documentclass[PhD,oneside,12pt]{ncsuthesis} %% MS is another option %%% \usepackage{epic} %% Or other standard and local %%% \usepackage{curvesls} %% macro packages that you need %%% \usepackage{zoltanmac} %% %%% \usepackage[authoryear,square]{natbib} %% Or other citation macros %%% \bibliographystyle{alvinxx} %% Or other .bst file %%% %%% %%% \title{Groups and Graphs} %% Of course use your own title %%% \author{Bob}{Jones} %% First Name then Last Name %%% \date{1998} %% The year of graduation %%% \otherdegrees{Master of Science\\ West University, 1995} %%% %% Whatever your degrees are %%% \abstract{abstract} %% this calls the file abstract.tex %%% %% where you have stored your abstract %%% %%% *NOTE: In the body of your abstract, preceding your actual abstract, %%% you must include the following: %%% \smallskip %%% \noindent %%% Last Name, First Name. Thesis Title. (Thesis Director: Dr. So-And %%% So) %%% \smallskip %%% \smallskip %%% \smallskip %%% *END OF NOTE %%% %%% \advisor {Dr.}{Ellison Anne Williams} %% Use some other advisor %%% \acknowledgements{acknow} %% this calls the file acknow.tex %%% %% where you have put your %%% %% acknowledgements. %%% \dedication{dedication} %% Calls dedication.tex %%% \biography{bio} %% Calls bio.tex %%% %%% *NOTE: In the body of your biography, acknowledgements, and/or dedication, %%% you must include the following, preceeding the actual text: %%% \begin{Large} %%% \begin{flushleft} %%% \textsc{Acknowledgements} %%% \end{flushleft} %%% \end{Large} %%% \medskip %%% \medskip %%% \medskip %%% *END OF NOTE %%% %%% \emptyLoT %% No tables in the text delete it if you want a %%% %% list of tables in the front matter. \emptyLoF %%% %% works the same way but for figures. %%% \begin{document} %%% \include{introduction} %% calls introduction.tex %%% \include{sec1} %% calls sec1.tex %%% \include{sec2} %%% \include{sec3} %%% \include{sec4} %%% \include{sec5} %%% \include{sec6} %%% \include{sec7} %%% \include{sec8} %%% \include{bibliography} %%calls bibliography.tex %%% \end{document} %%% %%% *NOTE: The file bibliography.tex has just one line if you use LaTeX to %%% automatically format your bibliograpy: %%% \bibliography{\jobname} %%% Following BibTeX guidelines, you should assemble your %%% bibliographic database in a file called main.bib %%% *END OF NOTE %%% %%% (3.) Now, do the following: %%% 1. latex mainthesis.tex %%% 2. bibtex mainthesis.tex (if you used BibTeX) %%% 3. latex mainthesis.tex %%% 4. latex mainthesis.tex %%% 5. it might be necessary to do latex main %%% a few more times to get the internal cross %%% references right. %%% The result should be a file called mainthesis.dvi. Viewing this %%% file with xdvi or printing it with dvips should produce %%% a copy of the abstract and a copy of the %%% the dissertation or thesis, including all the front matter and %%% the bibliography. %%% %%% (4.) Additionally, you MUST go into the code below dealing with 'Thesis %%% Prologue Pages;' the 'base codes for the prologue pages' to manually %%% enter your committee members as Dr. So-And-So %%% instead of Dr. XX, Dr. XY, Dr. YX, and Dr. YY. %%% %%% Below, is another copy of a source file, mainthesis.tex, my dissertation %%% source file. You may view a copy of my dissertation to see what the end %%% product looks like online through the graduate school (ETD website): %%% %%% \documentclass[PhD,oneside,12pt]{ncsuthesis} %%% \usepackage{amssymb} %%% \usepackage{epic} %%% \usepackage{curves} %%% \title{A Formula for N-Row Macdonald Polynomials} %%% \author{Ellison Anne}{Williams} %%% \date{2004} %%% \otherdegrees{Bachelor of Arts, Columbia College, 1999\\ %%% Master of Science, University of South Carolina, 2001} %%% \abstract{abstract} %%% \advisor{Dr.}{Naihuan Jing, Dr. Ernie Stitzinger} %%% \acknowledgements{ackp} %%% \biography{Biography} %%% \emptyLoT %%% \emptyLoF %%% \begin{document} %%% \include{introp} %%% \include{section2p} %%% \include{section3p} %%% \include{section4p} %%% \include{section5p} %%% \include{section6p} %%% \include{bibliop} %%% \end{document} %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} [1994/12/01] \ProvidesClass{uscthesis}[1999/2/16] \DeclareOption{PhD}{% \newcommand{\th@Titlepage}{\th@PhDTitlepage} }% \DeclareOption{MS}{% \newcommand{\th@Titlepage}{\th@MSTitlepage} }% \DeclareOption{MA}{% \newcommand{\th@Titlepage}{\th@MATitlepage} }% \DeclareOption{12pt}{% \PassOptionsToClass{12pt}{amsbook} }% \DeclareOption{10pt}{% \PassOptionsToClass{10pt}{amsbook} }% \DeclareOption{11pt}{% \PassOptionsToClass{11pt}{amsbook} }% \DeclareOption{psamsfonts}{% \PassOptionsToClass{psamsfonts}{amsbook} }% \DeclareOption{oneside}{% \PassOptionsToClass{oneside}{amsbook} }% \ExecuteOptions{oneside,12pt} \ProcessOptions\relax \LoadClass{amsbook} \RequirePackage{ifthen} \RequirePackage{latexsym} \RequirePackage{amsfonts} \RequirePackage{amssymb} \RequirePackage{amsthm} \RequirePackage{amsmath} %%% %%% This stuff arranges that all the figures are numbered in %%% one sequence, rather than within chapters, in the list of figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcounter{mfigure} \newcommand{\fps@mfigure}{tbp} \newcommand{\ftype@mfigure}{1} \newcommand{\ext@mfigure}{lof} \newcommand{\fnum@mfigure}{\figurename~\themfigure} \renewenvironment{figure} {\@float{mfigure}} {\end@float} %\newcommand*\l@mfigure{\@dottedtocline{1}{1.5em}{2.3em}} \newcommand*\l@mfigure{\@tocline{0}{3pt plus2pt}{0pt}{}{}} %%%%Here are the basic page dimensions%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setlength{\oddsidemargin}{.5in} \setlength{\evensidemargin}{\oddsidemargin} \setlength{\topmargin}{0pt} \setlength{\headheight}{0pt} \setlength{\headsep}{0pt} \setlength{\textwidth}{6in} \setlength{\textheight}{8.9in} %%9.1in \setlength{\footskip}{.39in} %%% The next stuff was stolen from the University of %%% Colorado's thesis.sty. It handles the doublespacing %%% but allows singlespacing in footenotes etc %%%%%%%%%%%%%%%%%%% % DEFINE DOUBLE-SPACING (THE DEFAULT) AND OTHER SPACING \def\setspace@size{\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi} \def\doublespacing{ \ifcase \@ptsize \relax \def \baselinestretch {2.004}% 10pt \or \def \baselinestretch {1.771}% 11pt \or \def \baselinestretch {1.660}% 12pt \fi \setspace@size} \def\singlespacing{\def \baselinestretch {1} \setspace@size \vskip \baselineskip} \def\setstretch#1{\renewcommand{\baselinestretch}{#1}} \def\@setsize#1#2#3#4{\@nomath#1 \let\@currsize#1 \baselineskip #2 \baselineskip \baselinestretch\baselineskip \parskip \baselinestretch\parskip \setbox\strutbox \hbox{ \vrule height.7\baselineskip depth.3\baselineskip width\z@} \skip\footins \baselinestretch\skip\footins \normalbaselineskip\baselineskip#3#4} %%%%%%%%% floats & footnotes singlespaced %%%%%%%%% \let\latex@xfloat=\@xfloat \def\@xfloat #1[#2]{\latex@xfloat #1[#2] \def\baselinestretch{1}\@normalsize \normalsize} \long\def\@footnotetext#1{ \insert\footins{ \def\baselinestretch {1} \reset@font\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}} \long\def\@mpfootnotetext#1{ \global\setbox\@mpfootins\vbox{ \unvbox \@mpfootins \def\baselinestretch {1} \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel{ \csname p@mpfootnote\endcsname\@thefnmark} \color@begingroup \@makefntext{ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox} \color@endgroup}} %%%%%%%% single / double spacing %%%%%%%%% \def\singlespace{ \vskip \baselineskip \def\baselinestretch {1} \setspace@size \vskip -\baselineskip } \def\endsinglespace{\par} \def\spacing#1{ \par \begingroup \def\baselinestretch {#1} \setspace@size } \def\endspacing{ \par \vskip \parskip \vskip \baselineskip \endgroup \vskip -\parskip \vskip -\baselineskip } \def\doublespace{ \ifcase \@ptsize \relax \spacing{2.004}% 10pt \or \spacing{1.771}% 11pt \or \spacing{1.660}% 12pt \fi } \let\enddoublespace=\endspacing %%% This stuff does the page style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand{\ps@plain}{% \let\@oddhead\@empty\let\@evenhead\@empty \def\@evenfoot{\hfil\thepage\hfil}% \def\@oddfoot{\@evenfoot}% }% \pagestyle{plain} %%% The next stuff makes chapters start centered %%% an extra inch down. Also the word ``Chapter'' %%% turns up in the table of contents. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \let\@chapapp\chaptername \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{\@chapapp\space\thechapter.}% \addcontentsline{toc}{chapter}% {Chapter~\protect\numberline{\thechapter}\qquad#1}% \else \addcontentsline{toc}{chapter}{#1}% \fi \setcounter{section}{0} \chaptermark{#1}% % \addtocontents{lof}{\protect\addvspace{10\p@}}% % \addtocontents{lot}{\protect\addvspace{10\p@}}% \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi} \def\@makechapterhead#1{% \clearpage\vspace*{36\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \Large\scshape \@chapapp\space \thechapter \par\nobreak \vskip 20\p@ \fi \interlinepenalty\@M \Large \scshape #1\par\nobreak \vskip 10\p@ }} \def\@schapter#1{\setcounter{section}{0} \if@twocolumn \@topnewpage[\@makeschapterhead{#1}]% \else \@makeschapterhead{#1}% \@afterheading \fi \addcontentsline{toc}{chapter}% {#1\numberline{}} }% \def\@makeschapterhead#1{% \clearpage\vspace*{36\p@}% {\parindent \z@ \raggedright \normalfont \interlinepenalty\@M \Large \scshape #1\par\nobreak \vskip 40\p@ }} %%% Here is the section stuff %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand\section{\vspace*{.25in} \@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\large\scshape}} \renewcommand{\thesection}{\thechapter.\arabic{section}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% This stuff on the prologue pages adapted from the %%% University of Colorado thesis.sty % THESIS PROLOGUE PAGES. % Stores the second arg in the command specified by the first arg. \newcommand{\th@StoreIn}[2]{ \gdef#1{#2} } % Default values of storage variables. Emits an error message. % This part of the class is long... \newcommand*{\th@title}{ \ClassError{thesis}{ You must specify a title!} {Use the \protect\title{} command in the preamble.} } \newcommand*{\th@advisor}{ \ClassError{thesis}{ You must specify your research advisor's name \MessageBreak and full title.} {Use the \protect\advisor{}{} command in the \MessageBreak preamble. The first arg is your advisor's \MessageBreak full title. The second arg is your advisor's \MessageBreak name.} } \newcommand*{\th@advisortitle}{ \ClassError{thesis}{ You must specify your research advisor's name \MessageBreak and full title.} {Use the \protect\advisor{}{} command in the \MessageBreak preamble. The first arg is your advisor's \MessageBreak full title. The second arg is your advisor's \MessageBreak name.} } \newcommand*{\th@fwdname}{ \ClassError{thesis}{ You must specify your name!} {Use the \protect\author{}{} command in the \MessageBreak preamble. The first arg is your first name and \MessageBreak middle initial. The second arg is your last name.} } \newcommand{\th@otherdegrees}{ \ClassError{thesis}{ You must specify other degrees you hold!} {Use the \protect\otherdegrees{} command in the \MessageBreak preamble. Break each line using the \protect\\ \MessageBreak command.} } \newcommand{\th@abstractStash}{ \ClassError{thesis}{ You must specify an abstract!} {Use the \protect\abstractpage[]{} command in the \MessageBreak preamble. If your abstract runs over a page, \MessageBreak use the optional argument with the word 'long'.} } \newcommand*{\th@degreeyear}{ %\number\the\year} \ClassError{ncsuthesis}{ You must specify the year of your degree!} {Use the \protect\date{} command in the preamble.} } \newcommand*{\th@signature}[1]{% \begin{tabular*}{2.45in}[t]{l} % \normalsize \noalign{\vspace*{16mm}} % works well? % \rule{2.45in}{2mm}\\ \hline #1 \end{tabular*} } \newcommand*{\th@dateline}{ \vspace*{9mm} \begin{flushright} Date~{\vrule width 35mm height 0.2mm} \end{flushright} } \newcommand{\th@AbstractPageStyle}{\relax} \newcommand{\th@BiographyStash}{\relax} \newcommand{\th@BiographyTitleStash}{\relax} \newcommand{\th@DedicationStash}{\relax} \newcommand{\th@DedicationTitleStash}{\relax} \newcommand{\th@acknowledgementsStash}{\relax} \newif\if@shortLoF \newif\if@shortLoT \newif\if@shortToC \newif\if@makenoLoF \newif\if@makenoLoT \newif\if@makeBiography \newif\if@makeDedication \newif\if@makeAcknowledgements \newif\if@makePrologue \@shortLoFfalse \@shortLoTfalse \@shortToCfalse \@makenoLoFfalse \@makenoLoTfalse \@makeBiographyfalse \@makeDedicationfalse \@makeAcknowledgementsfalse \@makeProloguetrue % The base commands that make all of the prologue pages. \newcommand*{\th@PhDTitlepage}{ \clearpage \setcounter{page}{1} \doublespacing \thispagestyle{empty} \begin{center} \quad{\LARGE \expandafter{\th@title}}\quad\\ \vfill by\\ \quad\th@fwdname\quad\\ \quad{\singlespacing\expandafter{\th@otherdegrees}}\quad\\ \vrule width 90mm height 0.2mm\\ Submitted in Partial Fulfillment of the Requirements\\ for the Degree of Doctor of Philosophy in the\\ Department of Mathematics\\ North Carolina State University\\ \quad\th@degreeyear\quad \end{center} \vfill {\singlespacing\expandafter{% {\setlength{\tabcolsep}{2pt} \begin{tabular*}{\linewidth}{lcr} \th@signature{Dr. XX\\ Chair, Advisory Committee}&% \hspace*{.88in}&\th@signature{Dr. XY\\Co-Chair, Advisory Committee}\\ \th@signature{Dr. YX\\ Committee Member}&\quad& \th@signature{Dr. YY\\ Committee Member}\\ \end{tabular*} }}} } \newcommand*{\th@MSTitlepage}{ \clearpage \setcounter{page}{1} \doublespacing \thispagestyle{empty} \begin{center} \quad{\LARGE \expandafter{\th@title}}\quad\\ \vfill by\\ \quad\th@fwdname\quad\\ \quad{\singlespacing\expandafter{\th@otherdegrees}}\quad\\ \vrule width 90mm height 0.2mm\\ Submitted in Partial Fulfillment of the Requirements\\ for the Degree of Master of Science in the\\ Department of Mathematics\\ North Carolina State University\\ \quad\th@degreeyear\quad \end{center} \vfill {\singlespacing\expandafter{ {\setlength{\tabcolsep}{2pt} \begin{tabular*}{\linewidth}{lcr} \th@signature{Dr. XX\\ Chair of Advisory Committee}&% \hspace*{.88in}&% \th@signature{Dr. YY\\ Committee Member}\\ \multicolumn{3}{c}{\th@signature{Dr. XY\\ Committee Member}} \end{tabular*} }}} } \newcommand{\th@umiAbstractpage}{ \thispagestyle{empty} \doublespacing \begin{center} {\large\scshape Abstract}\\ \end{center} \vspace*{1.5\parsep} \th@abstractStash % finally, the actual abstract \par \noindent } \newcommand{\th@Abstractpage}{ \clearpage\thispagestyle{plain} {\chapter*{Abstract}} {\doublespacing \th@abstractStash} } \newcommand{\th@Biographypage}{ \if@makeBiography \clearpage\thispagestyle{plain} {\doublespacing \th@biographyStash} \fi } \newcommand{\th@Dedicationpage}{ \if@makeDedication \clearpage\thispagestyle{plain} {\doublespacing \th@dedicationStash} \fi } \newcommand{\th@Acknowledgementpage}{ \if@makeAcknowledgements \clearpage\thispagestyle{plain} {\doublespacing \th@acknowledgementsStash} \fi } \newcommand{\th@ToCpage}{ {\doublespacing \tableofcontents} } \newcommand{\th@LoFpage}{ \if@makenoLoF \typeout{Skipping LoF...} \else {\doublespacing \listoffigures} \fi } \newcommand{\th@LoTpage}{ \if@makenoLoT \typeout{Skipping LoT...} \else {\doublespacing \listoftables} \fi } % This performs the actual generation of the prologue \newcounter{th@storepage} \newcommand{\th@MakeThesisPrologue}{ \if@makePrologue \typeout{Making the UMI Abstract} \th@umiAbstractpage \pagenumbering{roman} \typeout{Making Title Page} \th@Titlepage \typeout{Making Biography Page} \th@Biographypage \typeout{Making Dedication Page} \th@Dedicationpage \typeout{Making Acknowledgement Page} \th@Acknowledgementpage \setcounter{th@storepage}{\value{page}} \typeout{Making ToC Page} \th@ToCpage \typeout{Making LoF Page} \th@LoFpage \typeout{Making LoT Page} \th@LoTpage \fi } % Make the generator-command the very first command of the document. \let\th@OldBeginDocument\document \renewcommand*{\document}{ \th@OldBeginDocument \th@MakeThesisPrologue \typeout{} \typeout{} \typeout{-------------------Beginning Body----------------------} \typeout{} \typeout{} \doublespacing \clearpage \pagenumbering{arabic} } % USER COMMANDS FOR CONTROLLING THE PROLOGUE. \renewcommand*{\title}[1]{\th@StoreIn{\th@title}{#1}} \title{My most Impressive Ideas} \newcommand{\otherdegrees}[1]{\th@StoreIn{\th@otherdegrees}{#1}} \otherdegrees{Harvard of course} \newcommand{\acknowledgements}[1]{ \@makeAcknowledgementstrue \th@StoreIn{\th@acknowledgementsStash}{\input #1\relax} } \newcommand{\biography}[1]{ \@makeBiographytrue \th@StoreIn{\th@biographyStash}{\input #1\relax} } \newcommand{\dedication}[1]{ \@makeDedicationtrue \th@StoreIn{\th@dedicationStash}{\input #1\relax} } \renewcommand*{\date}[1]{\th@StoreIn{\th@degreeyear}{#1}} \renewcommand*{\author}[2]{ \th@StoreIn{\th@fwdname}{#1 #2} \th@StoreIn{\th@revname}{#2, #1} } \newcommand*{\advisor}[2]{ \th@StoreIn{\th@advisor}{#2} \th@StoreIn{\th@advisortitle}{#1} } \renewcommand{\abstract}[2][long]{ \ifthenelse{\equal{#1}{short}}{\relax}{ \th@StoreIn{\th@AbstractPageStyle}{\thispagestyle{empty}} } \th@StoreIn{\th@abstractStash}{\input #2\relax} } \newcommand*{\SuspendPrologue}{ \@makeProloguefalse \typeout{No prologue pages printed.} } \newcommand*{\emptyLoF}{ \@makenoLoFtrue \typeout{No LoF printed} } \newcommand*{\emptyLoT}{ \@makenoLoTtrue \typeout{No LoT printed} } \newcommand*{\ToCisShort}{ \@shortToCtrue \typeout{Putting page number on short ToC} } \newcommand*{\LoFisShort}{ \@shortLoFtrue \typeout{Putting page number on short LoF} } \newcommand*{\LoTisShort}{ \@shortLoTtrue \typeout{Putting page number on short LoT} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Theorem type formats (Needs amsthm.sty) %\newtheorem {theo}{\sc Theorem}[chapter] %\newtheorem {lemma}[theo]{\sc Lemma} %\newtheorem {prop}[theo]{\sc Proposition} %\newtheorem {cor}[theo]{\sc Corollary} %\newtheorem {prob}{\sc Problem} %%% By inserting \theoremstyle{definition} below %%% uses of alg defin and ex will be set in %%% the roman family. This needs the package %%% amsthm.sty %\theoremstyle{definition} %\newtheorem {alg}{\sc Algorithm} %\newtheorem {defin}{\sc Definition}[chapter] %\newtheorem {ex}{\sc Example}[chapter] %\newenvironment{alg}[1] % {\begin{center} % \textbf{#1} % \end{center} % } % {\begin{center} % $\square$ % \end{center}} %%% The stuff below makes this work with amsbook %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\@dotsep{4.5} %\def\bibliographystyle#1{\write\@auxout{\string\bibstyle{#1}}} \def\bibliographystyle#1{% \if@filesw\write\@auxout {\string\bibstyle{#1}}\fi \def\@tempa{#1}% \def\@tempb{amsplain}% \def\@tempc{}% \ifx\@tempa\@tempb \def\@biblabel##1{##1.}% \def\bibsetup{}% \else \def\bibsetup{\labelsep6\p@}% \ifx\@tempa\@tempc \def\@biblabel##1{}% \def\bibsetup{\labelwidth\z@ \leftmargin24\p@ \itemindent-24\p@ \labelsep\z@ }% \fi \fi} \endinput %% End of file ``ncsuthesis.cls''