我想从普通的 LaTeX 切换到 LuaLaTeX。不幸的是,一开始就出现了错误:
$ lualatex -synctex=1 -interaction=nonstopmode mwe.tex
This is LuaHBTeX, Version 1.17.0 (MiKTeX 23.5)
restricted system commands enabled.
(./mwe.tex
LaTeX2e <2022-11-01> patch level 1
luaotfload | load : FATAL ERROR
luaotfload | load : × Failed to load "luaotfload" module "database".
luaotfload | load : × Error message:
luaotfload | load : × "...ktex-texmf/tex/luatex/luaotfload/luaotfload-database.lua:204: module 'lua-uni-case' not found:".
luaotfload | load : × "no field package.preload['lua-uni-case']".
luaotfload | load : × "[kpse lua searcher] file not found: 'lua-uni-case'".
stack traceback:
.../share/miktex-texmf/tex/luatex/luaotfload/luaotfload.lua:200: in upvalue 'loadmodule'
.../share/miktex-texmf/tex/luatex/luaotfload/luaotfload.lua:275: in local 'initialize'
.../share/miktex-texmf/tex/luatex/luaotfload/luaotfload.lua:330: in field 'main'
[\directlua]:1: in main chunk
我不明白我做错了什么。我正在使用 TeXstudio 4.2.1 和 MikTeX Console 4.9 以及这个 MWE:
% !TeX program = lualatex
\documentclass{article}
\begin{document}
hello
\end{document}