我正在尝试索引阿拉伯语文档。生成的 idx 文件是:
\indexentry{الوعي|hyperpage}{\RLE {١}}
\indexentry{المسؤولية|hyperpage}{\RLE {٢}}
当我运行 makeindex 时,ilg 文件中出现此错误
This is makeindex, version 2.15 [TeX Live 2019] (kpathsea + Thai support).
Scanning input file Coaching.idx...
!! Input index error (file = Coaching.idx, line = 1):
-- Illegal space within numerals in second argument.
!! Input index error (file = Coaching.idx, line = 2):
-- Illegal space within numerals in second argument.
done (0 entries accepted, 2 rejected).
Nothing written in Coaching.ind.
Transcript written in Coaching.ilg.
我该如何解决这个问题?有没有办法生成索引?谢谢
答案1
我找到了解决方案。我添加了以下内容:
\setdefaultlanguage[numerals=maghrib]{arabic}
idx 输出文件现在是:
\indexentry{الوعي|hyperpage}{1}
\indexentry{المسؤولية|hyperpage}{2}