I'm trying to customize the environment enumerate
where the \item
is bold but the text is not bold. What I've tried is (at the suggestion of one of the google-results):
\let\origitem\item
\renewcommand{\item}{\normalfont\origitem}
\newcommand{\bolditem}{\normalfont\bfseries\origitem}
and then use it with
\begin{enumerate}
\bolditem[0] First item (whole line is bold)
\bolditem[1] Second item (also bold)
\item[2] Third item (not bold)
\end{enumerate}
But this makes the whole line bold. I only want the numbered part to be bold.
How can I achieve this ?
Best Answer
You can use the
enumitem
package. If you don't want to use additional packages, you can simply redefine\labelenumi
:EDIT: on a more programmatic level, you could define a new list-like environment that behaves like the standard
enumerate
, but with the desired format for the label. This can be done using something like thisor imitating the definition of the
enumerate
environment as given insource2e
):Something similar, but now with the help of the
enumitem
package: