
ulalume3@11: %
ulalume3@11: % sphinxhowto.cls for Sphinx (http://sphinx.pocoo.org/)
ulalume3@11: %
ulalume3@11: 
ulalume3@11: \NeedsTeXFormat{LaTeX2e}[1995/12/01]
ulalume3@11: \ProvidesClass{sphinxhowto}[2009/06/02 Document class (Sphinx HOWTO)]
ulalume3@11: 
ulalume3@11: % 'oneside' option overriding the 'twoside' default
ulalume3@11: \newif\if@oneside
ulalume3@11: \DeclareOption{oneside}{\@onesidetrue}
ulalume3@11: % Pass remaining document options to the parent class.
ulalume3@11: \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\sphinxdocclass}}
ulalume3@11: \ProcessOptions\relax
ulalume3@11: 
ulalume3@11: % Default to two-side document
ulalume3@11: \if@oneside
ulalume3@11: % nothing to do (oneside is the default)
ulalume3@11: \else
ulalume3@11: \PassOptionsToClass{twoside}{\sphinxdocclass}
ulalume3@11: \fi
ulalume3@11: 
ulalume3@11: \LoadClass{\sphinxdocclass}
ulalume3@11: 
ulalume3@11: % Set some sane defaults for section numbering depth and TOC depth.  You can
ulalume3@11: % reset these counters in your preamble.
ulalume3@11: %
ulalume3@11: \setcounter{secnumdepth}{2}
ulalume3@11: 
ulalume3@11: % Change the title page to look a bit better, and fit in with the fncychap
ulalume3@11: % ``Bjarne'' style a bit better.
ulalume3@11: %
ulalume3@11: \renewcommand{\maketitle}{
ulalume3@11:   \rule{\textwidth}{1pt}
ulalume3@11:   \ifsphinxpdfoutput
ulalume3@11:     \begingroup
ulalume3@11:     % These \defs are required to deal with multi-line authors; it
ulalume3@11:     % changes \\ to ', ' (comma-space), making it pass muster for
ulalume3@11:     % generating document info in the PDF file.
ulalume3@11:     \def\\{, }
ulalume3@11:     \def\and{and }
ulalume3@11:     \pdfinfo{
ulalume3@11:       /Author (\@author)
ulalume3@11:       /Title (\@title)
ulalume3@11:     }
ulalume3@11:     \endgroup
ulalume3@11:   \fi
ulalume3@11:   \begin{flushright}
ulalume3@11:     \sphinxlogo%
ulalume3@11:     {\rm\Huge\py@HeaderFamily \@title} \par
ulalume3@11:     {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
ulalume3@11:     \vspace{25pt}
ulalume3@11:     {\Large\py@HeaderFamily
ulalume3@11:       \begin{tabular}[t]{c}
ulalume3@11:         \@author
ulalume3@11:       \end{tabular}} \par
ulalume3@11:     \vspace{25pt}
ulalume3@11:     \@date \par
ulalume3@11:     \py@authoraddress \par
ulalume3@11:   \end{flushright}
ulalume3@11:   \@thanks
ulalume3@11:   \setcounter{footnote}{0}
ulalume3@11:   \let\thanks\relax\let\maketitle\relax
ulalume3@11:   %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
ulalume3@11: }
ulalume3@11: 
ulalume3@11: \let\py@OldTableofcontents=\tableofcontents
ulalume3@11: \renewcommand{\tableofcontents}{
ulalume3@11:   \begingroup
ulalume3@11:     \parskip = 0mm
ulalume3@11:     \py@OldTableofcontents
ulalume3@11:   \endgroup
ulalume3@11:   \rule{\textwidth}{1pt}
ulalume3@11:   \vspace{12pt}
ulalume3@11: }  
ulalume3@11: 
ulalume3@11: \@ifundefined{fancyhf}{
ulalume3@11:   \pagestyle{plain}}{
ulalume3@11:   \pagestyle{normal}}		% start this way; change for
ulalume3@11: \pagenumbering{arabic}		% ToC & chapters
ulalume3@11: 
ulalume3@11: \thispagestyle{empty}




