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.

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
add comment

4 Answers

up vote 19 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 \setlist[description]{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}
\setlist[description]{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
    
Note: \parindent doesn't work if you have another description within a description item. cm seems to be ok. –  Karoly Horvath Jul 23 '13 at 8:26
add comment

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
add comment

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
add comment

Also, if you don't want to install another package, you can do what I've done below, since embedded lists are indented. You'll have to hit for each time you do this when you compile, though.

\begin{description}

\begin{description}

 \item[One]first item

 \item[Two]second item

 \item[Three]third item

\end{description}

\end{description}
share|improve this answer
    
Are you sure that it works? –  karlkoeller Jul 6 '13 at 5:35
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.