How to write from right to left?

Try #set text(lang: "ar") (potentially replacing ar with the language code for your language). This will configure the text language and the text direction as well.

You can also write just #set text(dir: rtl) but setting the language directly is better as other subsystems can also adjust themselves.

1 Like