I need to add an Arab word (قرار) to an English LaTex document. I played around with:


which seems to require that I transliterate the word like this:


However, unfortunately, I do not know how to transliterate the given word.

I have found solutions that require to switch the typesetting engine to "xelatex" or "lualatex". However, I am on Overleaf and I do not know whether this is possible there.

  • Try the button "Menu" (top left corner on overleaf) and change compiler to XeLaTeX for your XeLaTeX solution.
    – koleygr
    Aug 14, 2019 at 13:32
  • It is possible to use LuaLaTeX and XeLaTeX in overleaf. You can specify which engine you want somewhere in the project settings. See overleaf.com/learn/how-to/Changing_compiler. I think the LuaLaTeX with babel is probably the best solution, unless you have font shaping issues, then you're stuck with XeLaTeX for the moment. This answer shows how to use both arabtex and lualatex for a similar document, but with Russian as the main language. Does that help? tex.stackexchange.com/a/480017/87678 Aug 14, 2019 at 13:33
  • If you want to use transliteration instead of utf8 entry for Arabic, then I think this manual helps. But I can't read Arabic to know. Aug 14, 2019 at 13:39
  • 1
    Thank you @DavidPurton, the link was very helpful in order to find out the answer for this particular problem!
    – Janothan
    Aug 14, 2019 at 14:01

1 Answer 1


A very simple way (while sticking with pdfLaTeX) is as follows


and then in the text:

  • I'm afraid that it doesn't work in case you're using the dmath environment.
    – moon
    May 4, 2023 at 6:56

You must log in to answer this question.

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