I haven't used LaTeX for quite some time now (since my university studies), so everything's a little bit rusty now. Nevertheless I've decided to use it again, now that I'm confronted with bigger documents in my daily work. Seeing that the world didn't stand still in the meantime, I want to switch from pdflatex to lualatex and as far as I understand, this shouldn't be a (too) big deal. However I seem to fail with very basic things, like switching to another font. I'm testing with the following document:

% (German) Basics
\documentclass[12pt, a4paper, ngerman]{report}

% Font Arial


This is a test line!


The used environment is Windows, MikTeX 2.9 and TeXstudio. Everything is up to date as far as I can see, missing packages will be installed on the fly and the settings in TeXstudio are all factory default except that I changed the standard compiler in the preferences to "LuaLaTeX". The compiler command is (factory default) lualatex.exe -synctex=1 -interaction=nonstopmode %.tex

But as soon as I only put in the line \usepackage{fontspec} the compiling fails and there is a bunch of errors about a missing number, treated as zero in fontspec.sty. What am I missing/doing wrong?

I already tried out playing around with the synctex-options and I already updated my environment according to: How should one maintain and update a MiKTeX installation?

Has somebody already seen this problem or does anyone have at least a hint where to search furthe? I'm a little bit stranded here. Thanks a lot for your help!

Cheers, Johannes

  • 1
    Welcome to TeX.SX! First of all, please replace \usepackage{ngerman} by \usepackage[ngerman]{babel}. Furthermore, have you checked that everything is up to date (i.e. run MikTeX console updater in admin and in user mode)? – TeXnician Oct 26 at 15:04
  • 1
    Welcome to TeX.SX! There has been a bug in a recent version of l3kernel, but it should be solved by now. Update. – egreg Oct 26 at 15:04

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.