summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tocloft/tocloft.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tocloft/tocloft.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tocloft/tocloft.sty11
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/tocloft/tocloft.sty b/Master/texmf-dist/tex/latex/tocloft/tocloft.sty
index fb4d8cd709a..5fb069fa1f0 100644
--- a/Master/texmf-dist/tex/latex/tocloft/tocloft.sty
+++ b/Master/texmf-dist/tex/latex/tocloft/tocloft.sty
@@ -117,7 +117,16 @@ Consider installing the current version of tocbibind.}}
\setlength{\cftparskip}{0pt}
\AtBeginDocument{%
-\if@cftnctoc\else
+\if@cftnctoc
+ % ensure \cftparskip is still set properly
+ \let\OLD@starttoc\@starttoc
+ \renewcommand{\@starttoc}[1]{%
+ \begingroup
+ \parskip=\cftparskip
+ \OLD@starttoc{#1}%
+ \endgroup
+ }
+\else
\renewcommand{\tableofcontents}{%
\@cfttocstart
\par