Questions tagged [description]

{description} is about the `description` list environment. If you use this tag, add the more general {lists} tag.

Filter by
Sorted by
Tagged with
134
votes
7answers
138k views

Description list - How to put the definition on a new line?

I have the following LaTeX code: \documentclass{article} \begin{document} \begin{description} \item[foo] bar \item[baz] bang \end{description} \end{document} and it produces the following PDF: ...
55
votes
4answers
381k views

How to add bullets to description lists?

I would like to add a bullet in front of every \item[], i.e. Hello, \begin{description} \item[bla] blubb \end{description} becomes Hello, bla blubb I quickly found how to remove them from ...
47
votes
2answers
27k views

Description list with aligned descriptions

This forum thread is exactly what I'm looking for. I want my description environment to produce this: Label is long text lab2 blalballalaa label3 possible second rule label ...
39
votes
3answers
6k views

Footnote to an item in a description environment

It seems like it's not possible to put footnote inside a description list item. For example in the following code first footnote appears at the bottom of the page, but the second - doesn't: \...
36
votes
4answers
66k views

Indenting description lists

Is there a way to change how 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
34
votes
3answers
28k views

Reference name of description list item in LaTeX

(Repost from Stack Overflow) I'd like to refer to a description list item by name instead of number. To that effect, I've added labels to each item, but when referencing them I only get the name of ...
30
votes
1answer
8k views

right description list LaTeX beamer

How to do right align a description list using beamer? Name | Joel Spolsky Address | Some address Using the enumitem package as suggested in Description list with right alignment of ...
30
votes
5answers
29k views

Change hanging indent in description list

I'm trying to get a description's list hanging indent to lie flush with the first line of text. I have a description list such as the following: \begin{description} \item[Label the first] Lorem ...
29
votes
5answers
22k views

Description-like environment with fixed labels width

Which is the right way to do something like 'description' list but with customizable and fixed-width labels? I.e. something like this: Label: Text text text text text text text ...
27
votes
5answers
14k views

Enumerated description list

How can a list be created, whose items are both enumerated (a,b,c,d,...) and allow for setting a description via \item[texthere] ? Im am using MikTex on Windows.
27
votes
6answers
11k views

How to cross-reference items in description lists?

Every now and then I use the description list environment \begin{description} \item[foo] foo is good \item[bar] bar is bad \end{description} to create lists with non-numerical labels. ...
27
votes
2answers
8k views

Automatically set description list `labelwidth` based on widest label?

How do I create a description list where the item text is automatically indented to the width of the widest label? This is the same question as Description list with aligned descriptions but I would ...
21
votes
1answer
17k views

description environment with italic, non bold labels, bullets and normal font in the description

I think I am lost in something very easy with the enumitem package. I would like a description environment where the label is in italics and the description in normal text. I tried this \...
21
votes
2answers
3k views

Wrong line break in description environment after a long label

I encountered an issue with my description environments: If I use a label that almost is as long as the text width, the explanatory text afterwards is not wrapped correctly. I am using the mdwlist ...
21
votes
2answers
6k views

Verbatim description list item

