Actually this question asked many times before such as 1, 2, 3 and the article written in ShareLaTeX guides. However, I'm using the online editor and when I tried the solutions mentioned I still get an errors and no resulted file after compilation. It appears like the used packages is not recognized.
The last choice I tried is to use this in the preamble:
\usepackage{arabxetex}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.5]{Scheherazade}
and this for the Arabic text:
\textarab{نص عربي}
After compilation I got this error:
I tried the two compilers inside the yellow square but it didn't work
I opened a test project that has only this package and this was the result: as
It's worth to mention that I can't use the offline editor
Any thoughts about how to solve it?
Thanks
Best Answer
In the preamble:
Inside the document:
Make sure that the compiler is (Xelatex).