Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit cf5cca3

Browse files
committed
fix TOC
1 parent 3c230f0 commit cf5cca3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

postgresql.sty

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
}
9999

100100
\makeatletter
101+
101102
\gdef\lst@SkipOrPrintLabel{%
102103
\ifnum\lst@skipnumbers=\z@
103104
\global\advance\lst@skipnumbers-\lst@stepnumber\relax
@@ -112,6 +113,7 @@
112113
\fi
113114
\fi
114115
\global\advance\lst@skipnumbers\@ne}%
116+
115117
\def\lst@maketitle#1{
116118
\vskip\abovecaptionskip
117119
\colorbox{titlebox}{
@@ -120,6 +122,7 @@
120122
\color{download}\ttfamily\href{http://postgresql.leopard.in.ua/example_code/#1}{Скачать}
121123
\color{title}\sffamily\bfseries#1}
122124
\vskip\belowcaptionskip}
125+
123126
\def\lst@makecaption#1#2{
124127
\vskip\abovecaptionskip
125128
\colorbox{titlebox}{
@@ -128,6 +131,7 @@
128131
\color{code_title}\ttfamily#1
129132
\color{title}\sffamily\bfseries#2}
130133
\vskip\belowcaptionskip}
134+
131135
\makeatother
132136

133137
\let\olditemize=\itemize
@@ -142,4 +146,4 @@
142146
\setlength{\itemsep}{-1ex}
143147
}
144148

145-
\MakePerPage{footnote} %the perpage package command
149+
\MakePerPage{footnote} %the perpage package command

postgresql.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
\setcounter{page}{1}
1212
\pagestyle{myindex}
1313
\chapterstyle{ell}
14-
\setcounter{tocdepth}{2} % subsections and above
14+
15+
\setcounter{tocdepth}{1} % sections and above
16+
\setlength\cftsectionnumwidth{3em}
1517
\tableofcontents
1618

1719
\input{postgresql_introduction}

0 commit comments

Comments
 (0)