texlive[49730] Master/texmf-dist: parskip (16jan19)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 16 23:27:55 CET 2019


Revision: 49730
          http://tug.org/svn/texlive?view=revision&revision=49730
Author:   karl
Date:     2019-01-16 23:27:54 +0100 (Wed, 16 Jan 2019)
Log Message:
-----------
parskip (16jan19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/parskip/changes.txt
    trunk/Master/texmf-dist/doc/latex/parskip/parskip-code.pdf
    trunk/Master/texmf-dist/doc/latex/parskip/parskip.pdf
    trunk/Master/texmf-dist/source/latex/parskip/parskip.dtx
    trunk/Master/texmf-dist/tex/latex/parskip/parskip.sty

Modified: trunk/Master/texmf-dist/doc/latex/parskip/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/parskip/changes.txt	2019-01-16 22:27:39 UTC (rev 49729)
+++ trunk/Master/texmf-dist/doc/latex/parskip/changes.txt	2019-01-16 22:27:54 UTC (rev 49730)
@@ -1,3 +1,15 @@
+2019-01-16  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* parskip.dtx (subsubsection{Option handling}):
+	Support calc package by using \setlength for assignments
+
+2018-09-17  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* parskip.dtx (subsubsection{\pkg{amsthm} theorems}):
+	Support amsthm (sx/450551)
+
+#### placed on CTAN as 2.0a ####
+
 2018-08-24  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* parskip.dtx version 2.0 with options indent + skip and

Modified: trunk/Master/texmf-dist/doc/latex/parskip/parskip-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/parskip/parskip.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/parskip/parskip.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/parskip/parskip.dtx	2019-01-16 22:27:39 UTC (rev 49729)
+++ trunk/Master/texmf-dist/source/latex/parskip/parskip.dtx	2019-01-16 22:27:54 UTC (rev 49730)
@@ -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 at skip\relax
+  \setlength\parskip\parskip at skip
 \fi
 %    \end{macrocode}
 %    Setting \cs{parfillskip} was suggested by Donald Arseneau at some
 %    point on comp.text.tex:
 %    \begin{macrocode}
-\parfillskip \parskip at parfill\relax
+\setlength\parfillskip\parskip at 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 at indent\relax
+\setlength\parindent\parskip at 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 at thm@head\@undefined\else  % amsthm got loaded
+\patchcmd\deferred at thm@head
+  {\addvspace{-\parskip}}{}%
+  {}{\typeout{Couldn't patch \string\deferred at thm@head!}}%
+\fi} 
+%    \end{macrocode}
+%
+%
 % \subsection{Closing shop}
 %
 

Modified: trunk/Master/texmf-dist/tex/latex/parskip/parskip.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/parskip/parskip.sty	2019-01-16 22:27:39 UTC (rev 49729)
+++ trunk/Master/texmf-dist/tex/latex/parskip/parskip.sty	2019-01-16 22:27:54 UTC (rev 49730)
@@ -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 at skip\relax
+  \setlength\parskip\parskip at skip
 \fi
-\parfillskip \parskip at parfill\relax
+\setlength\parfillskip\parskip at parfill
 \advance\parfillskip 0pt plus 1fil\relax
-\parindent\parskip at indent\relax
+\setlength\parindent\parskip at 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 at page@ii}}%
 \fi}
+\AtBeginDocument{%
+\ifx\deferred at thm@head\@undefined\else  % amsthm got loaded
+\patchcmd\deferred at thm@head
+  {\addvspace{-\parskip}}{}%
+  {}{\typeout{Couldn't patch \string\deferred at thm@head!}}%
+\fi}
 
 \endinput
 %%



More information about the tex-live-commits mailing list