[XeTeX] Undefined control sequence

Cesar Romani cesar.romani at gmail.com
Sun Oct 3 17:02:08 CEST 2010


On 02/10/2010 10:55 p.m., Ross Moore wrote:
 > Hello Cesar,
 >
 > On 03/10/2010, at 12:38 AM, Cesar Romani wrote:
 >
 >> I'm using xelatex from TexLive 2008 on Win XP.
 >> I wanted to run the following text under xelatex:
 >>
 >> --------------------
 >> \documentclass{article}
 >>
 >> \usepackage{fontspec}
 >> \usepackage{xunicode}
 >> \usepackage{xltxtra}
 >> \usepackage{polyglossia}
 >>
 >> \newfontfamily\devanagarifont[Script=Devanagari]{Nakula}
 >> \newfontfamily\englishfont[Script=Latin]{XITS}
 >>
 >> \setmainlanguage{sanskrit}
 >> \setotherlanguages{english}
 >>
 >> \begin{document}
 >>
 >> \section{संस्कृतम्}
 >> जीवनस्य लक्ष्यमेव संस्कृतस्य वर्धनम्
 >> \subsection{कोऽम्}
 >> \textenglish{(Sanskrit)}
 >> \end{document}
 >> --------------------
 >>
 >>
 >> Bu I'm getting the following error:
 >>
 >> --------------------
 >> ! Undefined control sequence.
 >> \zf at check@ot at lang ...Tcountlanguages \zf at basefont
 >>                                                   \c at zf@script 
\c at zf@index \...
 >
 > This looks like a mismatch in package versions,
 >
 > Please use  \listfiles  in the preamble,
 > which will result in version information being written
 > to the .log file (or Console/Log window) for each
 > package being loaded.
 >
 > Then post that list so we can try to spot the mismatch.

Actually I obtained the code online, where it was compiled with xelatex
from TeXLive 2008, without problems.
I think the error comes from \setmainlanguage{sanskrit} but I'm not
sure.
Here is the output from \listfiles:

--------------------
  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
fontspec.sty    2008/08/09 v1.18 Advanced font selection for XeLaTeX
  ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
     calc.sty    2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
  fontenc.sty
   eu1enc.def    2008/03/08 v0.1d Experimental unicode font encoding
   eu1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern
fontspec.cfg
xunicode.sty    2008/02/08 v0.91 provides access to latin accents and 
many othe
r characters in Unicode lower plane
  xltxtra.sty    2008/07/29 v0.4 Improvements for the "XeLaTeX" format
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
     trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
    xetex.def    2006/08/10 v0.92 LaTeX color/graphics driver for XeTeX 
(RRM, mo
d. JK)
     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
fixltx2e.sty    2006/03/24 v1.1n fixes to LaTeX
polyglossia.sty    2009/01/25 v1.0.2 Babel replacement for XeLaTeX
etoolbox.sty    2008/06/28 v1.7 e-TeX tools for LaTeX
gloss-sanskrit.ldf    polyglossia: module for sanskrit
gloss-english.ldf    polyglossia: module for english
--------------------

Regards,

-- 
Cesar



More information about the XeTeX mailing list