[Tex/LaTex] paralist package: \setdefaultleftmargin{0em}… doesn’t properly align wrapped lines

indentationline-breakinglistsparalistspacing

I am using the paralist package to create very compact lists (for a poster). I'd like to use

\setdefaultleftmargin{0em}{2em}{}{}{}{}

to set the indentation of itemized lists to zero. This works fine unless I have long lines that are wrapped: then the indentation of the wrapped text is too small.

Example code (live example):

\documentclass[a4paper]{article}

\usepackage{paralist}

\begin{document}

\setlength{\parindent}{0em}
\setdefaultleftmargin{0em}{2em}{}{}{}{}

(I have also set the indentation of paragraphs to 0.)
\begin{compactitem}
    \item I want the bullet to be right at the left border.
    \item foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar \textbf{This second line is not properly aligned :(}
    \begin{compactitem}
        \item foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar \textbf{Here it's correct.}
    \end{compactitem}
\end{compactitem}



With non-zero indentation it works as it should:
\setdefaultleftmargin{2em}{2em}{}{}{}{}
\begin{compactitem}
    \item foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar \textbf{correct}
    \begin{compactitem}
        \item foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar \textbf{correct}
    \end{compactitem}
\end{compactitem}


\end{document}

How do I fix this?

Best Answer

You probably want to use enumitem, which is more powerful than paralist.

\documentclass[a4paper]{article}

\usepackage{enumitem}

\begin{document}

\setlength{\parindent}{0em}

(I have also set the indentation of paragraphs to 0.)
\begin{itemize}[nosep,leftmargin=1em,labelwidth=*,align=left]

\item I want the bullet to be right at the left border.

\item foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar
foobar foobar \textbf{This second line is properly aligned}

\end{itemize}
Some text follows.

\end{document}

enter image description here