summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nih/denselists.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/nih/denselists.sty')
-rw-r--r--macros/latex/contrib/nih/denselists.sty18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/latex/contrib/nih/denselists.sty b/macros/latex/contrib/nih/denselists.sty
new file mode 100644
index 0000000000..d8188083d4
--- /dev/null
+++ b/macros/latex/contrib/nih/denselists.sty
@@ -0,0 +1,18 @@
+% These definitions for minimizing list spacing come from Michel Goossens,
+% as put together by Bruce Donald (http://www.cs.duke.edu/brd/).
+%
+% You may freely use, modify and/or distribute this file.
+%
+% Prevent infinite loops
+\typeout{Style New lists - dense lists}
+
+\let\Otemize =\itemize
+\let\Onumerate =\enumerate
+\let\Oescription =\description
+% Zero the vertical spacing parameters
+\def\Nospacing{\itemsep=0pt\topsep=0pt\partopsep=0pt\parskip=0pt\parsep=0pt}
+% Redefine the environments in terms of the original values
+\newenvironment{Itemize}{\Otemize\Nospacing}{\endlist}
+\newenvironment{Enumerate}{\Onumerate\Nospacing}{\endlist}
+\newenvironment{Description}{\Oescription\Nospacing}{\endlist}
+