summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/afthesis/afthes12.sty
blob: d7485f68cb312a4b09e9c9a84867b0dd4648161d (plain)
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
% thes12.sty 22 Nov 93
% cleaned up (some) by Joel Young 16 Nov 96
%   Attempt to only have those things that are different from
%   .../texmf/tex/latex/base/size11.clo
%
\lineskip 1pt \normallineskip 1pt
\def\baselinestretch{1.5}
\def\str@tchamount{1.5}

\setlength\oddsidemargin  {19.5pt}
\setlength\evensidemargin {19.5pt}

\setlength\topmargin     {-4pt}
\setlength\headheight    {18pt}
\setlength\headsep       {4pt}
\setlength\footskip      {26pt}
\setlength\topskip       {10pt}

\if@compatibility 
  \setlength\footheight {24pt}
  \setlength\@maxsep    {20pt}
  \setlength\@dblmaxsep {20pt}
\fi

\setlength\textheight    {618pt}
\setlength\textwidth     {429pt}
\setlength\columnsep     {10pt}
\setlength\columnseprule {0pt}

\setlength\parskip       {5pt plus 1.5pt minus .5pt}
\setlength\parindent     {2.5em}  % same as leftmargini--quote margin
\setlength\itemsep       {0pt plus .5pt}

\setlength{\skip\footins} {20pt plus 4pt minus 4pt}
\setlength\floatsep      {14pt plus 2pt minus 4pt}
\setlength\textfloatsep  {20pt plus 2pt minus 4pt}
\setlength\topsep        {10pt plus 4pt minus 6pt}

