summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-06-29 18:15:59 (GMT)
committerFred Drake <fdrake@acm.org>1999-06-29 18:15:59 (GMT)
commitd85b5a418acec1e9607d902cdb353f3d9bf12ee5 (patch)
tree5331ee555511bf598c3e1eea9958cfbcb91ed186
parent6bf37debb93391db411387e03468a65bc7a42748 (diff)
downloadcpython-d85b5a418acec1e9607d902cdb353f3d9bf12ee5.zip
cpython-d85b5a418acec1e9607d902cdb353f3d9bf12ee5.tar.gz
cpython-d85b5a418acec1e9607d902cdb353f3d9bf12ee5.tar.bz2
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.
-rw-r--r--Doc/texinputs/howto.cls1
-rw-r--r--Doc/texinputs/manual.cls1
-rw-r--r--Doc/texinputs/python.sty1
3 files changed, 2 insertions, 1 deletions
diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls
index ad376c6..127edc4 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 21e74c9..45939c9 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 3c932cf..3c67818 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}