[lltx] Problem with fontspec (! TeX capacity exceeded)

Graham Douglas graham.douglas at readytext.co.uk
Sun Jul 18 15:40:11 CEST 2010


Dear all

This is my first post to the list so hello to everyone
and thanks to all for your work on lualatex.

I have a problem running fontspec but to explain it I need
to give some background.

I run LuaTeX on Windows Vista, compiling the luatex binary
from source every couple of weeks. My runtime (texmf.cnf) is
a hand-written file not based on texlive etc.

I have built the lualatex .fmt file from the appropriate files:
lualatexquotejobname.tex, lualatexiniconfig.tex ,lualatex.ini etc.

Basically everything works OK, despite being a non-texlive configuration
etc. I run it like this as a way to experiment\learn etc.

OK, to the problem I'm having is as follows:

The following test file works perfectly:

\documentclass[12pt]{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{Cambria}
Hello! {\textit{there} \textbf{\textit{finally dude}}}
\end{document}

PDF outputs perfectly.

Now, if I include "[Ligatures=TeX]" to \setmainfont as follows, it fails
completely (And the same failure if I run fontspec-luatex.tex)

\documentclass[12pt]{article}
\usepackage{fontspec}
\begin{document}
\setmainfont[Ligatures=TeX]{Cambria}
Hello! {\textit{there} \textbf{\textit{finally dude}}}
\end{document}

==============================

! TeX capacity exceeded, sorry [parameter stack size=60].
\XKV at f@r #1#2#3,->
                   \XKV at tempa@toks {#3}\edef #1{\the \XKV at tempa@toks 
}\ifx #1...
l.4 \setmainfont[Ligatures=TeX]{Cambria}



Any ideas why this is failing?

Many thanks in advance for any suggestions.

All the best

Graham


===========================================================
More debug using \listfiles
===========================

file=fs.tex

commandline= luatex --fmt=lualatex fs.tex

\documentclass[12pt]{article}
\listfiles
\usepackage{fontspec}
\begin{document}
\setmainfont{Cambria}
Hello! {\textit{there} \textbf{\textit{finally dude}}}
\end{document}
=======================================



Graham at GRAHAM-PORTABLE /luatex
$ luatex --fmt=lualatex fs.tex
This is LuaTeX, Version beta-0.61.0-2010070416
(g:/msys/1.0/trunk/build/texk/fs.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, 
nohyphenation, lo
aded.
(g:/msys/1.0/trunk/build/texk/formats/lualatex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(g:/msys/1.0/trunk/build/texk/formats/lualatex/base/size12.clo))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/fontspec/fontspec.sty
(g:/texlive/Master/texmf-dist/tex/latex/expl3/expl3.sty
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3names.sty)
(g:/msys/1.0/trunk/build/texk/formats/lualatex/etex.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3basics.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3expan.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3tl.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3quark.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3seq.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3toks.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3int.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3prg.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3clist.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3token.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3prop.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3msg.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3io.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3skip.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3box.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3keyval.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3keys.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3precom.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3calc.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3xref.sty)
(g:/texlive/Master/texmf-dist/tex/latex/expl3/l3file.sty))
(g:/texlive/Master/texmf-dist/tex/latex/xpackages/xbase/xparse.sty)
(g:/texlive/Master/texmf-dist/tex/generic/kastrup/binhex.tex)
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatextra/luatextra.sty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/ifluatex.sty)
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-modutils.s
ty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-loader.sty

(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-compat.sty
)
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase.loader.lua
))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/modutils.lua))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-attr.sty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/attr.lua))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-cctb.sty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/cctb.lua))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-regs.sty)
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/luatexbase-mcb.sty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luatexbase/mcb.lua))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/lualibs/lualibs.lua)
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/environ.sty)
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/luaotfload/luaotfload.sty
(g:/msys/1.0/trunk/build/texk/formats/lualatex/luaotfload/luaotfload.lua)))
(g:/msys/1.0/trunk/build/texk/formats/lualatex/fontspec/fontspec.lua)
(g:/texlive/Master/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(g:/texlive/Master/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(g:/texlive/Master/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/fontspec/fontspec-patches.sty
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/base/fixltx2e.sty))
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/base/fontenc.sty
(g:/texlive/Master/texmf-dist/tex/latex/euenc/eu2enc.def)
(g:/texlive/Master/texmf-dist/tex/latex/euenc/eu2lmr.fd))
fontspec.cfg loaded.
(g:/msys/1.0/trunk/build/texk/formats/pdflatex/fontspec/fontspec.cfg))
(./fs.aux)
luaotfload | Font names database loaded: 
$TEXMFVAR/luatex/generic/luaotfload/na
mes/otfl-names.lua [1{g:/msys/1.0/trunk/build/texk/fonts/map/pdftex.map}]
(./fs.aux)

  *File List*
  article.cls    2007/10/19 v1.4h Standard LaTeX document class
   size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
