summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nih/denselists.sty
blob: d8188083d4878058da22e6f663e70abd22be2ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}