I am using WinEdt 7.0 in WINDOWS 7. I was trying run a tex file using XeLaTeX. The error reads as follows:

! Undefined control sequence
l.52 \char_make_active:n{"20}%

Please suggest on this.

UPDATE by texnic: Since I am having exactly the same issue now, I thought I might join this discussion. The MWE is, as suggested by Joseph, simply


The command is xelatex -synctex=1 -interaction=nonstopmode %.tex.

And the log:

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) (preloaded format=xelatex 2012.9.17)  17 SEP 2012 10:08
entering extended mode
("C:\Users\Kotya\Documents\Dropbox\job search\fontspec_bug.tex"
Babel  and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
Package: fontspec 2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\expl3.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3names.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3bootstrap.sty"
Package: l3bootstrap 2012/07/16 v3991 L3 Experimental bootstrap code
Package: l3names 2012/07/16 v3990 L3 Namespace for primitives
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
Package: expl3 2012/09/05 v4205 L3 Experimental code bundle wrapper

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3basics.sty"
Package: l3basics 2012/08/27 v4144 L3 Basic definitions
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3expan.sty"
Package: l3expan 2012/08/28 v4149 L3 Argument expansion
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3tl.sty"
Package: l3tl 2012/09/05 v4201 L3 Token lists
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3seq.sty"
Package: l3seq 2012/08/14 v4092 L3 Sequences and stacks
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3int.sty"
Package: l3int 2012/08/17 v4121 L3 Integers
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3quark.sty"
Package: l3quark 2012/08/08 v4065 L3 Quarks
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prg.sty"
Package: l3prg 2012/08/16 v4114 L3 Control structures
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3clist.sty"
Package: l3clist 2012/08/15 v4102 L3 Comma separated lists
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3token.sty"
Package: l3token 2012/08/08 v4069 L3 Experimental token manipulation
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prop.sty"
Package: l3prop 2012/09/03 v4190 L3 Property lists
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3msg.sty"
Package: l3msg 2012/08/28 v4147 L3 Messages
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3file.sty"
Package: l3file 2012/08/15 v4101 L3 File and I/O operations
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3skip.sty"
Package: l3skip 2012/08/17 v4121 L3 Dimensions and skips
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3keys.sty"
Package: l3keys 2012/07/16 v3991 L3 Experimental key-value interfaces
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3fp.sty"
Package: l3fp 2012/08/28 v4151 L3 Floating points
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3box.sty"
Package: l3box 2012/07/16 v3991 L3 Experimental boxes
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3coffins.sty"
Package: l3coffins 2012/08/14 v4092 L3 Coffin code layer
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3color.sty"
Package: l3color 2012/08/29 v4156 L3 Experimental color support
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3luatex.sty"
Package: l3luatex 2012/08/03 v4049 L3 Experimental LuaTeX-specific functions
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3candidates.sty"
Package: l3candidates 2012/05/12 v3633 L3 Experimental additions to l3kernel
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3packages\xparse\xparse.sty"
Package: xparse 2012/09/05 v4205 L3 Experimental document command parser
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\binhex\binhex.tex")
Variant \tl_gset:cV already defined; not changing it on line 83

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\calc.sty"
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex")))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec-patches.sty"
Package: fontspec-patches 2011/02/26 v2.1f Advanced font selection for XeLaTeX/

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"
Package: fixltx2e 2006/09/13 v1.1m fixes to LaTeX
LaTeX Info: Redefining \em on input line 420.
LaTeX Info: Redefining \em on input line 22.
LaTeX Info: Redefining \emph on input line 29.
LaTeX Info: Redefining \- on input line 32.

! Undefined control sequence.
l.52 \char_make_active:n
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! LaTeX Error: Missing \begin{document}.

  • That sounds like a mismatched version of the support files used by fontspec. What we probably need is a .log file for a minimal example \documentclass{article}\usepackage{fontspec}\begin{document}\end{document}.
    – Joseph Wright
    Sep 17, 2012 at 6:54
  • Please also add \listfiles before the \documentclass command in Joseph's code. Sep 17, 2012 at 8:06
  • @JosephWright: I am having the very same problem now, so I edited the OP to include the MEW and the log.
    – texnic
    Sep 17, 2012 at 8:07
  • 1
    @texnic Works fine for me (miktex 2.9), and my fontspec version is newer: 2012/05/06 v2.2b`. So update. Sep 17, 2012 at 8:30
  • 2
    @texnic Your fontspec package is outdated
    – egreg
    Sep 17, 2012 at 8:34

1 Answer 1


Based on the comments to the question, the solution is probably to update the fontspec package.

  1. Do Start / All programs / MikTeX / Maintenance (I used admin, however make sure to check this discussion) / Update
  2. Choose "I want to ... remote package repository" and specify the nearest or any other repository.
  3. Wait till MikTeX finds all packages it can update (takes a while).
  4. During the first run, MikTeX decided to update only itself: all other outdated packages, including fontspec, were not selectable.
  5. After updating MikTeX, re-run the updater. This time MikTeX automatically selects all outdated packages. I decided to update all of them. (Again, this takes a while.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .