%% %% This is file `listparskip_example.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% listparskip_code.dtx (with options: `example') %% %% This file is from version 1.0 of the free and open-source %% LaTeX package "listparskip," released December 2024. %% %% Copyright 2024 Conrad Kosowsky %% %% This file may be used, distributed, and modified under the %% terms of the LaTeX Public Project License, version 1.3c or %% any later version. The most recent version of this license %% is available online at %% %% https://www.latex-project.org/lppl/ %% %% This work has the LPPL status "maintained," and the current %% maintainer is the package author, Conrad Kosowsky. He can %% be reached at kosowsky.latex@gmail.com. %% %% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT %% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF %% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING: %% %% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE %% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK %% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED %% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED %% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR %% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE %% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE, %% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR %% CORRECTION. %% %% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED %% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR %% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY %% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED %% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, %% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT %% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK %% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING %% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A %% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY %% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID %% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE %% POSSIBILITY OF SUCH DAMAGES. %% %% For more information, see the LaTeX Project Public License. %% Derivative works based on this software may come with their %% own license or terms of use, and the package author is not %% responsible for any third-party software. %% %% Happy TeXing! %% \documentclass[12pt]{article} \usepackage[margin=72.27pt]{geometry} \usepackage[factor=700,stretch=14,shrink=14,step=1]{microtype} \usepackage{lipsum} \usepackage{multicol} \usepackage{enumitem} \setlist{parsep=0pt,partopsep=\medskipamount, topsep=\smallskipamount,itemsep=\smallskipamount} \usepackage{shortvrb} \MakeShortVerb{|} \parindent=0pt \makeatletter \begin{document} \def\documentname{Example} \newdimen\MacroIndent \input listparskip_heading.tex \baselineskip=14pt This document shows an example of \textsf{listparskip}. The left column uses standard \LaTeX\ spacing before and after the itemize and enumerate lists, and the right column shows the same text with \textsf{listparskip} spacing rules. Notice \textsf{listparskip} corrects the issues from the left column. \begin{multicols*}{2} \parskip\bigskipamount \lipsum[1][1] This paragraph has some bullet points in the middle of the paragraph. In this portion of the document, |\parskip| is set to |\bigskipamount|, and we see that \begin{itemize} \item \LaTeX\ inserts |\parskip| above the list \item Even though there is no |\par| between the paragraph and the itemize environment in the source code \item The same thing is true after the itemize \item It's especially salient when |\topsep| and |\itemsep| are |\smallskipamount| \end{itemize} Currently |\partopsep| is |\medskipamount|, but when there is no |\par| immediately before a list, \LaTeX\ does not insert |\partopsep| before or after the list environment. \hbox{This is true} \begin{enumerate} \item Despite the use of |\parskip|; and \item For the end of the list environment regardless of whether a |\par| follows the list, as is the case with this enumerate. \end{enumerate} \lipsum[1][2] \vfill\nointerlineskip\null \columnbreak \lipsum[1][1] This paragraph has some bullet points in the middle of the paragraph. In this portion of the document, |\parskip| is set to |\bigskipamount|, and we see that \begin{itemize} \vskip-\@outerparskip \vskip\z@ \item \LaTeX\ inserts |\parskip| above the list \item Even though there is no |\par| between the paragraph and the itemize environment in the source code \item The same thing is true after the itemize \item It's especially salient when |\topsep| and |\itemsep| are |\smallskipamount| \end{itemize} \vskip-\parskip Currently |\partopsep| is |\medskipamount|, but when there is no |\par| immediately before a list, \LaTeX\ does not insert |\partopsep| before or after the list environment. \hbox{This is true} \begin{enumerate} \vskip-\@outerparskip \vskip\z@ \item Despite the use of |\parskip|; and \item For the end of the list environment regardless of whether a |\par| follows the list, as is the case with this enumerate. \end{enumerate} \vskip\partopsep \lipsum[1][2] \end{multicols*} \end{document} \endinput %% %% End of file `listparskip_example.tex'.