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}
  • I don't understand what you expect as label. Could you provide an example? – Keks Dose Apr 1 '14 at 15:59
  • For instance Page 12. or Page 33. (without bold text). – user3371321 Apr 1 '14 at 16:02
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}

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.