\def\@makechapterhead#1{%
  \ \vspace*{-18pt}%
  {\parindent 0pt
   \begin{center}
     \baselineskip=18.5pt
     \ifnum \c@secnumdepth >\m@ne
       \ifx\@chapapp\appfl@g
         \large{\em Appendix \thechapter.\ \ #1}
       \else
         \large{\em \thechapter.\ \ #1}
       \fi
     \else
       \large{\em #1}
     \fi
   \end{center}
   \par \nobreak
  }}

\def\@makeschapterhead#1{%
  \ \vspace*{-18pt}%
  {\parindent 0pt%
   \begin{center}%
     \baselineskip=18.5pt%
     \large{\em #1}%
   \end{center}%
   \par \nobreak%
  }}

\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
                    \thispagestyle{afitplain}%
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}

\def\@chapter[#1]#2{
      \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}
        \ifx\@chapapp\appfl@g{} \else \ifnum\value{chapter}=1
          \setcounter{page}{1}
          \pagestyle{afitplain} \ \vspace*{-18pt}
          \begin{center} 
	    \begin{singlespace}

	      \large\baselineskip=27.5pt\ti@tle

	    \end{singlespace}
          \end{center}
          \addvspace{30pt}\fi
        \fi
        \ifx\ch@ptnum\ch@ptnumflag %then sequential
          \def\thepage{\arabic{page}}
          \def\theequation{\arabic{equation}}
          \def\thefigure{\arabic{figure}}
          \def\thetable{\arabic{table}}
        \else %number by chapter
          \ifx\@chapapp\appfl@g
          \def\theequation{\Alph{chapter}.\arabic{equation}}
          \def\thepage{\Alph{chapter}-\arabic{page}}
          \def\thefigure{\Alph{chapter}.\arabic{figure}}
          \def\thetable{\Alph{chapter}.\arabic{table}}
          \else
          \def\theequation{\arabic{chapter}.\arabic{equation}}
          \def\thepage{\arabic{chapter}-\arabic{page}}
          \def\thefigure{\arabic{chapter}.\arabic{figure}}
          \def\thetable{\arabic{chapter}.\arabic{table}}
          \fi
          \setcounter{page}{1}
          \setcounter{equation}{0}
          \setcounter{figure}{0}
          \setcounter{table}{0}
          \addtocontents{lof}{\protect\addvspace{10pt}}
          \addtocontents{lot}{\protect\addvspace{10pt}}
        \fi
        \typeout{^^J\@chapapp\space\arabic{chapter}.}
        \setstretch{\str@tchamount}\normalsize
        \ifx\@chapapp\appfl@g
        \addcontentsline{toc}{appendix}
		      {\protect\numberline{Appendix \thechapter.}#1}
	\else
        \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter.}#1}
	\fi
      \else
        \addcontentsline{toc}{chapter}{#1}
      \fi
      \chaptermark{#1}
      \@makechapterhead{#2} \@afterheading
      }  

\def\@schapter#1{\if@toc
		 \else
		   \addcontentsline{toc}{chapter}{#1}%
		 \fi
                 \typeout{^^J#1.}
		 \@makeschapterhead{#1}%
		 \@afterheading
		}

%redefined from latex.tex for underlining option and to supply a period
%when subsections and below use this macro

%normal sections use this, mod made if nosectionnumbers option chosen
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \let\@svsec\@empty\else
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em}\fi
     \if@nosectnum\let\@svsec\@empty\fi% added - MAR
     \@tempskipa #5\relax
     \ifdim \@tempskipa>\z@
       \begingroup #6\relax
         \@hangfrom{\hskip #3\relax{\em\@svsec}}{\interlinepenalty \@M %
		    {\em #8}\par}% added \em - MAR
       \endgroup
       \csname #1mark\endcsname{#7}
       \addcontentsline{toc}{#1}
	 {\ifnum #2>\c@secnumdepth
          \else\protect\numberline{\csname the#1\endcsname}\fi #7}
     \else
       \def\@svsechd{%
	 #6\hskip #3\relax  %% \relax added 2 May 90
	 {\setbox\z@=\hbox{\lowercase{#8}\ifnum\spacefactor>\@m
	  \gdef\@@t{#8}\else\gdef\@@t{#8\@.}\fi}\em\@svsec\@@t}
	 \csname #1mark\endcsname{#7}
	 \addcontentsline{toc}{#1}
	    {\ifnum #2>\c@secnumdepth
	     \else\protect\numberline{\csname the#1\endcsname}\fi #7}%
	}
     \fi
     \@xsect{#5}}

%starred sections use this
\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax  %added \em in below - MAR
   \ifdim \@tempskipa>\z@
     \begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M {\em #5}\par}
     \endgroup
   \else \def\@svsechd{#4\hskip #1\relax
          {\setbox\z@=\hbox{\lowercase{#5}\ifnum\spacefactor>\@m
          \gdef\@@t{#5}\else\gdef\@@t{#5\@.}\fi}\em\@@t}}
   \fi
   \@xsect{#3}}

\def\section{\@startsection {section}{1}{\z@}{.2in}{.01in}{\normalsize}}
\def\subsection{\@startsection{subsection}{2}{\parindent}{2ex}
      {-1.5ex plus .1ex}{\normalsize}}
\def\subsubsection{\@startsection{subsubsection}{3}{2\parindent}
      {2ex}{-1.5ex}{\normalsize}}
\def\paragraph{\@startsection
 {paragraph}{4}{3\parindent}{2ex}{-1em}{\normalsize}}
\def\subparagraph{\@startsection
 {subparagraph}{4}{4\parindent}{2ex}{-1em}{\normalsize}}

\def\chaptermark#1{}

\setcounter{secnumdepth}{3}

\setlength\leftmargini {\parindent}  % 2.5em
\setlength\leftmargin  {\leftmargini}
\setlength\labelwidth  {\leftmargini}
\addtolength\labelwidth{-\labelsep}
\setlength\parsep      {5pt plus 2.5pt minus 1pt}
\def\@listi{\leftmargin\leftmargini}
\let\@listI\@listi
\@listi
\endinput
%%
%% End of file `afthes12.sty'.