I'm using Kpfonts for the text of my documents, but I'd like to use the Computer Modern italic ampersand in my headings. To this end, I've defined a command \amp to insert the proper character. The first attempt is


But that doesn't work because there's no bold italic CM, so I have to use the bx series instead:


Which works. But now I have bold ampersands in the page headers (this is a thesis, so I've got chapter and section titles on top of non-title pages). After some fiddling, I get this:

\newcommand\amp{{\if\f@series b\usefont{T1}{cmr}{bx}{it}\else\usefont{T1}{cmr}{m}{it}\fi\&}}

This gives me the right weight in the right place in titles and page heads, but now the table of contents gets the wrong font, because \amp is expanded when the stuff is added to the .toc file, and at that time the font series is m and not b.

Is there some way I can get this to do the right thing in all three places? I suppose I have to somehow delay expansion of the macro in the appropriate way, but I've no idea how...

1 Answer 1


Using \protect\amp does the trick.



\newcommand\amp{{\if\f@series b\usefont{T1}{cmr}{bx}{it}\else\usefont{T1}{cmr}{m}{it}\fi\&}}



\section{Barnes \protect\amp\ Noble}

Some text.

  • D'oh. When something untoward happens in titles and such \protect is of course the way. Thanks!
    – arnsholt
    Apr 9, 2011 at 14:35

You must log in to answer this question.

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