From: Fred Drake Date: Tue, 29 Jun 1999 18:15:59 +0000 (+0000) Subject: Move the setting for secnumdepth to the document classes; make the numbering X-Git-Tag: v1.6a1~1124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d85b5a418acec1e9607d902cdb353f3d9bf12ee5;p=thirdparty%2FPython%2Fcpython.git Move the setting for secnumdepth to the document classes; make the numbering for the manual class go one deeper than it previously did (\subsection entries will now be numbered); no change for howto documents. This makes it easier to refer precisely to smaller sections using \ref. --- diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls index ad376c6a5bcf..127edc4a2d90 100644 --- a/Doc/texinputs/howto.cls +++ b/Doc/texinputs/howto.cls @@ -12,6 +12,7 @@ % \LoadClass[twoside]{article} +\setcounter{secnumdepth}{1} % Optional packages: % diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls index 21e74c9b1949..45939c9ca7fc 100644 --- a/Doc/texinputs/manual.cls +++ b/Doc/texinputs/manual.cls @@ -13,6 +13,7 @@ % \LoadClass[\py@paper,\py@ptsize,twoside,openright]{report} +\setcounter{secnumdepth}{2} % Optional packages: % diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 3c932cf74507..3c67818c3d57 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -118,7 +118,6 @@ \pagestyle{empty} % start this way; change for \pagenumbering{roman} % ToC & chapters -\setcounter{secnumdepth}{1} % Use this to set the font family for headers and other decor: \newcommand{\py@HeaderFamily}{\sffamily}