From 439e3af0a2b452752a16fc844f5ac609567b977a Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 28 Jul 2008 22:55:57 +0000
Subject: new package afthesis

git-svn-id: svn://tug.org/texlive/trunk@9854 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/afthesis/afthes11.sty | 212 ++++++++++++++++++++++
 1 file changed, 212 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/afthesis/afthes11.sty

(limited to 'Master/texmf-dist/tex/latex/afthesis/afthes11.sty')

diff --git a/Master/texmf-dist/tex/latex/afthesis/afthes11.sty b/Master/texmf-dist/tex/latex/afthesis/afthes11.sty
new file mode 100644
index 00000000000..1e21028a3c7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/afthesis/afthes11.sty
@@ -0,0 +1,212 @@
+% thes11.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\topsep        {9pt plus 3pt minus 5pt}
+\setlength\partopsep     {3pt plus 1pt minus 2pt}
+
+\def\@makechapterhead#1{%
+  \ \vspace*{-27pt}%
+  {\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*{-27pt}%
+  {\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=25pt\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@}{.225in}{.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
+\def\@listii{\leftmargin\leftmarginii
+	     \labelwidth\leftmarginii
+	     \advance\labelwidth-\labelsep
+	     \topsep 5pt plus 2.5pt minus 1pt
+	     \parsep 2.5pt plus 1pt minus 1pt
+	     \itemsep \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+	      \labelwidth\leftmarginiii
+	      \advance\labelwidth-\labelsep
+	      \topsep 2.5pt plus 1pt minus 1pt
+	      \parsep \z@
+	      \partopsep 1pt plus 0pt minus 1pt
+	      \itemsep \topsep}
+\endinput
+%%
+%% End of file `afthes11.sty'.
-- 
cgit v1.2.3

