What is the difference between \emph{...} and {\em ...}?
When to use each of them?
Best Answer
\emph is like e.g. \textit a command with an argument. \em is the "switch" variant, comparable to \itshape. \em is not an outdated TeX or LaTeX2.09 command but a real LaTeX2e command. Actually \emph is defined through em:
\DeclareTextFontCommand{\emph}{\em}
\em is useful for long texts (\emph e.g. doesn't allow the argument to contain a \par). The commands differ (like the \textit/\itshape) in their handling of the italic correction:
Those are very different commands even if the output happens to look the same.
If you want to emphasize a word or some text, use \emph. Don't just make the text italic or bold. If needed, you may change the behaviour of \emph whenever you wish in the preamble and the whole document will be adjusted accordingly.
If you want to get italic text, use \textit. \emph might have a different effect, a package like ulem might change it to underlining for instance.
\emph may be nested: emphasized text within emphasized text may be upright. In contrary, nesting \textit just keeps the italic shape.
Further, I rarely use physical font commands in my body text. I use them to define styles in the preamble and use the styles in the document afterwards, ensuring consistency and allowing changes to be easily made.
Best Answer
\emph
is like e.g.\textit
a command with an argument.\em
is the "switch" variant, comparable to\itshape
.\em
is not an outdated TeX or LaTeX2.09 command but a real LaTeX2e command. Actually\emph
is defined throughem
:\em
is useful for long texts (\emph
e.g. doesn't allow the argument to contain a\par
). The commands differ (like the\textit
/\itshape
) in their handling of the italic correction: