Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d85b5a4

Browse files
committed
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.
1 parent 6bf37de commit d85b5a4

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/texinputs/howto.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
%
1313
\LoadClass[twoside]{article}
1414

15+
\setcounter{secnumdepth}{1}
1516

1617
% Optional packages:
1718
%

Doc/texinputs/manual.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
%
1414
\LoadClass[\py@paper,\py@ptsize,twoside,openright]{report}
1515

16+
\setcounter{secnumdepth}{2}
1617

1718
% Optional packages:
1819
%

Doc/texinputs/python.sty

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118

119119
\pagestyle{empty} % start this way; change for
120120
\pagenumbering{roman} % ToC & chapters
121-
\setcounter{secnumdepth}{1}
122121

123122
% Use this to set the font family for headers and other decor:
124123
\newcommand{\py@HeaderFamily}{\sffamily}

0 commit comments

Comments
 (0)