blob: 328079d815e06e1601b2c543855d875c5039efb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
\ProvidesPackage{gost-7-32-toc}[2022/01/28 GOST 7.32-2017]
\RequirePackage{tocloft}
\RequirePackage[
bookmarks=true,
colorlinks=true,
unicode=true,
urlcolor=black,
linkcolor=black,
anchorcolor=black,
citecolor=black,
menucolor=black,
filecolor=black,
hidelinks
]{hyperref}
%
% Set custom font styles
%
\renewcommand{\cftsecfont}{\normalfont}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsecpagefont}{\normalsize}
\renewcommand{\cftaftertoctitle}{\hfill\hfill}
\renewcommand{\cfttoctitlefont}{\hfill\normalfont\large\bfseries}
\titleformat{\tableofcontents}[block]{\centering\large\bfseries}{\thesection}{0.5em}{}
\titlespacing{\tableofcontents}{0cm}{0cm}{1cm}
%
% Set indents and line spacing
%
\setlength{\cftbeforesecskip}{0cm}
\setlength{\cftbeforesubsecskip}{0cm}
\setlength{\cftbeforesubsubsecskip}{0cm}
\setlength{\cftbeforeparaskip}{0cm}
|