Latex VERY compact element

I am trying to create a very compact element with latex because I want to put it in a table without spaces.

What I need:

  • No spaces before the list
  • No spaces after the list
  • No spaces between lines
  • Less indent to labels

I tried a lot of packages (paralist, mdwlist, enumitem), but cannot fully accomplish this.

I tried this myself (with the help of a paralist) and could get rid of everything except the spaces after the list. This is my current solution:

\makeatletter \newcommand*{\compress}{\@minipagetrue} \makeatother \newenvironment{ilist}% { %from parlist package, reduces indent before bulletpoints \setdefaultleftmargin{1em}{1em}{}{}{}{} \compress %places itemize into minipage, removing whitespace before \begin{itemize}% \setlength{\itemsep}{0pt}% \setlength{\topsep}{0pt} \setlength{\partopsep}{0pt} \setlength{\parsep}{0pt} \setlength{\parskip}{0pt}}% {\end{itemize}} 

However, I cannot get rid of the space after the list. I can do it with negative vspace, but this:

  • Nasty
  • Does not work for tables: the rule after the line in which the list is located will still contain one line below.

Can someone tell me how to do this? I searched so much, but it seems to me that I'm the first person who ever tried to insert an element into a table: D

early

+43
latex
Feb 11 '11 at 11:39
source share
3 answers

To change these settings worldwide

 \usepackage{enumitem} \setitemize{noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt} 

(And you can use the \setenumerate , \setdescription or \setlist for other types of lists)

Or just for one list

 \usepackage{enumitem} ... \begin{itemize}[noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt] \item item 1 \item item 2 \item item 3 \end{itemize} 
+80
Feb 11 '11 at
source share
— -

Try enumitem and shortlst packages.

+2
Feb 11 '11 at 2:09 p.m.
source share

In the preamble:

 \newcommand{\bbb}[1]{\indent$\bullet$ #1\\} 

In the document:

 \bbb{hello world} 
+1
Jan 27 '13 at 11:20
source share



All Articles