[XeTeX] \emph{} exceeds TeX capacity with slides
Ulrike Fischer
news3 at nililand.de
Fri Oct 15 09:38:35 CEST 2010
Am Thu, 14 Oct 2010 20:44:19 +0200 schrieb Pablo Rodríguez:
> Hi there,
>
> 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}
>
> This only happens when fontspec is loaded with the slides as documentclass.
>
> I guess this might be a bug in fontspec (I use TL2010 and I updated all
> new packages today).
>
> Could anyone confirm this?
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:
LaTeX Font Info: Font shape `EU1/Arial(0)/m/sl' in size <12> not
available
Font shape `EU1/Arial(0)/m/sl' tried instead on input line
You can reproduce the problem with other classes too:
\documentclass[12pt]{article}
\def\itdefault{sl}
\usepackage{fontspec}
\setmainfont{Arial}
\begin{document}
\errorcontextlines=100
hi \textsl{hello}
\end{document}
--
Ulrike Fischer
More information about the XeTeX
mailing list