17

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.

pictho
  • 173
  • 1
    This was already raised this morning (or afternoon or whatever time it is in Australia) on the fontspec issues list https://github.com/wspr/fontspec/issues/254 – David Carlisle Jan 23 '17 at 12:15
  • 1
    it actually seems to be fontspec at fault here rather that lualatex/xelatex as if you recompile your document without the fontspec package it works as expected – ArTourter Jan 23 '17 at 12:15
  • @DavidCarlisle thank you for the link, I didn't know... Yes @ArTourter you're right, but I need to be able to use fontspec anyway :( – pictho Jan 23 '17 at 12:17
  • @pictho no there was no reason for you to know, I get mailed if an issue is posted there so easier for me to know:-) I just meant that (a) it's not your fault and (b) Will has already been told:-) – David Carlisle Jan 23 '17 at 12:20
  • 2
    for now I would just put \let\emph\textit in your document so you can carry on. and expect a fontspec update to come soon with a fix. – David Carlisle Jan 23 '17 at 12:21
  • @DavidCarlisle great idea, that'll do the job till the issue is fixed, thank you. – pictho Jan 23 '17 at 12:22
  • Now fixed in texlive update. – David Carlisle Jan 28 '17 at 08:57

1 Answers1

18

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.

David Carlisle
  • 757,742