In the shown MWE, I cannot determine why the index is not generated, although the code is very simple, no room for any conflicts, I am using LUALATEX to compile the file

\babelfont{rm}{Times New Roman}

\section{ مقدمة}
\section{مقدمة عن تاريخ الكتابة المصرية القديمة}
\section{مقدمة عن تاريخ الكتابة المصرية القديمة}
\section{مقدمة عن تاريخ الكتابة المصرية القديمة}
. حيث حُذِفَت علامة الرفع (وس) وايضاً حُذِفَت الحركة الأولى (أي) والتي ظنها العرب استهلال يتبقى اسم قبط
وهى مأخوذة من "حام" بن نوح
  • You might be able to get help faster if you only used fonts that are available with LaTeX it self. I don't have times new roman. But it compiles without it. Did you look in the log of the compilation, mine says Scanning input file imf.idx...done (0 entries accepted, 2 rejected). meaning that makeindex rejected the two arabic entries, which is expected as it does not know utf8.
    – daleif
    Aug 30, 2019 at 15:34
  • babel inject something in the idx that makeindex doesn't like. But even if one correct this: I don't see how an 8bit application like makeindex should be able to sort arabic indexentries. You should better check alternatives like bib2gls, xindex or xindy (but I have no idea if they can handle RTL. Or add sortkeys manually. Aug 30, 2019 at 15:36
  • @Ulrike, I tried xindy and it did not work
    – Silva
    Aug 30, 2019 at 15:37
  • @daleif actually makeindex doesn't stumble over the arabic but over the format of the number (babel injects something there). Aug 30, 2019 at 15:38
  • xindy is only my third suggestion - I would try bib2gls first. As it is java based it contains some unicode libraries for sorting. Aug 30, 2019 at 15:41

2 Answers 2


An example of creating index on arabic document with context, it is availible on texlive so if you are using miktex you need to change it to texlive.

The first run of context will take a while, you can use texworks which provides option for context compilation

More about indexing on context https://wiki.contextgarden.net/Registers


\definefontfamily [myfont][serif][Amiri]   [features=arabic]
\setupbodyfont [myfont]



اللُّغَة العَرَبِيّة هي أكثر اللغات تحدثاً ونطقاً ضمن مجموعة اللغات السامية، وإحدى أكثر 
اللغات انتشاراً في العالم، يتحدثها أكثر من 467 مليون نسمة، ويتوزع متحدثوها في 
الوطن العربي،
 \index{بسم }



enter image description here

  • Well, I currently cannot change the main aspects of my code, do you happen to have a solution for my case where I am using babel package and biblatex where I compile the file with LUALATEX
    – Silva
    Aug 30, 2019 at 19:10
  • No I have no solution with babel (lualatex), there is xindy-persian but I never used it.
    – Salim Bou
    Aug 30, 2019 at 19:23

both biber and bib2gls can sort arabic. I can't read the script, so I have no idea if the sorting is done correctly.

Example for bib2gls

Compile with

  lualatex file
  bib2gls file
  lualatex file


%\usepackage{filecontents} %uncomment to oeverwrite the bib

% Encoding: UTF-8
  name = {أبجد},
  description = {Alphabetize}}

  name = {بسملسامية},
  description = {nonsense}}

  name = {سملسامية},
  description = {nonsense2}}  
  name = {بسم},
  description = {In nomine Domini}}        




\gls{B}, \gls{I} \gls{A} \gls{X}



enter image description here

Example for biber

Compile with

  lualatex file
  biber file
  lualatex file

This shows only the principle, to be usable as index one would have to add some more entry types and fields and adapt the drivers.


% Encoding: UTF-8
  author = {أبجد},
  title = {Alphabetize}}

  author = {بسملسامية},
  title = {nonsense}}

  author = {سملسامية},
  title = {nonsense2}}
  author = {بسم},
  title = {In nomine Domini}}





enter image description here

  • @ Ulrike, i still get the error : Undefined control sequence : \ForEachTrackedDialec
    – Silva
    Aug 31, 2019 at 16:46
  • is your tex system up-to-date? Aug 31, 2019 at 16:59
  • 1
    then upload the log-file of my example somewhere. then I can compare. Aug 31, 2019 at 17:56
  • 1
    Open a command line and run "bib2gls name-of-your-file". You can fake with biber an index - there are lots of similarities between index and bibliography - but imho bib2gls and glossaries would be less work. I only tried with biber as I wanted to see how well it sorts such a script. Sep 1, 2019 at 10:46
  • 1
    – Silva
    Sep 1, 2019 at 11:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .