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 an using this snippet to make bullet list with default documet line interval. This code works fine, but every line in this list is indented. I want to indent only first line. How can I achive this?

% List without intervals
\newenvironment{compactlist}{
 \begin{list}{{$\bullet$}}{
  \setlength\partopsep{0pt}
  \setlength\parskip{0pt}
  \setlength\parsep{0pt}
  \setlength\topsep{0pt}
  \setlength\itemsep{0pt}
 }
}{
 \end{list}
}
share|improve this question

1 Answer 1

up vote 4 down vote accepted

Add

\setlength{\itemindent}{\leftmargin}
\setlength{\leftmargin}{0pt}

to your list definition.

\documentclass{article}

\newenvironment{compactlist}{
 \begin{list}{{$\bullet$}}{
  \setlength\partopsep{0pt}
  \setlength\parskip{0pt}
  \setlength\parsep{0pt}
  \setlength\topsep{0pt}
  \setlength\itemsep{0pt}
  \setlength{\itemindent}{\leftmargin}
  \setlength{\leftmargin}{0pt}
 }
}{
 \end{list}
}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{compactlist}
\item \lipsum[1]
\end{compactlist}

\end{document}

enter image description here

share|improve this answer

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.