[Tex/LaTex] \emph{} no longer works as expected in XeLaTeX / LuaLaTeX

emphasisfontspecitalic

Compiling with either XeLaTeX or LuaLaTeX, \emph{} no longer displays text as expected, i.e. in italics. \textit{} works fine. Here is a MWE demonstrating the issue.

\documentclass{article}

\usepackage{fontspec}

\begin{document}

    \emph{lorem ipsum}

    \textit{lorem ipsum}

\end{document}

Here is the output I get :
enter image description here

I have TeXLive 2016 (MacTeX) installed. I updated it an hour ago with sudo tlmgr update --self --all.

I guess there is something wrong but what ? I'd be happy to have some help. Thank you.

Best Answer

This is now fixed in the version on ctan and in texlive.


This is a hopefully temporary issue in the latest fontspec release, it has been raised this morning as

https://github.com/wspr/fontspec/issues/254

In the meantime if you add

\let\emph\textit

to your preamble the document will work in the common cases where \emph is italic, and then just look out for a fontspec update in the next day or so and remove this line again.

Related Question