36

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 itemize statements, but not the inverse. So, I would like to know how to prepend every description's item label with something.

migrated from stackoverflow.com Sep 27 '12 at 1:11

This question came from our site for professional and enthusiast programmers.

22

It would probably be better if you create your own list type using enumitem's \newlist feature.

If you don't want to do so, here's a hack, but it is somehow maintainable: Use the enumitem package and do the following:

\begin{description}[font=$\bullet$\scshape\bfseries]

That is, you encode the special stuff in the thing that should be your font, but it works fine, as long as the $\bullet (or equivalent) is in front of the actual description label.


markiDescriptionBullet

\documentclass[twocolumn]{article}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{xcolor}
\begin{document}
\blindtext Coco likes fruit. Her favorites are:
\begin{description}[font=$\bullet$~\normalfont\scshape\color{red!50!black}]
\item [Bananas] yellow and banana shaped
\item [Apples] red and round
\item [Oranges] orange and round
\item [Lemons] yellow, kinda round
\end{description}
\blindtext
\end{document}
  • 1
    The following works really nice when put in the preamble: \usepackage{enumitem}\setlist[description]{font=\textendash\enskip\scshape\bfseries} – Marki Aug 9 '11 at 7:04
  • Works like a charm, but if the item text goes beyond one line, the wrapped text is not aligned properly. – Chthonic Project Feb 12 '18 at 16:54
31

One quick way is to do it manually for each bullet:

\begin{description}
  \item[$\cdot$ bla1] item 1
  \item[$\bullet$ bla2] item 2
  \item[$\ast$ bla3] item 3
\end{description}

This produces:

  • Obviously, that is not what I planned to do :-) – Marki Aug 8 '11 at 14:17
  • @Marki - there may be a way to do it for each item as a renewcommand, but the quick and dirty way works. Even with a lot of items, you could do a search/replace and put in the $\cdot$ command for each item. But, maybe someone will come along and present a different way to do it. – Chris Gregg Aug 8 '11 at 14:42
  • 1
    Though this was not the OP asked, I thank you @chris Gregg, as it was useful to me ;) – Sosi May 20 '13 at 10:50
  • Hi, could you build subitem under your prescription? I used "\subitem[$\cdot$ bla1] item 1", it gives me "[. bla1] item1". I do not want the "[]". – user26143 Sep 4 '14 at 13:17
13

You can use the itemization function (https://www.sharelatex.com/learn/Lists)

\begin{itemize}

\item one.

\item two. 

\item  three.

\end{itemize}

And the output:

enter image description here

  • 4
    The question asks for description lists. Not itemize. – Johannes_B Nov 12 '17 at 10:21
  • 4
    Thanks for adding this answer nevertheless. Helped me with my issue. – Binita Bharati Feb 6 at 6:54
4

You can globally redefine the \descriptionlabel[1] to whatever you want.

In the case of this question, something like :

\renewcommand\descriptionlabel[1]{$\bullet$ \textbf{#1}}

The output

enter image description here

The code

\documentclass[12pt]{article}
\renewcommand\descriptionlabel[1]{$\bullet$ \textbf{#1}}
\begin{document}
\thispagestyle{empty}
\begin{description}
  \item [myDescriptionLabel] myItem
\end{description}
\end{document}
0
\begin{itemize}
\item ferrari
\item pagani
\end{itemize}
  • 1
    Welcome to TeX.SX! I guess the assumption in the other answers (and also in the question) was that the bullet would appear in addition to an otherwise highlighted label for the item. – moewe Nov 28 '18 at 8:27
  • 1
    .... Downvote without explanation is a bit harsh, though ... – moewe Nov 28 '18 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy