summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/parskip
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-19 21:06:04 +0000
committerKarl Berry <karl@freefriends.org>2020-05-19 21:06:04 +0000
commit98d69e0965a2ddde92ebcccacddbd6de68e7d2f4 (patch)
tree17cf01da6f6cbaaf23380d7751f29145a10bfb32 /Master/texmf-dist/tex/latex/parskip
parent2683b9f6b43fe0c9b72c32568ccb0ecffd9e6814 (diff)
parskip (19may20)
git-svn-id: svn://tug.org/texlive/trunk@55212 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/parskip')
-rw-r--r--Master/texmf-dist/tex/latex/parskip/parskip.sty10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/parskip/parskip.sty b/Master/texmf-dist/tex/latex/parskip/parskip.sty
index a575adbd79e..5680a59c78c 100644
--- a/Master/texmf-dist/tex/latex/parskip/parskip.sty
+++ b/Master/texmf-dist/tex/latex/parskip/parskip.sty
@@ -40,12 +40,13 @@
\DeclareRelease {v1}{2001-04-09}{parskip-2001-04-09.sty}
\DeclareCurrentRelease{v2}{2018-08-24}
-\ProvidesPackage{parskip}[2020-01-22 v2.0d non-zero parskip adjustments]
+\ProvidesPackage{parskip}[2020-05-19 v2.0e non-zero parskip adjustments]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{family=parskip,prefix=parskip@}
\DeclareStringOption[0pt]{indent}[\parindent]
\DeclareStringOption[0pt]{parfill}[30pt]
\DeclareStringOption{skip}
+\DeclareStringOption[0pt]{tocskip}[\parskip]
\ProcessKeyvalOptions*
\ifx\parskip@skip\@empty
\parskip.5\baselineskip
@@ -72,7 +73,12 @@
\fi
\patchcmd\@starttoc
{\begingroup \makeatletter}
- {\begingroup \makeatletter \parskip\z@}
+ {\begingroup \makeatletter
+ \skip@\lastskip
+ \advance\skip@\parskip
+ \vskip-\lastskip
+ \vskip\skip@
+ \parskip\parskip@tocskip}
{}{\typeout{Couldn't patch \string\@starttoc}}
\patchcmd\@startsection
{\addvspace\@tempskipa}