diff --git a/CHANGES b/CHANGES index c83eab8eb..95524e198 100644 --- a/CHANGES +++ b/CHANGES @@ -91,6 +91,8 @@ Bugs fixed * #1308: Strip HTML tags from the content of "raw" nodes before feeding it to the search indexer. +* #1249: Fix duplicate LaTeX page numbering for manual documents. + Documentation ------------- diff --git a/sphinx/texinputs/sphinxmanual.cls b/sphinx/texinputs/sphinxmanual.cls index 26df488ef..a6b9b3928 100644 --- a/sphinx/texinputs/sphinxmanual.cls +++ b/sphinx/texinputs/sphinxmanual.cls @@ -97,6 +97,7 @@ % \let\py@OldTableofcontents=\tableofcontents \renewcommand{\tableofcontents}{% + \pagenumbering{roman}% \setcounter{page}{1}% \pagebreak% \pagestyle{plain}% @@ -114,7 +115,7 @@ \pagenumbering{arabic}% \@ifundefined{fancyhf}{}{\pagestyle{normal}}% } -\pagenumbering{roman} +\pagenumbering{alph} % This is needed to get the width of the section # area wide enough in the % library reference. Doing it here keeps it the same for all the manuals.