3

Objective:

  • Change font style, in this case removing bold;
  • Customize the text into Page <$my_text>.; and
  • Do this for a single description environment, I don't want to change the other ones.

To remove the bold I use font=\normalfont which seems to work. However, I cannot change the text format into Page <$my_text>.. What am I doing wrong?

\documentclass{report}
\usepackage{enumitem}
\begin{document}

\begin{description}[leftmargin=!, labelwidth=0.3\textwidth, font=\normalfont, label=Page~*.]
  \item[12]       Hello.
  \item[33]       Text text text text text text text text.
  \item[92]       Some more text here.
\end{description}

\end{document}
2
  • I don't understand what you expect as label. Could you provide an example?
    – Keks Dose
    Apr 1, 2014 at 15:59
  • For instance Page 12. or Page 33. (without bold text). Apr 1, 2014 at 16:02

1 Answer 1

2

Working from lockstep's answer on enumitem package and description lists:

\documentclass{report}
\usepackage{enumitem}
\newcommand{\pageprefix}[1]{Page #1}
\begin{document}

\begin{description}[leftmargin=!, labelwidth=0.3\textwidth, font=\normalfont\pageprefix]
  \item[12]       Hello.
  \item[33]       Text text text text text text text text.
  \item[92]       Some more text here.
\end{description}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .