summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/parskip
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/parskip')
-rw-r--r--Master/texmf-dist/tex/latex/parskip/parskip.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/parskip/parskip.sty b/Master/texmf-dist/tex/latex/parskip/parskip.sty
index 0b5943d0747..5e3b3dbc4b6 100644
--- a/Master/texmf-dist/tex/latex/parskip/parskip.sty
+++ b/Master/texmf-dist/tex/latex/parskip/parskip.sty
@@ -35,12 +35,12 @@
%% File: parskip.dtx
%% (C) Copyright 1989 H.Partl, TU Wien
%% (C) Copyright 2001 Robin Fairbairns
-%% (C) Copyright 2018 Frank Mittelbach
+%% (C) Copyright 2018-2019 Frank Mittelbach
\NeedsTeXFormat{LaTeX2e}[2018-04-01]
\DeclareRelease {v1}{2001-04-09}{parskip-2001-04-09.sty}
\DeclareCurrentRelease{v2}{2018-08-24}
-\ProvidesPackage{parskip}[2018-08-24 v2.0a non-zero parskip adjustments]
+\ProvidesPackage{parskip}[2019-01-16 v2.0c non-zero parskip adjustments]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{family=parskip,prefix=parskip@}
\DeclareStringOption[0pt]{indent}[\parindent]
@@ -51,11 +51,11 @@
\parskip.5\baselineskip
\advance\parskip 0pt plus 2pt\relax
\else
- \parskip\parskip@skip\relax
+ \setlength\parskip\parskip@skip
\fi
-\parfillskip \parskip@parfill\relax
+\setlength\parfillskip\parskip@parfill
\advance\parfillskip 0pt plus 1fil\relax
-\parindent\parskip@indent\relax
+\setlength\parindent\parskip@indent
\RequirePackage{etoolbox}
\ifdim \parskip > 0pt
\def\@listI{\leftmargin\leftmargini
@@ -109,6 +109,12 @@
{\advance\@tempskipb-\parskip \vspace\@tempskipb}%
{}{\typeout{Couldn't patch \string\ttl@page@ii}}%
\fi}
+\AtBeginDocument{%
+\ifx\deferred@thm@head\@undefined\else % amsthm got loaded
+\patchcmd\deferred@thm@head
+ {\addvspace{-\parskip}}{}%
+ {}{\typeout{Couldn't patch \string\deferred@thm@head!}}%
+\fi}
\endinput
%%