当我polyglossia
在课程中将其设置为必需包时,使用 进行编译时会出现以下错误make4ht
:
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: /usr/share/texlive/texmf-dist/tex/generic/tex4ht/fontspec-xetex.4ht 23 Undefined control sequence.
其中.log
写入了以下错误信息:
)) (/usr/share/texlive/texmf-dist/tex/generic/tex4ht/fontspec-xetex.4ht
version 2021-09-28-22:56
! Undefined control sequence.
<argument> \fontspec_ht_scripts
l.23 ...{\typeout{use block #1}\xeuniuseblock{#1}}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
以下是示例类:
\ProvidesClass{myclass}[2021/10/23]
\ProcessOptions\relax
\ExecuteOptions{}
\LoadClass{article}
\RequirePackage{polyglossia}
以及文件.tex
:
\documentclass{myclass}
%\usepackage{polyglossia}
\begin{document}
test
\end{document}
请注意,通过加载文件polyglossia
内部.tex
,不会产生错误。