![Linux 上发生的错误在 Windows 上不会发生](https://linux22.com/image/430187/Linux%20%E4%B8%8A%E5%8F%91%E7%94%9F%E7%9A%84%E9%94%99%E8%AF%AF%E5%9C%A8%20Windows%20%E4%B8%8A%E4%B8%8D%E4%BC%9A%E5%8F%91%E7%94%9F%20.png)
最近,由于我的论文,我从 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.