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

Skip to content

Commit 255284b

Browse files
committed
Fix problem for the Library Reference where high-numbered sections of
high-numbered chapters took too much space for the section number in the table of contents. This makes the section number and title not overlap.
1 parent 42de185 commit 255284b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/texinputs/manual.cls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@
122122
\@ifundefined{fancyhf}{}{\pagestyle{normal}}%
123123
\@doing@page@targetstrue%
124124
}
125+
% This is needed to get the width of the section # area wide enough in the
126+
% library reference. Doing it here keeps it the same for all the manuals.
127+
%
128+
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.6em}}
129+
\renewcommand*\l@subsection{\@dottedtocline{2}{4.1em}{3.5em}}
125130

126131

127132
% Fix the theindex environment to add an entry to the Table of

0 commit comments

Comments
 (0)