fontspec.sty    2010/06/08 v2.0 Advanced font selection for XeLaTeX/LuaLaTeX
    expl3.sty    2010/03/23 v1866 L3 Experimental code bundle wrapper
  l3names.sty    2010/03/21 v1853 L3 Experimental Naming Scheme for TeX 
Primitiv
es
     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty    2010/03/21 v1853 L3 Experimental basic definitions
  l3expan.sty    2010/03/24 v1873 L3 Experimental Argument Expansion module
     l3tl.sty    2010/03/24 v1873 L3 Experimental Token Lists
l3intexpr.sty    2009/03/20 v1086 L3 Integer Expressions
  l3quark.sty    2010/03/21 v1853 L3 Experimental Quark Commands
    l3seq.sty    2010/03/21 v1857 L3 Experimental sequences and stacks
   l3toks.sty    2010/03/23 v1867 L3 Experimental Token Registers
    l3int.sty    2010/03/23 v1867 L3 Experimental Integer module
    l3prg.sty    2010/03/21 v1853 L3 Experimental control structures
  l3clist.sty    2010/03/29 v1878 L3 Experimental comma separated lists
  l3token.sty    2010/03/21 v1857 L3 Experimental token investigation 
and manipu
lation
   l3prop.sty    2010/03/21 v1857 L3 Experimental Property Lists
    l3msg.sty    2010/03/23 v1866 L3 Experimental LaTeX Messages module
     l3io.sty    2010/03/21 v1853 L3 Experimental i/o module
   l3skip.sty    2010/03/23 v1867 L3 Experimental skip registers
    l3box.sty    2010/03/23 v1867 L3 Experimental Box module
l3keyval.sty    2010/03/24 v1872 L3 Experimental keyval processing
   l3keys.sty    2010/03/22 v1863 L3 Experimental key-value support
l3precom.sty    2010/02/09 v1793 L3 Experimental precompilation module
   l3calc.sty    2010/02/07 v1776 L3 Experimental calc module
   l3xref.sty    2010/02/09 v1786 L3 Experimental cross referencing
   l3file.sty    2010/03/21 v1853 L3 Experimental file loading
   xparse.sty    2010/04/26 v1897 Generic document command parser
luatextra.sty    2010/05/10 v0.97 LuaTeX extra low-level macros
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
luatexbase-modutils.sty    2010/05/27 v0.2a Module utilities for LuaTeX
luatexbase-loader.sty    2010/05/27 v0.2a Lua module loader for LuaTeX
luatexbase-compat.sty    2010/05/27 v0.2a Compatibility tools for LuaTeX
luatexbase-attr.sty    2010/05/27 v0.2a Attributes allocation for LuaTeX
luatexbase-cctb.sty    2010/05/27 v0.2a Catcodetable allocation for LuaTeX
luatexbase-regs.sty    2010/05/27 v0.2a Registers allocation for LuaTeX
luatexbase-mcb.sty    2010/05/27 v0.2a Callback management for LuaTeX
  environ.sty    2008/06/18 v0.2 A new way to define environments
luaotfload.sty    2010/06/09 v1.11 ConTeXt font loading system
  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    2010/06/08 v2.0 Advanced font selection for 
XeLaTeX/Lua
LaTeX
fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
  fontenc.sty
   eu2enc.def    2010/01/28 v0.1f Experimental Unicode font encodings
   eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
fontspec.cfg
  ***********

  )
  371 words of node memory still in use:
    2 hlist, 1 vlist, 2 rule, 1 disc, 7 glue, 1 kern, 1 penalty, 2 
margin_kern,
1 glyph, 4 attribute, 41 glue_spec, 4 attribute_list, 1 temp, 1 write, 1 
dir, 1
  late_lua, 4 user_defined nodes
    avail lists: 2:98,3:2,4:28,5:6,6:30,7:1,9:6,10:1
<c:/windows/fonts/cambriaz.ttf><c:/windows/fonts/cambriai.ttf><g:/msys/1.0/trun
k/build/texk/fonts/opentype/cambria.ttc(Cambria:1)>
Output written on fs.pdf (1 page, 36527 bytes).
Transcript written on fs.log.

Graham at GRAHAM-PORTABLE /luatex
$






More information about the lualatex-dev mailing list