Tell me more ×
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.

Is there a way to chenge how the description lists are indented?

I have something like:

Normal text

List item
List Item

I would like something like:

Normal text

    List item
    List Item
share|improve this question
1  
If you have access to Lamport's book, the many settings affecting description lists (and other lists) are described there in great detail. – Harald Hanche-Olsen Jan 26 '11 at 21:29

3 Answers

up vote 14 down vote accepted

I recommend to use the enumitem package which offers a lot of features for customizing lists - both fine tuning and also consistent list adjustment. For example, just by \setdescription{leftmargin=1cm,labelindent=1cm} you could indent the description list by 1 cm. Raise leftmargin or use any value you like for the arguments. More can be found in the package documentation.

A complete example:

\documentclass{article}
\usepackage{enumitem}
\setdescription{leftmargin=\parindent,labelindent=\parindent}
\begin{document}
\section{Test}
left aligned text
\begin{description}
 \item[One] first item
 \item[Two] second item
 \item[Three] third item
\end{description}
\end{document}

enter image description here

With enumitem, you could even specify it locally, case-by-case, using optional arguments:

\begin{description}[labelindent=1cm]
...
share|improve this answer
Thank you very much. This is exactly what I wanted. – Tiago Veloso Jan 27 '11 at 12:32

redefine the environment:

\documentclass{article}
\renewenvironment{description}[1][0pt]
  {\list{}{\labelwidth=0pt \leftmargin=#1
   \let\makelabel\descriptionlabel}}
  {\endlist}

\parindent=0pt
\begin{document}
\rule{\linewidth}{1pt}

default text
\begin{description}
 \item[foo] bar
 \item[foobar] bar
 \item[foo] bar
\end{description}

\begin{description}[1cm]
 \item[foo] bar
 \item[foobar] bar
 \item[foo] bar
\end{description}
\end{document}

enter image description here

share|improve this answer
Is that the only way? Is there no way to achieve that in case-by-case scenario? – Tiago Veloso Jan 26 '11 at 21:50

I like Stefan's answer a lot, but if you'd prefer not to install a new package and are okay with a hacky solution, you could just enclose the description in a quote or quotation environment.

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.