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[twoside]{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.
21 \renewcommand{\maketitle}{
22 \rule{\textwidth}{1pt}
25 % This \def is required to deal with multi-line authors; it
26 % changes \\ to ', ' (comma-space), making it pass muster for
27 % generating document info in the PDF file.
37 {\rm\Huge\py@HeaderFamily \@title} \par
38 {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
40 {\Large\py@HeaderFamily \@author} \par
43 \py@authoraddress \par
46 \setcounter{footnote}{0}
47 \let\thanks\relax\let\maketitle\relax
48 %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
51 \let\py@OldTableofcontents=\tableofcontents
52 \renewcommand{\tableofcontents}{
55 \py@OldTableofcontents
57 \rule{\textwidth}{1pt}
61 \@ifundefined{fancyhf}{
63 \pagestyle{normal}} % start this way; change for
64 \pagenumbering{arabic} % ToC & chapters