How do I make an item in a description list verbatim? \verb in \item[] seems to be not allowed: \begin{description} \item[\verb+list comprehension [f a | a <- M a]+] bla bla bla \end{...
20
votes
1answer
8k views

Description list with right alignment of labels

I want a description list that looks like the following: Name | Joel Spolsky Address | Some address Some zipcode Telephone | +31 123 456 E-Mail | email@...
19
votes
4answers
44k views

Add bullet points to description lists

I'd like to add a bullet point to description lists. \begin{description} \item[Term] Description \end{description} Basically what I want looks like the following, when rendered: \begin{itemize} ...
18
votes
2answers
17k views

Dealing with long description environment items

I have quite a lot of description environments in Beamer that are having both long and short items, leading to an output like veryverylongitem description 1 shortitem description 2 which is not ...
18
votes
2answers
3k views

How to align `tcolorbox` at the top?

I want to align Some text with Lead Programmer like this: But the leftrulebox (a tcolorbox) inside the description environment doesn't align properly. The following code gives this: The code: \...
17
votes
3answers
32k views

enumitem package and description lists [duplicate]

Why does the following generate an error? \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[label=\emph{\alph*})] \item [aaa] bbbb \item [eee] əəəə \end{...
16
votes
2answers
9k views

Redefine environment to be a synonym for another

I have a document with many description environments. I would like to change all these description environments to LaTeXdescription environments, without manually changing all the occurrences of ...
16
votes
2answers
3k views

Using \lstinline inside a \item

I know about the fragility of verbatim-like commands, and that they should not be used as an argument of another macro, but a need to write a description environment in which the terms to be defined ...
14
votes
3answers
949 views

How can I sort a list numerically?

Basically, I want to create a summary for a history class. Therefore a lot of years occur throughout the lectures. Does LaTeX allow to sort a list if I set it up like in the following example? \begin{...
14
votes
3answers
12k views

linebreak in description title

In my document I have a description environment. One of the titles in the description is too long to fit in one line and I want to break it. I know this is a bad styling but I can't think of any way ...
14
votes
2answers
16k views

glossaries: How to customize list of symbols with additional column for units?

I want to add an additional column to the list of symbols for inserting the belonging units to the preceding variables. In my case, it is necessary to use three different and independent glossary-...
14
votes
3answers
3k views

force long text inside \item[{\texttt{}] to wrap

I have a LaTeX document that is automatically generated and then inserted as part of my own larger document with \input. This other document has a description environment for examples, one item for ...
14
votes
1answer
2k views

How to change symbol separating description item definitions with enumitem

I'm trying to alter the description environment with enumitem so that an item will be separated from its description by a dash rather than a colon. Having searched the documentation and this forum, I ...
13
votes
1answer
5k views

How can I have a smaller indentation in description with IEEEtran?

I'd like to use a description environment together with the IEEEtran document class. One of the labels is actually quite long (three words) so I need to use \IEEEsetlabelwidth to avoid having the ...
13
votes
1answer
6k views

How to escape "]" in a description's item tag?

In a description like \begin{description} \item[\texttt{DoSomething(items[])}:] ... \end{description} , how do I escape the "]" character?
13
votes
1answer
3k views

Reduce indent in description in beamer

In beamer, text in description items is over-indented: \documentclass[14pt,handout]{beamer} \begin{document} \begin{frame}\frametitle{} \begin{description} \item[FooBarBazZot] - foo bar \\ baz ...
11
votes
1answer
13k views

Spacing between item and description using description list

How can I get the same result as the code below without having to use \quad spacing? Is there any parameter in enumitem to adjust the horizontal spacing? \begin{description} \item{Item 1} \quad ...
10
votes
3answers
2k views

How do I align enumerate items inside empty description?

I have an enumerate list inside an empty description item. The minimal file is, \documentclass[11pt]{article} \begin{document} \begin{description} \item [A Label:] \begin{enumerate} \item A1. \...
10
votes
3answers
21k views

No indent in description list

I have the following text in LaTeX: I want that the second sentence of item A starts below the first word of the first sentence (So 'It is raw...' is outlined with 'Data are facts...'). I have search ...
10
votes
1answer
4k views

Defining my own description environment

I need help writing my own description environment. The only thing I want to change is the appearance of description label. I can achieve what I want universally just fine with the following bit in ...
10
votes
1answer
8k views

Automatically number a description list [duplicate]

Possible Duplicate: Enumerated description list I would basically like to produce some kind of combination of an enumerate and a description environment. Manually \begin{description} \item[1. ...
10
votes
1answer
97 views

Automatically number a word in description if used at least twice

I defined an environment with description which automatically numbers the bold words if they appear twice or more often in an \item[]. So far it works fine, but I cannot add a 1 to the first word, if ...
9
votes
1answer
2k views

latexdiff fails on description environments

This example fails to generate a valid .tex: test.tex \documentclass[a4paper]{report} \begin{document} \begin{description} \item[thing] explanation of thing \end{description} \end{document} ...
9
votes
1answer
521 views

show "continued" for nested description list item on page break

I'm using enumitem to create a description list. These lists can sometimes be nested and can get very long. When a list item with a lot of description text breaks over a page it is difficult to ...
8
votes
1answer
6k views

Itemize item on new line when nested in a description [duplicate]

I have a itemize list within a description list. Each description defines a item and the content is an itemize list. (As per the code example below and the output at the end of this question) \...
8
votes
1answer
2k views

Indenting multiple paragraphs in description

I am trying to put multiple paragraphs in a description, where the body text is indented by one \parindent, and I want to indent the second paragraph by one \parindent relative to the body text ...
8
votes
2answers
3k views

Force itemize inside description onto a new line

I have an itemize inside a description, like this: \documentclass[]{article} \usepackage[vmargin=1in,hmargin=1in]{geometry} \usepackage{enumitem} \setlist[description]{style=nextline} \begin{...
8
votes
2answers
1k views

Make the lines of a description item line up

I am trying to line up the lines of a single description item. When I introduce a line-break or when the line becomes to long, the new line isn't lined up with the first one. I'm aware of the fact ...
8
votes
1answer
197 views

Why conflict between mathtools and Gonzalo's solution for auto-adjusting description environment?

Gonzalo Medina provided a nifty solution to "Automatically set description list labelwidth based on widest label?." (The goal was to define a description environment where the item text is ...
8
votes
1answer
6k views

Aligining item descriptions

I am trying to make my description list with same margin as my formulas (made with fleqn option - \usepackage[fleqn]{mathtools}). I was able to make it with labelindent option of the description ...
8
votes
1answer
608 views

Problem in using \lstinline as description item

I'm writing a user manual with the documentation of some code written in XML. I would like to do this documentation within two nested description environment, highlighting the labels with my XML ...
8
votes
1answer
1k views

Empty List Environment

I created commands for resume fields. This is a simplified example of the desired outcome: Currently, I have to create two separate commands to do this, one with \begin{itemize} and the other without,...
7
votes
2answers
3k views

How to change colon into dot in description list?

I use amsbook document class. In description environment there is a colon after every item label. I want dot instead colon. How? Note that I already use \usepackage{enumitem} as it was suggested in ...
7
votes
2answers
390 views

Why is escaped # breaking my command?

I have created the following two commands: \newcommand{\termExplanation}[1]{\item[#1]\label{#1}} \newcommand{\newTerm}[1]{\hyperref[#1]{\emph{#1}}} In my text, I use \newTerm{Term 3}, and somewhere ...
7
votes
2answers
2k views

Redefining the item command of the description environment

My thesis contains many description environments. After showing it to my supervisor, he complained about the missing separation between the items titles and descriptions. I tried to redefine the \item ...
7
votes
2answers
933 views

renewcommand for description

I have a document with many \description environments. All of them are defined like this: \begin{description}[leftmargin=2.5cm,style=sameline] \item[\texttt{foo}] bar \item[\hspace{7mm}\...

1
2 3 4 5
8