6

I would like to redefine \emph that odd emphasised levels are bold and even emphasised levels are bold italic (\emph{bold \emph{bold italic \emph{bold}}}). How could I redefine \emph using \em to achieve this?

I tried to edit the solution proposed here Redefine \emph to be both bold and italic

\let\emph\relax % there's no \RedeclareTextFontCommand
\DeclareTextFontCommand{\emph}{\bfseries\em}

But here the first level is always bold and italic.

Bernard
  • 271,350
luki
  • 1,796
  • 3
    Just a caution -- \emph may be used "under the covers" in some places where you might not expect it, for example in bibliography styles or caption environments. Be alert. – barbara beeton Jan 30 '20 at 23:55

1 Answers1

13

With the next latex (which will be released in a few days) you can do the following

\documentclass{report}
\DeclareEmphSequence{\bfseries,\itshape,\upshape}
\begin{document}

normal \emph{bold \emph{bold italic \emph{bold}}}

\end{document}

You can try it out already in a current tex system by using pdflatex-dev instead of pdflatex

enter image description here

Ulrike Fischer
  • 327,261