From a93ee1456c70aac1fa5d0f2955af4c80a346c4a3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 10 Jan 2020 21:41:35 +0000 Subject: tocloft (10jan20) git-svn-id: svn://tug.org/texlive/trunk@53364 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/tocloft/tocloft.sty | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex/tocloft') 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 -- cgit v1.2.3