sphinx / sphinx / texinputs / sphinxhowto.cls

% sphinxhowto.cls for Sphinx (

\ProvidesClass{sphinxhowto}[2009/06/02 Document class (Sphinx HOWTO)]

% 'oneside' option overriding the 'twoside' default
% Pass remaining document options to the parent class.

% Default to two-side document
% nothing to do (oneside is the default)


% Set some sane defaults for section numbering depth and TOC depth.  You can
% reset these counters in your preamble.

% Change the title page to look a bit better, and fit in with the fncychap
% ``Bjarne'' style a bit better.
    % These \defs are required to deal with multi-line authors; it
    % changes \\ to ', ' (comma-space), making it pass muster for
    % generating document info in the PDF file.
    \def\\{, }
    \def\and{and }
      /Author (\@author)
      /Title (\@title)
    {\rm\Huge\py@HeaderFamily \@title} \par
    {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
      \end{tabular}} \par
    \@date \par
    \py@authoraddress \par

    \parskip = 0mm

  \pagestyle{normal}}		% start this way; change for
\pagenumbering{arabic}		% ToC & chapters


% Fix the bibliography environment to add an entry to the Table of
% Contents.
% For an article document class this environment is a section,
% so no page break before it.