Debian Codegraph @

texmf-dist/doc/latex/listparskip/listparskip_heading.tex

raw
1 %%
2 %% This is file `listparskip_heading.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% listparskip_code.dtx (with options: `heading')
8 %%
9 %% This file is from version 1.0 of the free and open-source
10 %% LaTeX package "listparskip," released December 2024.
11 %%
12 %% Copyright 2024 Conrad Kosowsky
13 %%
14 %% This file may be used, distributed, and modified under the
15 %% terms of the LaTeX Public Project License, version 1.3c or
16 %% any later version. The most recent version of this license
17 %% is available online at
18 %%
19 %% https://www.latex-project.org/lppl/
20 %%
21 %% This work has the LPPL status "maintained," and the current
22 %% maintainer is the package author, Conrad Kosowsky. He can
23 %% be reached at [email protected].
24 %%
25 %% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
26 %% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
27 %% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
28 %%
29 %% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
30 %% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
31 %% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
32 %% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 %% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
34 %% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
35 %% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
36 %% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
37 %% CORRECTION.
38 %%
39 %% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
40 %% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
41 %% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
42 %% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
43 %% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
44 %% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
45 %% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
46 %% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
47 %% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
48 %% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
49 %% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
50 %% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
51 %% POSSIBILITY OF SUCH DAMAGES.
52 %%
53 %% For more information, see the LaTeX Project Public License.
54 %% Derivative works based on this software may come with their
55 %% own license or terms of use, and the package author is not
56 %% responsible for any third-party software.
57 %%
58 %% Happy TeXing!
59 %%
60 \csname count@\endcsname\catcode`\@
61 \makeatletter
62 \def\packageversion{1.0}
63 \def\packagedate{December 2024}
64 \MacroIndent=1.3em
65 \baselineskip=\the\baselineskip plus 0.3pt minus 0.3pt\relax
66 \let\@@section\section
67 \def\section{\@ifstar\star@sect\no@star@sect}
68 \def\star@sect#1{\sectionhook{#1}\@@section*{#1}}
69 \def\no@star@sect#1{\sectionhook{#1}\@@section{#1}}
70 \def\sectionhook#1{%
71 \ifdim\dimexpr\pagegoal-\pagetotal-3pt\relax<6\bigskipamount
72 \vfill\eject
73 \fi
74 \def\sectionname{#1}}
75 \let\sectionhook\@gobble
76 \def\@oddhead{%
77 \ifnum\count0>1\relax
78 \ifodd\c@page
79 \hfil
80 \llap{\the\count0}%
81 \else
82 \rlap{\the\count0}\hfil
83 \fi
84 \fi}
85 \def\@oddfoot{\hfil\ifnum\count0=1\relax1\fi\hfil}
86 \pretolerance=-1
87 \hyphenpenalty=20
88 \exhyphenpenalty=15
89 \brokenpenalty=0
90 \clubpenalty=0
91 \widowpenalty=0
92 \finalhyphendemerits=500
93 \doublehyphendemerits=2000
94 \c@topnumber\@ne
95 \def\topfraction{1}
96 \def\bottomfraction{0.5}
97 \def\textfraction{0}
98 \def\floatpagefraction{0}
99 \def\h{\textsc h }
100 \def\v{\textsc v }
101 \def\smallskip{\vskip\smallskipamount}
102 \def\medskip{\vskip\medskipamount}
103 \def\bigskip{\vskip\bigskipamount}
104 \let\code\@undefined
105 \let\endcode\@undefined
106 \newenvironment{code}
107 {\strut\vadjust\bgroup\medskip\parindent\z@\leftskip=4em\relax
108 \noindent\strut\ignorespaces}
109 {\strut\par\medskip\egroup\hfill\break\strut\ignorespacesafterend}
110 \def\argtext#1{\ensuremath{\langle$\textit{#1}$\rangle}}
111 \def\vrb#1{\expandafter\texttt\expandafter{\string#1}}
112 \def\clap@math#1{\hb@xt@\z@{\hss$\displaystyle#1$\hss}}
113 {\large
114 \parindent=0pt
115 \leftskip=0pt plus 1 fil
116 \rightskip=0pt plus 1fil
117 \parfillskip=0pt
118 {\strut\Large Package \textsf{listparskip} v.\ 1.0 \documentname}\par
119 \strut Conrad Kosowsky\par
120 \strut \packagedate\par
121 \strut\texttt{[email protected]}\par}
122 \bigskip
123 {\small
124 \leftskip=0.5in
125 \rightskip=0.5in
126 \centerline{\bfseries Overview\strut}
127 \noindent The \textsf{listparskip} package modifies list environments such that they add |\parskip| and |\partopsep| before or after a list if and only if the environment follows or precedes, respectively, a blank line (i.e.\ a |\par|).
128 \par}
129 \bigskip\bigskip\nointerlineskip
130 \centerline{\vrule height 0.5pt width 2.5in}\bigskip\bigskip
131 \nointerlineskip
132 \catcode`\@\count@
133 \endinput
134 %%
135 %% End of file `listparskip_heading.tex'.