我正在制作一本书,并使用 Polyglossia 包以及 biblatex 和 XELATEX。我使用阿拉伯语和英语。当我尝试制作索引时,它不会出现。代码如下所示:(为了运行代码:下载 FONT SIMPLIFIED ARABIC 并使用以下链接在 Windows 中安装它: https://www.wfonts.com/font/simplified-arabic)
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,margin=2.5cm,bindingoffset=0.5cm]{geometry}
\usepackage{fontspec}
\usepackage{showidx}
\usepackage[xindy]{imakeidx}
\usepackage{polyglossia}
\setdefaultlanguage{arabic}
\setotherlanguages{english}
\newfontfamily\arabicfont[Script=Arabic,Mapping=arabicdigits]{Simplified Arabic} %
\title{}
\author{}
\date{}
\makeindex[program=texindy]
\begin{document}
\chapter{sdfdsdf}
يبسيبسيب
\section{Introduction}
سيسيبسيب
\index{سيبيبسسيب}
\begin{english}
In this example several keywords\textenglish{\index{keywords}} will be used
which are important and deserve to appear in the Index\index{Index}.
Terms like generate\index{generate} and some\index{others} will
also show up.
\end{english}
\printindex
\end{document}