[XeTeX] bug in xltxtra?

Ulrike Fischer news3 at nililand.de
Tue Aug 3 17:01:01 CEST 2010

Am Tue, 3 Aug 2010 09:56:45 +0200 schrieb Yves Codet:

> Hello.
> I think I found a bug in xltxtra, which is illustrated in the attached  
> file. If xltxtra is loaded, the word which is in italics in the  
> section title is also in italics in the running head, but it should be  
> in roman since the running head is in italics; if only fontspec is  
> loaded, the running head is alright.

No the running head is not in italic, it uses \slshape. And this is
the source of the problem: A current fontspec or your xltxtra
redefines \em/\emph so that it switches to upshape only if the
current shape is \itshape. 


\usepackage{fontspec} %version v2.0b, loads fontspec-patches

{\slshape blub \emph{bla}} %slshape + itshape

{\itshape blubb \emph{blabla}} %itshape + upshape


Ulrike Fischer 

More information about the XeTeX mailing list