最近,由于我的论文,我从 Windows(Miktex)换到了 Linux(TeX Live),现在我需要继续让它工作。
尽管我自上次运行脚本以来没有做任何更改,但现在却出现了语法错误。
%% CHECK IF USING LUALATEX OR XELATEX
\newif\ifxetexorluatex
\begingroup\catcode94=7 \catcode0=9% --------erro in this line
\def\empty{}\def\next{^^^^0000}\expandafter\endgroup
\ifx\next\empty\xetexorluatextrue\else\xetexorluatexfalse\fi
\newcommand*{\ifxeorlua}[2]{\ifxetexorluatex#1\else#2\fi}
错误信息 :
! Text line contains an invalid character.
l.90 \def\empty{}\def\next{^^^^0000}\expandafter\endgroup
A funny symbol that I can't read has just been input.