4

I don't seem to make kpfonts work with small caps italic text. This is my MWE:

\documentclass{article}
\usepackage{kpfonts}

\newcommand*{\mytext}{Testing 1 2 3 testing!}

\begin{document}
  \textsc{\itshape\mytext} % this doesn't work

  \textit{\scshape\mytext} % this doesn't either
\end{document}

This is what I get:

enter image description here

Any ideas?

3

You need to use one of the following forms to get the slanted smallcaps font of the kpfonts package:

\textscsl{Testing 1 2 3 testing!}
{\scslshape Testing 1 2 3 testing!}

Addendum (Thanks, @egreg!): Alternatively, you could load the kpfonts package with the option easyscsl and then use the commands \textsc (or \scshape) and \textit (or \itshape) in a nested fashion:

\textsc{\textit{Testing 1 2 3 testing!}}
{\scshape\itshape Testing 1 2 3 testing!}

For more on this, see p. 5 of the package's user guide.

| improve this answer | |
  • 2
    The easyscsl makes it possible to nest \textsl and \textsc (or conversely). I'm not sure about \textit. – egreg Nov 11 '13 at 15:03
  • @egreg - thanks for this suggestion. I've incorporated it in an addendum. – Mico Nov 11 '13 at 15:10

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.