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 it possible to redefine \item to have the text in braces appear bold?

\documentclass{article}
\begin{document}

\begin{itemize}
  \item{Paper}: a white substance used for writing symbols.
  \item{Pencil}: a tool for writing symbols on a paper
\end{itemize}

\end{document}

I'd like to have the following output:

  • Paper: a white substance used for writing symbols
  • Pencil: a tool for writing symbols on a paper

I intend to place this in a template. Note that this is not used a glossary; rather, it is used for short overview of a variety of items that may, were the text a bit more extended, deserve a subsection, except each item is too short to deserve a subsection.

share|improve this question
5  
Use \begin{description}…\end{description} and put it in brackets \item[Paper]: …. –  Manuel Feb 12 '13 at 0:21
    
@Manuel Thanks! I found that out immediately after posting the question. The "Related" section turned out to have a useful q&a listed. –  Ivan Vučica Feb 12 '13 at 0:25

2 Answers 2

up vote 1 down vote accepted

If you want to stick to using a {} and also want the bullets from itemized lists you could use \MyItem instead as defined below:

enter image description here

Alternatively you could define a customized MyItemize environment in which you redefine \item to do this, but I would recommend using \MyItem instead.

Code:

\documentclass{article}

\newcommand{\MyItem}[1]{\item \textbf{#1}}%
\begin{document}
\begin{itemize}
  \MyItem{Paper}: a white substance used for writing symbols.
  \MyItem{Pencil}: a tool for writing symbols on a paper
\end{itemize}

\end{document}
share|improve this answer
    
I'm accepting this because it's a bit closer to what I originally envisioned -- although I'll use description as it seems to have nicer formatting for my use case. Thanks! –  Ivan Vučica Feb 12 '13 at 1:11

Thanks, StackExchange's "Related" section that appeared after I posted the question!

I should actually be using the description environment and brackets instead of braces. Then I'll get the exact behavior I want.

\documentclass{article}
\begin{document}

\begin{description}
  \item[Paper] a white substance used for writing symbols.
  \item[Pencil] a tool for writing symbols on a paper
\end{description}

\end{document}
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.