[lltx] \textit changes font size with LM fonts

Stephan Hennig mailing_list at arcor.de
Tue May 10 20:56:25 CEST 2011


Hi,

I'm observing an odd behaviour with the Latin Modern Roman and Sans
fonts.  In the attached example the second instance of italic text is
typeset at a smaller font size than the surrounding text.

The problems doesn't exhibit with fonts other that LM Roman or LM Sans
or if either \tableofcontents or \mainmatter is removed.

Can you reproduce the problem?

Best regards,
Stephan Hennig


\listfiles
\documentclass{book}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
%\setmainfont{Latin Modern Sans}
%\setmainfont{TeX Gyre Pagella}
%\setmainfont{GFSBodoni}
\newcommand*{\test}{foo \textit{bar} foo}
\begin{document}
\test
\tableofcontents
\mainmatter
\test
\end{document}


system: LuaTeX from tlcontrib on Windows 7, x64

> This is LuaTeX, Version beta-0.70.0-2011050815 (rev 4247)  (format=lualatex 2011.5.9)  10 MAY 2011 20:46


>  *File List*
>     book.cls    2007/10/19 v1.4h Standard LaTeX document class
>     bk10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
> fontspec.sty    2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX
>    expl3.sty    2011/04/09 v2222 L3 Experimental code bundle wrapper
>  l3names.sty    2011/01/08 v2122 L3 Experimental Naming Scheme for TeX Primitiv
> es
>   luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)
> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
> luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)
> pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
>  ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
>    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
> l3basics.sty    2011/04/23 v2246 L3 Experimental basic definitions
>  l3expan.sty    2011/04/09 v2223 L3 Experimental Argument Expansion module
>     l3tl.sty    2011/04/09 v2223 L3 Experimental Token Lists
>    l3int.sty    2011/04/11 v2229 L3 Experimental Integer module
>  l3quark.sty    2011/04/14 v2234 L3 Experimental Quark Commands
>    l3seq.sty    2011/04/21 v2245 The LaTeX3 kernel: sequences and stacks
>   l3toks.sty    2011/04/09 v2223 L3 Experimental Token Registers
>    l3prg.sty    2011/04/09 v2223 L3 Experimental control structures
>  l3clist.sty    2011/04/09 v2223 L3 Experimental comma separated lists
>  l3token.sty    2011/04/09 v2223 L3 Experimental token investigation and manipu
> lation
>   l3prop.sty    2011/04/09 v2223 L3 Experimental Property Lists
>    l3msg.sty    2010/10/02 v2052 L3 Experimental LaTeX Messages module
>     l3io.sty    2010/10/03 v2063 L3 Experimental i/o module
>   l3skip.sty    2011/02/15 v2149 L3 Experimental skip registers
>    l3box.sty    2011/04/09 v2223 L3 Experimental Box module
> l3keyval.sty    2011/04/09 v2223 L3 Experimental keyval processing
>   l3keys.sty    2010/11/11 v2082 L3 Experimental key-value support
> l3precom.sty    2011/04/09 v2223 L3 Experimental precompilation module
>   l3xref.sty    2011/04/09 v2223 L3 Experimental cross referencing
>   l3file.sty    2011/04/21 v2242 The LaTeX3 kernel: file operations
>     l3fp.sty    2011/03/19 v2201 L3 Experimental floating-point operations
> l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
>     calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
>   xparse.sty    2011/04/08 v2219 Generic document command parser
> luaotfload.sty    2011/04/21 v1.25 OpenType layout system
> luatexbase.sty    2010/10/06 v0.3 Module utilities for LuaTeX
> luatexbase-compat.sty    2010/10/10 v0.3 Compatibility tools for LuaTeX
> luatexbase-loader.sty    2010/10/10 v0.3 Lua module loader for LuaTeX
> luatexbase-regs.sty    2010/10/10 v0.3 Registers allocation for LuaTeX
> luatexbase-attr.sty    2010/10/10 v0.3 Attributes allocation for LuaTeX
> luatexbase-cctb.sty    2010/10/10 v0.3 Catcodetable allocation for LuaTeX
> luatexbase-mcb.sty    2010/10/10 v0.3 Callback management for LuaTeX
> luatexbase-modutils.sty    2010/10/10 v0.3 Module utilities for LuaTeX
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
> fontspec-patches.sty    2011/02/26 v2.1f Advanced font selection for XeLaTeX/Lu
> aLaTeX
> fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
>  fontenc.sty
>   eu2enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
>   eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
> xunicode.sty    2010/11/06 v0.96 provides access to latin accents and many othe
> r characters in Unicode lower plane
> fontspec.cfg
>  ***********


More information about the lualatex-dev mailing list