7

I am using itemize and then \item[option] inside it. I thought ‘option’ would end up being in boldface, but it doesn't. I'm using LaTeX. Is there a way to easily modify that without having to write \textbf for each of the options? This is what I want to achieve:

\begin{itemize}
\item[\textbf{title:}]description
\end{itemize}

using this:

\begin{itemize}
\item[title:]description
\end{itemize}

But if I use the second solution, I don't get the same thing as the first one, although I thought an item option would appear in bold without having to type textbf

  • 2
    Would you please make an example of what you're trying to achieve? – egreg Jun 10 '12 at 11:08
  • for future reference, have a look at the enumitem package – cmhughes Jun 10 '12 at 17:36
15

Use a description environment instead of itemize:

\documentclass{article}
\begin{document}
\begin{description}
  \item[foo] text
  \item[bar] text
\end{description}
\end{document}

output

  • What's the difference between itemize and description ? I always used itemize before, and I think it worked, though it's been years so I might be wrong. – jlo17 Jun 10 '12 at 11:14
  • @jlo17 A description environment is to describe things and an itemize environment is to have bullet points or something similar to mark different items. – topskip Jun 10 '12 at 11:17
  • 3
    @jlo17 See also the chapter in the wikibook about »List Structures« en.wikibooks.org/wiki/LaTeX/List_Structures – topskip Jun 10 '12 at 11:18
3

You can use enumitem package, it has automatic alignment of item labels.

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{itemize}[font=\bfseries]
\item[Long label] text
\item[Text] text
\item[Short] text
\end{itemize}
\end{document}

enter image description here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.