Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want my list to begin straight at the left side of my page, without the usual space to the left (which is about the length of a paragraph tabulation). I tried setting parameters from inside the list to zero, but it doesn't seem to come from there.

Did I miss something? How can I achieve this?

I used the following test code, to no avail :

\documentclass{article}

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\begin{itemize}
\item One.
\item Two.
\item Three.
\end{itemize}

\begin{itemize}
    \setlength{\itemsep}{0in}
    \setlength{\topsep}{0pt}
    \setlength{\leftmargin}{0in}
    \setlength{\parskip}{0pt}
    \setlength{\parsep}{0pt}
    \setlength{\listparindent}{0in}
    \setlength{\labelsep}{0.pt}
    \setlength{\labelwidth}{0in}
    \setlength{\parsep}{0pt}
    \setlength{\headsep}{0pt}
    \setlength{\topskip}{0pt}
    \setlength{\topmargin}{0pt}
    \setlength{\partopsep}{0pt}
    \setlength{\rightmargin}{0pt}

\item Modified one.
\item Two.
\item Three.
\end{itemize}

\end{document}
share|improve this question
add comment

1 Answer 1

up vote 13 down vote accepted

The enumitem package is best for adjusting list formatting.

\usepackage{enumitem}
\setitemize{leftmargin=*} % makes all itemize lists line up with the  surrounding text

or if you just want it for a single list:

\begin{itemize}[leftmargin=*]
\item ...
\end{itemize}
share|improve this answer
    
Thanks, why doesn't the setlength command work? I noticed that it works for some parameters like itemsep. –  levesque Jan 3 '11 at 6:51
5  
itemize copies some of the values at the start to internal lengths. E.g. \topsep is used to calculate \@topsep. And this internal lengths are then later used. So changing \topsep after \begin{itemize} doesn't have an effect. (Changing before doesn't work because at the start of the list \topsep is setup to the default defined in \@listi.) –  Ulrike Fischer Jan 3 '11 at 13:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.