[XeTeX] \emph{} exceeds TeX capacity with slides

Axel E. Retif axel.retif at mac.com
Fri Oct 15 09:57:02 CEST 2010


On  15 Oct, 2010, at 02:38, Ulrike Fischer wrote:

> Am Thu, 14 Oct 2010 20:44:19 +0200 schrieb Pablo Rodríguez:
> 
>> for some strange reason using both XeTeX and LuaTeX the \emph{} command 
>> contained in the sample document below exceeds TeX capacity:
>> 
>> \documentclass[12pt]{slides}
>> \usepackage{fontspec}
>> \setsansfont{FreeSans}
>> \begin{document}
>> hi \emph{hello}
>> \end{document}
>> 
>> [...]
> 
> That's a quite ironic bug. slides is doing what Will likes to do
> too: It handles \textit and \textsl identically by setting 
> 
> \def\itdefault{sl}
> \def\sldefault{sl}
> 
> Now when you are using \textsl, fontspec doesn't find 
> EU1/Arial(0)/m/\sldefault and tries 
> EU1/Arial(0)/m/\ifdefault instead and ends in a loop: [...]

Aha! That explains why it works without setting any sans font ---that is, letting fontspec use its Latin Modern default.


Best

Axel





More information about the XeTeX mailing list