19 July 2010

Long lists in LaTeX

The ACM transactions style file contains a great environment called "longitem" that can turn your too-long bulleted list into something just right. Here's what you can put into your LaTeX file to get it:
\newenvironment{longlist}
 {\begin{list}{---}{
  \setlength{\rightmargin}{0in}
  \setlength{\leftmargin}{0in}
  \settowidth{\labelwidth}{---}
  \setlength{\itemindent}{\parindent}
  \addtolength{\itemindent}{\labelwidth}
  \addtolength{\itemindent}{\labelsep}
 }}
 {\end{list}}
Then, just use "longlist" where you would otherwise use an "itemize."