| 1 |
% parskip.sty; last edited by Robin Fairbairns ([email protected]), |
| 2 |
% derived from: |
| 3 |
% |
| 4 |
% This is PARSKIP.STY by H.Partl, TU Wien, as of 19 Jan 1989. |
| 5 |
% |
| 6 |
% Package to be used with any document class at any size. |
| 7 |
% It produces the following Paragraph Layout: |
| 8 |
% Zero Parindent and non-zero Parskip. The stretchable glue in \parskip |
| 9 |
% helps LaTeX in finding the best place for page breaks. |
| 10 |
% |
| 11 |
% This package is no more than quick fix; the `proper' way to achieve |
| 12 |
% effects as far-reaching as this is to create a new class. An |
| 13 |
% example class is to be found in the ntgclass set: artikel3.cls |
| 14 |
|
| 15 |
\NeedsTeXFormat{LaTeX2e} |
| 16 |
\ProvidesPackage{parskip}[2001/04/09 non-zero parskip adjustments] |
| 17 |
|
| 18 |
\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt |
| 19 |
\parindent=\z@ |
| 20 |
|
| 21 |
% |
| 22 |
% from a suggestion by Donald Arseneau on comp.text.tex: |
| 23 |
|
| 24 |
\DeclareOption{parfill}{\setlength{\parfillskip}{30\p@ \@plus 1fil}} |
| 25 |
\ProcessOptions |
| 26 |
|
| 27 |
% To accompany this, the vertical spacing in the list environments is changed |
| 28 |
% to use the same as \parskip in all relevant places (for normalsize only): |
| 29 |
% \parsep = \parskip |
| 30 |
% \itemsep = \z@ % add nothing to \parskip between items |
| 31 |
% \topsep = \z@ % add nothing to \parskip before first item |
| 32 |
|
| 33 |
\def\@listI{\leftmargin\leftmargini |
| 34 |
\topsep\z@ \parsep\parskip \itemsep\z@} |
| 35 |
\let\@listi\@listI |
| 36 |
\@listi |
| 37 |
|
| 38 |
\def\@listii{\leftmargin\leftmarginii |
| 39 |
\labelwidth\leftmarginii\advance\labelwidth-\labelsep |
| 40 |
\topsep\z@ \parsep\parskip \itemsep\z@} |
| 41 |
|
| 42 |
\def\@listiii{\leftmargin\leftmarginiii |
| 43 |
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep |
| 44 |
\topsep\z@ \parsep\parskip \itemsep\z@} |
| 45 |
|
| 46 |
% and, now... |
| 47 |
% \partopsep = \z@ % don't even add anything before first item (beyond |
| 48 |
% % \parskip) even if the list is preceded by a blank line |
| 49 |
\partopsep=\z@ |
| 50 |
|
| 51 |
% Note that listiv, listv and listvi don't change vertical parameters. |
| 52 |
|
| 53 |
% deal with a problem raised on comp.text.tex in april 2001 |
| 54 |
% |
| 55 |
% don't expand the table of contents any further |
| 56 |
% |
| 57 |
% first: check that the definition of \@starttoc is unchanged from |
| 58 |
% that in latex.ltx |
| 59 |
\@ifundefined{CheckCommand}{}{% |
| 60 |
\CheckCommand*{\@starttoc}[1]{% |
| 61 |
\begingroup |
| 62 |
\makeatletter |
| 63 |
\@input{\jobname.#1}% |
| 64 |
\if@filesw |
| 65 |
\expandafter\newwrite\csname tf@#1\endcsname |
| 66 |
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax |
| 67 |
\fi |
| 68 |
\@nobreakfalse |
| 69 |
\endgroup}} |
| 70 |
% |
| 71 |
% now having generated any warning that might help, redefine |
| 72 |
\renewcommand*{\@starttoc}[1]{% |
| 73 |
\begingroup |
| 74 |
\makeatletter |
| 75 |
\parskip\z@ |
| 76 |
\@input{\jobname.#1}% |
| 77 |
\if@filesw |
| 78 |
\expandafter\newwrite\csname tf@#1\endcsname |
| 79 |
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax |
| 80 |
\fi |
| 81 |
\@nobreakfalse |
| 82 |
\endgroup |
| 83 |
} |
| 84 |
|
| 85 |
\endinput |
| 86 |
|