I need to write some text in arabic using Latex. It is important for me to compile the tex file using Lualatex (here I report a minimal working example, but the document class I am originally using needs Lualatex).

Everything works fine except from the fact that the text is printed in the wrong direction. Any suggestion on how to fix this?




  • You probably want to load babel or polyglossia to deal with languages that are not English. – moewe Jul 23 '18 at 12:22
  • Not really, because using these packages my document is crashing ("sdaps" document class [sdaps.org/]). I am only looking for a way to invert the letters' flow under the setting proposed in the main question. – Caserio Jul 23 '18 at 12:30
  • Have you tried the arabluatex package? It works very well, though I don’t know whether it’s compatible with “sdaps.” – Thérèse Jul 23 '18 at 12:44
  • This question should be merged into tex.stackexchange.com/questions/442720/… since it clarifies that first question, and neither is complete without the other. – Thérèse Jul 23 '18 at 12:52
  • The original question has been updated with an example using Sdaps. However, given that few have (or want) sdaps on their machines, and also because the one posted here it is a problem in itself, I have posted a new question with a much easier example to reproduce. – Caserio Jul 23 '18 at 12:56

I do not have the arabtex package. However, I suppose you are looking for something like:

\def\setArabic{\pagedir TRT \bodydir TRT \pardir TRT \textdir TRT}
\def\setLatin {\pagedir TLT \bodydir TLT \pardir TLT \textdir TLT}


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.