Debian Codegraph @

texmf-dist/tex/latex/parskip/parskip.sty

raw
1 %%
2 %% This is file `parskip.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% parskip.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright 2018-2021 Frank Mittelbach
12 %%
13 %% This file was generated from file(s) of the LaTeX `parskip Bundle'.
14 %% -------------------------------------------------------------------
15 %%
16 %% It may be distributed and/or modified under the
17 %% conditions of the LaTeX Project Public License, either version 1.3c
18 %% of this license or (at your option) any later version.
19 %% The latest version of this license is in
20 %% http://www.latex-project.org/lppl.txt
21 %% and version 1.3c or later is part of all distributions of LaTeX
22 %% version 2008 or later.
23 %%
24 %% This file may only be distributed together with a copy of the LaTeX
25 %% `parskip Bundle'. You may however distribute the `parskip Bundle'
26 %% without such generated files.
27 %%
28 %% The newest sources can be found below
29 %%
30 %% https://github.com/FrankMittelbach/fmitex/
31 %%
32 %% where one can also log issues in case there are any.
33 %%
34 %%
35 %% File: parskip.dtx
36 %% (C) Copyright 1989 H.Partl, TU Wien
37 %% (C) Copyright 2001 Robin Fairbairns
38 %% (C) Copyright 2018-2021 Frank Mittelbach
39 \NeedsTeXFormat{LaTeX2e}[2018-04-01]
40
41 \DeclareRelease {v1}{2001-04-09}{parskip-2001-04-09.sty}
42 \DeclareCurrentRelease{v2}{2018-08-24}
43 \ProvidesPackage{parskip}[2021-03-14 v2.0h non-zero parskip adjustments]
44 \RequirePackage{kvoptions}
45 \SetupKeyvalOptions{family=parskip,prefix=parskip@}
46 \DeclareStringOption[0pt]{indent}[\parindent]
47 \DeclareStringOption[0pt]{parfill}[30pt]
48 \DeclareStringOption{skip}[]
49 \DeclareStringOption[0pt]{tocskip}[\parskip]
50 \ProcessKeyvalOptions*
51 \ifx\parskip@skip\@empty
52 \parskip=.5\baselineskip plus 2pt\relax
53 \else
54 \setlength\parskip\parskip@skip
55 \fi
56 \setlength\parfillskip\parskip@parfill
57 \advance\parfillskip 0pt plus 1fil\relax
58 \setlength\parindent\parskip@indent
59 \RequirePackage{etoolbox}
60 \ifdim \parskip > 0pt
61 \def\@listI{\leftmargin\leftmargini
62 \topsep\z@ \parsep\parskip \itemsep\z@}
63 \let\@listi\@listI
64 \@listi
65 \def\@listii{\leftmargin\leftmarginii
66 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
67 \topsep\z@ \parsep\parskip \itemsep\z@}
68 \def\@listiii{\leftmargin\leftmarginiii
69 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
70 \topsep\z@ \parsep\parskip \itemsep\z@}
71 \partopsep=\z@
72 \fi
73 \patchcmd\@starttoc
74 {\begingroup \makeatletter}
75 {\begingroup \makeatletter
76 \skip@\lastskip
77 \advance\skip@\parskip
78 \vskip-\lastskip
79 \vskip\skip@
80 \parskip\parskip@tocskip}
81 {}{\typeout{Couldn't patch \string\@starttoc}}
82 \patchcmd\@startsection
83 {\addvspace\@tempskipa}
84 {\advance\@tempskipa-\parskip\addvspace\@tempskipa}
85 {}{\typeout{Couldn't patch \string\@startsection}}
86 \patchcmd\@xsect
87 {\vskip\@tempskipa}
88 {\advance\@tempskipa-\parskip\vskip\@tempskipa}
89 {}{\typeout{Couldn't patch \string\@xsect}}
90 \AtBeginDocument{%
91 \ifx\ttl@straight@ii\@undefined\else % titlesec got loaded
92 \patchcmd\ttl@straight@ii
93 {\addvspace{\@tempskipa}}%
94 {\advance\@tempskipa-\parskip \addvspace\@tempskipa}%
95 {}{\typeout{Couldn't patch \string\ttl@straight@ii}}%
96 \patchcmd\ttl@straight@ii
97 {\vspace{\@tempskipb}}%
98 {\advance\@tempskipb-\parskip \vspace\@tempskipb}%
99 {}{\typeout{Couldn't patch \string\ttl@straight@ii}}%
100 \patchcmd\ttl@part@ii
101 {\vspace*{\@tempskipa}}%
102 {\advance\@tempskipa-\parskip \vspace*\@tempskipa}%
103 {}{\typeout{Couldn't patch \string\ttl@part@ii}}%
104 \patchcmd\ttl@part@ii
105 {\vspace{\@tempskipb}}%
106 {\advance\@tempskipb-\parskip \vspace\@tempskipb}%
107 {}{\typeout{Couldn't patch \string\ttl@part@ii}}%
108 \patchcmd\ttl@page@ii
109 {\vspace*{\@tempskipa}}%
110 {\advance\@tempskipa-\parskip \vspace*\@tempskipa}%
111 {}{\typeout{Couldn't patch \string\ttl@page@ii}}%
112 \patchcmd\ttl@page@ii
113 {\vspace{\@tempskipb}}%
114 {\advance\@tempskipb-\parskip \vspace\@tempskipb}%
115 {}{\typeout{Couldn't patch \string\ttl@page@ii}}%
116 \fi}
117 \AtBeginDocument{%
118 \ifx\deferred@thm@head\@undefined\else % amsthm got loaded
119 \patchcmd\deferred@thm@head
120 {\addvspace{-\parskip}}{}%
121 {}{\typeout{Couldn't patch \string\deferred@thm@head!}}%
122 \fi}
123
124 \endinput
125 %%
126 %% End of file `parskip.sty'.