summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-16 22:27:54 +0000
committerKarl Berry <karl@freefriends.org>2019-01-16 22:27:54 +0000
commit46922e9155dc9c6d226041dacd922802da32fa95 (patch)
tree19796ee26bc3845172b9ac46e7e7fd88d4ad2831 /Master/texmf-dist/source
parentc9a9749afe93ec038e88e295e3190c13d4ff2d07 (diff)
parskip (16jan19)
git-svn-id: svn://tug.org/texlive/trunk@49730 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/parskip/parskip.dtx35
1 files changed, 27 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/parskip/parskip.dtx b/Master/texmf-dist/source/latex/parskip/parskip.dtx
index be894e39a8a..731cb2a9f44 100644
--- a/Master/texmf-dist/source/latex/parskip/parskip.dtx
+++ b/Master/texmf-dist/source/latex/parskip/parskip.dtx
@@ -3,7 +3,7 @@
%% 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
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -76,7 +76,7 @@
%
% This file was originally developed by Hubert Partl in 1989 (i.e.,
% for \LaTeX\,2.09) to provide a somewhat crude solution to an
-% existing problem (in case no proper document class (back then called
+% existing problem in case no proper document class (back then called
% document style) support was available.
%
% About ten years later Robin Fairbairns picked up the orphaned
@@ -119,13 +119,13 @@
% With package option \texttt{parfill}, the package also adjusts
% \cs{parfillskip} to impose a minimum space at the end of
% the last line of a paragraph. If specified without a value then
-% \texttt{30pt} are assumed, if a value is given that that forms the minimum.
+% \texttt{30pt} are assumed, if a value is given that forms the minimum.
% \end{description}
%
%
% \section{Differences to the original package}
%
-% If the package us used without any options or just with the option
+% If the package is used without any options or just with the option
% \option{parfill} it behaves like the earlier version, except that now
% the spacing around headings is also adjusted (not adding extra
% \cs{parskip}). If this is not desirable when processing an old
@@ -177,7 +177,7 @@
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesPackage{parskip}[2018-08-24 v2.0a non-zero parskip adjustments]
+\ProvidesPackage{parskip}[2019-01-16 v2.0c non-zero parskip adjustments]
% \end{macrocode}
%
%
@@ -238,20 +238,22 @@
\else
% \end{macrocode}
% Otherwise set it to the specified value:
+% \changes{v2.0c}{2019/02/16}{Support calc by using \cs{setlength}
+% for assignments}
% \begin{macrocode}
- \parskip\parskip@skip\relax
+ \setlength\parskip\parskip@skip
\fi
% \end{macrocode}
% Setting \cs{parfillskip} was suggested by Donald Arseneau at some
% point on comp.text.tex:
% \begin{macrocode}
-\parfillskip \parskip@parfill\relax
+\setlength\parfillskip\parskip@parfill
\advance\parfillskip 0pt plus 1fil\relax
% \end{macrocode}
% \cs{parindent} gets whatever was specified. If the key was given
% without an option this will essentially reassign the now ``current'' value.
% \begin{macrocode}
-\parindent\parskip@indent\relax
+\setlength\parindent\parskip@indent
% \end{macrocode}
%
%
@@ -390,6 +392,23 @@
%
%
%
+% \subsubsection{\pkg{amsthm} theorems}
+%
+% The \pkg{amsthm} package is one of the few packages that make an
+% explicit correction for \cs{parskip} which isn't any longer adequate
+% if this \pkg{parskip} package is loaded. We therefore remove that
+% setting from the package if it was loaded.
+% \changes{v2.0b}{2018/09/17}{Support \cs{amsthm} (sx/450551)}
+% \begin{macrocode}
+\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}
+% \end{macrocode}
+%
+%
% \subsection{Closing shop}
%