Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • your code doesn't load fontspec? so fontspec can't be the source of the error. Commented Feb 9, 2025 at 3:21
  • @cfr I put the fontspec tag, because there is a difference between pdflatex (without fontspec) and lualatex (which always uses fontspec). Commented Feb 9, 2025 at 17:04
  • 1
    fontspec is a package that you have to load explicitly, it is not part of the lualatex format. Commented Feb 9, 2025 at 17:07
  • @rallg lualatex does not use fontspec by default. Commented Feb 9, 2025 at 17:42
  • 1
    @rallg yes but lualatex (which always uses fontspec). which you wrote and lualatex (with which I always use fontspec). which you meant, are not the same thing. No harm done though:-) Commented Feb 9, 2025 at 20:43