5
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
6
\ProvidesClass{howto}[2008/10/18 Document class (Sphinx HOWTO)]
8
% Pass all given class options to the parent class.
9
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
11
\LoadClass[oneside]{article}
13
% Set some sane defaults for section numbering depth and TOC depth. You can
14
% reset these counters in your preamble.
16
\setcounter{secnumdepth}{2}
18
% Change the title page to look a bit better, and fit in with the fncychap
19
% ``Bjarne'' style a bit better.
22
\renewcommand{\maketitle}{
23
\rule{\textwidth}{1pt}
26
% This \def is required to deal with multi-line authors; it
27
% changes \\ to ', ' (comma-space), making it pass muster for
28
% generating document info in the PDF file.
38
{\rm\Huge\py@HeaderFamily \@title} \par
39
{\em\large\py@HeaderFamily \py@release\releaseinfo} \par
41
%{\Large\py@HeaderFamily \@author} \par
44
\py@authoraddress \par
47
\setcounter{footnote}{0}
48
\let\thanks\relax\let\maketitle\relax
49
%\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
52
\let\py@OldTableofcontents=\tableofcontents
53
\renewcommand{\tableofcontents}{
56
\py@OldTableofcontents
59
%% \rule{\textwidth}{1pt}
63
\@ifundefined{fancyhf}{
65
\pagestyle{normal}} % start this way; change for
66
\pagenumbering{arabic} % ToC & chapters