forked from iastat/isu-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isutraditional.sty
141 lines (136 loc) · 5.97 KB
/
isutraditional.sty
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
%% Subpackage: thesisreport.sty for use with the isuthesis package.
%%
%% LaTeX document package `isuthesis', for use with LaTeX2e.
%% This is a package that is used with the report class to
%% create a thesis at Iowa State University.
%%
%% COPYRIGHT 1997, by Joe Struss ([email protected])
%%
%% Copying of part or all of any file in the isuthesis.sty package
%% including isumacros.sty, thesisreport.sty and isuthesis.sty
%% is allowed under the following conditions only:
%% (1) You may freely distribute unchanged copies of the files. Please
%% include the any or all documentation when you do so.
%% (2) You may modify a renamed copy of any file, but only for personal
%% use or use within an organization.
%% (3) You may copy fragments from the files, for personal use or for use
%% in a macro package for distribution, as long as credit is given
%% where credit is due.
%%
%% You are NOT ALLOWED to take money for the distribution or use of
%% these files or modified versions or fragments thereof, except for
%% a nominal charge for copying etc.
%%
%Standard Report class changes; JAS 10/95-3/96
% Part -standard (change Huge and huge to Large
\renewcommand{\part}{\cleardoublepage
%\thispagestyle{plain} - remove to get rid of page #
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\hbox{}\vfil
\secdef\@part\@spart}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\partname \thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
\markboth{}{}
{\centering
\interlinepenalty \@M
\reset@font
\ifnum \c@secnumdepth >-2\relax
\Large\bfseries \partname~\thepart
\par
\vskip 20\p@
\fi
\Large \bfseries #2\par}%
\@endpart}
\def\@spart#1{%
{\centering
\interlinepenalty \@M
\reset@font
\Large \bfseries #1\par}%
\@endpart}
\def\@endpart{\vfil\newpage
\if@twoside
\hbox{}%
\thispagestyle{empty}%
\newpage
\fi
\if@tempswa
\twocolumn
\fi}
% Chapter
\renewcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{threepartheadings}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter.}#1}% . - JAS98
\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}
\def\@makechapterhead#1{% % Heading for \chapter command.
\vspace*{50\p@}% % Space at top of text page
{\centering \reset@font \large\bfseries % JAS, huge to large (removal and spaces)
\ifnum \c@secnumdepth >\m@ne % IF secnumdepth > -1
\interlinepenalty\@M
\if@singleappendix
\thechapter
\else
\@chapapp \thechapter \fi \fi % print 'Chapter' and number
.~~~#1\par % . - JAS98
\nobreak % TeX penalty to prevent page break.
\vskip 40pt}} % Space between title and tex.
\def\@makeschapterhead#1{% Heading for \chapter* command
\vspace*{50\p@}% % Space at top of page
{\reset@font \centering \large \bfseries
\interlinepenalty\@M
~~~#1\par\nobreak % JAS Huge to large, Title, TeX penalty to prevent page break, .-JAS98
\vskip 40\p@ % Space between title and tex.
}}
% Sections, subsections, subsubsections
\renewcommand{\section}{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\noindent\reset@font\centering\large\bfseries }}
% JAS: Large to large and JAS98 \centering
\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\reset@font\normalsize\bfseries\noindent \hskip 0.0 in}}
% JAS: large to normalsize; added 0.0 cm \hskip; JAS98 added \noindent
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\reset@font\normalsize\bfseries\noindent \hskip 0.25 in}}
% JAS no change; added .25 in \hskip; JAS98 added \noindent
% Paragraph and subparagraph (JAS -reformulation)
% (basically the same as subsection and subsubsection)
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries\indent \hskip 0.0 in}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\bfseries \hskip 0.25 in}}