I get a mysterious error running the following MWE (with both XeLaTeX and LuaLaTeX):





Hello World!


The error description in the .log file reads:

LaTeX Info: Redefining \upshape on input line 2245.
 ("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.cfg")))
! Undefined control sequence.
<recently read> \str_case:nnF 

l.5 \setmainfont{texgyrepagella-regular.otf}

The control sequence at the end of the top line

And the document that's produced looks like this: enter image description here

I'm using MiKTeX 2.9 on Windows 7 with a very recent version of fontspec, which according to MiKTeX's Update Manager was packaged only four days ago (2015-07-214).

Is this a bug?

  • 1
  • @JosephWright: That here is the other way round: fontspec is too new and \str_case:nnF is unknown. Einbandi: Update the l3-packages. – Ulrike Fischer Jul 28 '15 at 13:00
  • @UlrikeFischer: I just updated all the l3-related packages I could find but unfortunately the problem persits. – einbandi Jul 28 '15 at 13:13
  • Did you run the update manager in admin and user mode? – Ulrike Fischer Jul 28 '15 at 13:15
  • So far only in admin mode. I'm running in user mode right now and will get back to you. – einbandi Jul 28 '15 at 13:16

Browse other questions tagged or ask your own question.