Hello, I just updated my TeXlive 2009 installation the other day from CTAN and am having a problem with some shortcut macros I was using to make indexing easier. I have a shortest working example attached as test.tex, and the log file as well. I've summarised the things which can and can't be changed in the test file. Essentially, if I have a \newcommand which creates an index entry and specifies the output formatting of that entry, while using Polyglossia, I get an error. The error is:
! Missing control sequence inserted. <inserted text> \inaccessible l.7 \item {\ttfamily \def r m{tt}lambda}, \hyperpage{1} Which originates from the .ind file produced by makeindex. The error is sort of an obvious problem: that \def should not be there! :-) If I remove Polyglossia, it works. If I remove the text before the index entry, it works. If I call \index directly rather than going through my \newcommand, it works. Since the most interesting piece of evidence seemed to be the Polyglossia aspect, I tried checking out from Git an older version (specifically, 1.1.0b: commit ae0df19e5759a01cf973) and placing the polyglossia.sty and gloss-english.ldf into the current directory, and this makes it work again. This is my current workaround, since I've got a fairly important document which relies on macros like \broken, but it's not sustainable. If I can provide further help tracking down the origin of this, please let me know. I'm using TeXlive 2009 fully updated as of today on Linux x86_64, both Ubuntu 9.10 and Ubuntu 10.04. Thanks, -- Taylor C. Venable http://metasyntax.net/
test.tex
Description: TeX document
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009) (format=xelatex 2010.5.15) 15 MAY 2010 23:17 entering extended mode %&-line parsing enabled. **\def\UseCustomFonts{TRUE}\input{test.tex} (./test.tex (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \...@part=\count80 \...@section=\count81 \...@subsection=\count82 \...@subsubsection=\count83 \...@paragraph=\count84 \...@subparagraph=\count85 \...@figure=\count86 \...@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty Package: polyglossia 2010/03/23 v1.1.1 Babel replacement for XeLaTeX (/usr/local/texlive/2009/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2010/04/10 v1.9 e-TeX tools for LaTeX (/usr/local/texlive/2009/texmf-dist/tex/latex/etex-pkg/etex.sty Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB) \...@xins=\count88 ) \...@tempcnta=\count89 ) (/usr/local/texlive/2009/texmf-dist/tex/latex/makecmds/makecmds.sty Package: makecmds 2009/09/03 v1.0a extra command making commands ) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty Package: fontspec 2008/08/09 v1.18 Advanced font selection for XeLaTeX (/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional ) \...@zf@newff=\count90 \...@zf@index=\count91 \...@zf@script=\count92 \...@zf@language=\count93 (/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ) \c...@acount=\count94 \c...@bcount=\count95 \c...@adimen=\dimen103 \c...@bdimen=\dimen104 \c...@askip=\skip43 \c...@bskip=\skip44 LaTeX Info: Redefining \setlength on input line 76. LaTeX Info: Redefining \addtolength on input line 77. \c...@ccount=\count96 \c...@cskip=\skip45 ) (/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty Package: xkeyval 2008/08/13 v2.6a package option processing (HA) (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex \...@toks=\toks14 \...@tempa@toks=\toks15 \...@depth=\count97 File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA) (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex))) (/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (/usr/local/texlive/2009/texmf-dist/tex/latex/euenc/eu1enc.def File: eu1enc.def 2010/01/28 v0.1f Experimental Unicode font encodings ) LaTeX Font Info: Try loading font information for EU1+lmr on input line 100. (/usr/local/texlive/2009/texmf-dist/tex/latex/euenc/eu1lmr.fd File: eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern )) LaTeX Info: Redefining \itshape on input line 1163. LaTeX Info: Redefining \slshape on input line 1166. LaTeX Info: Redefining \scshape on input line 1169. LaTeX Info: Redefining \upshape on input line 1172. fontspec.cfg loaded. (/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg)) \...@normalclass=\xetexintercharclass4 ) (/usr/local/texlive/2009/texmf-dist/tex/latex/base/makeidx.sty Package: makeidx 2000/03/29 v1.0m Standard LaTeX package ) \...@indexfile=\write3 \openout3 = `test.idx'. Writing index file test.idx (/usr/local/texlive/2009/texmf-dist/tex/latex/hyperref/hyperref.sty Package: hyperref 2010/05/04 v6.81a Hypertext links for LaTeX (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2010/04/26 v1.7 LaTeX kernel commands for general use (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty Package: kvsetkeys 2010/03/01 v1.9 Key value parser (HO) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/etexcmds.sty Package: etexcmds 2010/01/28 v1.3 Prefix for e-TeX command names (HO) Package etexcmds Info: Could not find \expanded. (etexcmds) That can mean that you are not using pdfTeX 1.50 or (etexcmds) that some package has redefined \expanded. (etexcmds) In the latter case, load this package earlier. )) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/pdfescape.sty Package: pdfescape 2010/03/01 v1.9 Provides hex, PDF name and string conversion s (HO) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty Package: pdftexcmds 2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifluatex.sty Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) Package ifluatex Info: LuaTeX not detected. ) Package pdftexcmds Info: LuaTeX not detected. Package pdftexcmds Info: pdfTeX >= 1.30 not detected. Package pdftexcmds Info: \...@primitive is available. Package pdftexcmds Info: \...@ifprimitive is available. )) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifpdf.sty Package: ifpdf 2010/01/28 v2.1 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in pdf mode not detected. ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifvtex.sty Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO) Package ifvtex Info: VTeX not detected. ) (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/hycolor.sty Package: hycolor 2009/12/12 v1.6 Color options of hyperref/bookmark (HO) (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty Package: xcolor-patch 2009/12/12 xcolor patch )) (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/letltxmacro.sty Package: letltxmacro 2008/06/24 v1.3 Let assignment for LaTeX macros (HO) ) \...@linkdim=\dimen105 \...@linkcounter=\count98 \...@pagecounter=\count99 (/usr/local/texlive/2009/texmf-dist/tex/latex/hyperref/pd1enc.def File: pd1enc.def 2010/05/04 v6.81a Hyperref: PDFDocEncoding definition (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/intcalc.sty Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetexconfig/hyperref.cfg File: hyperref.cfg 2008/07/11 v1.2 hyperref configuration for XeLaTeX ) (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/kvoptions.sty Package: kvoptions 2010/02/22 v3.7 Keyval support for LaTeX options (HO) ) Package hyperref Info: Hyper figures OFF on input line 3639. Package hyperref Info: Link nesting OFF on input line 3644. Package hyperref Info: Hyper index ON on input line 3647. Package hyperref Info: Plain pages OFF on input line 3654. Package hyperref Info: Backreferencing OFF on input line 3659. Implicit mode ON; LaTeX internals redefined Package hyperref Info: Bookmarks ON on input line 3855. (/usr/local/texlive/2009/texmf-dist/tex/latex/url/url.sty \Urlmuskip=\muskip10 Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc. ) LaTeX Info: Redefining \url on input line 4140. (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/bitset.sty Package: bitset 2007/09/28 v1.0 Data type bit set (HO) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/bigintcalc.sty Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations (HO) )) \...@menulength=\count100 \fi...@width=\dimen106 \...@charsize=\dimen107 \fi...@toks=\toks16 Package hyperref Info: Hyper figures OFF on input line 5118. Package hyperref Info: Link nesting OFF on input line 5123. Package hyperref Info: Hyper index ON on input line 5126. Package hyperref Info: backreferencing OFF on input line 5133. Package hyperref Info: Link coloring OFF on input line 5138. Package hyperref Info: Link coloring with OCG OFF on input line 5143. Package hyperref Info: PDF/A mode OFF on input line 5148. LaTeX Info: Redefining \ref on input line 5188. LaTeX Info: Redefining \pageref on input line 5192. (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/atbegshi.sty Package: atbegshi 2010/03/25 v1.12 At begin shipout hook (HO) ) \...@abspage=\count101 \...@item=\count102 \...@hfootnote=\count103 ) * hyperref using default driver hxetex * (/usr/local/texlive/2009/texmf-dist/tex/latex/hyperref/hxetex.def File: hxetex.def 2010/05/04 v6.81a Hyperref driver for XeTeX (/usr/local/texlive/2009/texmf-dist/tex/latex/hyperref/puenc.def File: puenc.def 2010/05/04 v6.81a Hyperref: PDF Unicode definition (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/stringenc.sty Package: stringenc 2010/03/01 v1.8 Converts strings between encodings (HO) ) \p...@box=\box26 \...@hy@AnnotLevel=\count104 \hyfi...@annotcount=\count105 \...@listcount=\count106 \...@bookmark@s...@number=\count107 (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty Package: rerunfilecheck 2010/03/16 v1.6 Rerun checks for auxiliary files (HO) Package rerunfilecheck Info: Feature \pdfmdfivesum is not available (rerunfilecheck) (e.g. pdfTeX or LuaTeX with package `pdftexcmds'). (rerunfilecheck) Therefore file contents cannot be checked efficien tly (rerunfilecheck) and the loading of the package is aborted. ) \...@sectionhshift=\skip46 ) (./test.aux) \openout1 = `test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for EU1/lmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid this). on input line 7. \symlegacymaths=\mathgroup4 LaTeX Font Info: Overwriting symbol font `legacymaths' in version `bold' (Font) OT1/cmr/m/n --> OT1/cmr/bx/n on input line 7. LaTeX Font Info: Redeclaring math accent \acute on input line 7. LaTeX Font Info: Redeclaring math accent \grave on input line 7. LaTeX Font Info: Redeclaring math accent \ddot on input line 7. LaTeX Font Info: Redeclaring math accent \tilde on input line 7. LaTeX Font Info: Redeclaring math accent \bar on input line 7. LaTeX Font Info: Redeclaring math accent \breve on input line 7. LaTeX Font Info: Redeclaring math accent \check on input line 7. LaTeX Font Info: Redeclaring math accent \hat on input line 7. LaTeX Font Info: Redeclaring math accent \dot on input line 7. LaTeX Font Info: Redeclaring math accent \mathring on input line 7. LaTeX Font Info: Redeclaring math symbol \colon on input line 7. LaTeX Font Info: Redeclaring math symbol \Gamma on input line 7. LaTeX Font Info: Redeclaring math symbol \Delta on input line 7. LaTeX Font Info: Redeclaring math symbol \Theta on input line 7. LaTeX Font Info: Redeclaring math symbol \Lambda on input line 7. LaTeX Font Info: Redeclaring math symbol \Xi on input line 7. LaTeX Font Info: Redeclaring math symbol \Pi on input line 7. LaTeX Font Info: Redeclaring math symbol \Sigma on input line 7. LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 7. LaTeX Font Info: Redeclaring math symbol \Phi on input line 7. LaTeX Font Info: Redeclaring math symbol \Psi on input line 7. LaTeX Font Info: Redeclaring math symbol \Omega on input line 7. LaTeX Font Info: Redeclaring math symbol \mathdollar on input line 7. LaTeX Font Info: Redeclaring symbol font `operators' on input line 7. LaTeX Font Info: Encoding `OT1' has changed to `EU1' for symbol font (Font) `operators' in the math version `normal' on input line 7. LaTeX Font Info: Overwriting symbol font `operators' in version `normal' (Font) OT1/cmr/m/n --> EU1/lmr/m/n on input line 7. LaTeX Font Info: Encoding `OT1' has changed to `EU1' for symbol font (Font) `operators' in the math version `bold' on input line 7. LaTeX Font Info: Overwriting symbol font `operators' in version `bold' (Font) OT1/cmr/bx/n --> EU1/lmr/m/n on input line 7. LaTeX Font Info: Overwriting symbol font `operators' in version `normal' (Font) EU1/lmr/m/n --> EU1/lmr/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathrm' in version `normal' (Font) EU1/lmr/m/n --> EU1/lmr/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal' (Font) OT1/cmr/m/it --> EU1/lmr/m/it on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal' (Font) OT1/cmr/bx/n --> EU1/lmr/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal' (Font) OT1/cmss/m/n --> EU1/lmss/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal' (Font) OT1/cmtt/m/n --> EU1/lmtt/m/n on input line 7. LaTeX Font Info: Overwriting symbol font `operators' in version `bold' (Font) EU1/lmr/m/n --> EU1/lmr/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathrm' in version `bold' (Font) EU1/lmr/m/n --> EU1/lmr/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold' (Font) OT1/cmr/bx/it --> EU1/lmr/bx/it on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold' (Font) OT1/cmss/bx/n --> EU1/lmss/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold' (Font) OT1/cmtt/m/n --> EU1/lmtt/bx/n on input line 7. \AtBeginShipoutBox=\box27 Package hyperref Info: Link coloring OFF on input line 7. (/usr/local/texlive/2009/texmf-dist/tex/latex/hyperref/nameref.sty Package: nameref 2010/04/30 v2.40 Cross-referencing by name of section (/usr/local/texlive/2009/texmf-dist/tex/latex/oberdiek/refcount.sty Package: refcount 2008/08/11 v3.1 Data extraction from references (HO) ) (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/gettitlestring.sty Package: gettitlestring 2009/12/18 v1.3 Cleanup title references (HO) ) \...@section@level=\count108 ) LaTeX Info: Redefining \ref on input line 7. LaTeX Info: Redefining \pageref on input line 7. LaTeX Info: Redefining \nameref on input line 7. (./test.out) (./test.out) \...@outlinefile=\write4 \openout4 = `test.out'. (./test.ind (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/se-ascii-print.def File: se-ascii-print.def 2010/03/01 v1.8 stringenc: Printable ASCII characters ) [1 ] LaTeX Font Info: Try loading font information for EU1+lmtt on input line 3. (/usr/local/texlive/2009/texmf-dist/tex/latex/euenc/eu1lmtt.fd File: eu1lmtt.fd 2009/10/30 v1.6 Font defs for Latin Modern ) ! Missing control sequence inserted. <inserted text> \inaccessible l.7 \item {\ttfamily \def r m{tt}lambda}, \hyperpage{1} ? x Here is how much of TeX's memory you used: 7511 strings out of 494581 121693 string characters out of 3159623 216973 words of memory out of 3000000 10678 multiletter control sequences out of 15000+200000 3672 words of font info for 18 fonts, out of 3000000 for 9000 669 hyphenation exceptions out of 8191 35i,4n,35p,844b,317s stack positions out of 5000i,500n,10000p,200000b,50000s Output written on test.pdf (1 page).
test.ind
Description: Binary data
test.idx
Description: Binary data
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex