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
    Commented Jul 23, 2018 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
    Commented Jul 23, 2018 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
    Commented Jul 23, 2018 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
    Commented Jul 23, 2018 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
    Commented Jul 23, 2018 at 12:56

1 Answer 1


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}



You must log in to answer this question.

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