Text FormattingBold labels when using item[label]

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Ailurus
Posts: 1
Joined: Thu Apr 21, 2011 8:30 pm

Bold labels when using item[label]

Post by Ailurus »

Hi all,

I'm using custom labels for my enumerate environment. These labels should be displayed as bold text:

Code: Select all

\begin{enumerate}
\item[\textbf{1.4}] Some Text
\item[\textbf{1.7}] Some More Text
\end{enumerate}
I'm wondering whether I can use a command to automatically set the labels to bold text? Perhaps something like customizing the labels...

Code: Select all

\renewcommand{\labelenumi}{\textbf{\alph{enumi}}.}
... but now for the text between the hooks. I found a command named enumhooki, but I'm not sure how to use this.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Bold labels when using item[label]

Post by shadgrind »

For formatting item labels I use the paralist package:

Code: Select all

\documentclass{article}
\usepackage{paralist}
\begin{document}
\begin{enumerate}[\bfseries 1.]
  \item Some text
  \item Some more text
   \begin{enumerate}[\bfseries (a)]
     \item Some part
     \item Some other part
   \end{enumerate}
\end{enumerate}
\end{document}
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
Post Reply