How to write from right to left?

I am new to the typst and latex environment, how can I make the text appear in the pdf from right to left (I usually don’t type in English)

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

I also want to ask that how to write from up to down like traditional Chinese articles — where if arabic numbers and latin characters occurs, they will rotate a right angle clockwise.

Hello @RoseL and welcome! I think your post deserves a separate topic (I think this can be split by one of the mods).

Vertical typsetting is not supported yet for non latin scripts, see the tracking issue: Advanced East-Asian layout features · Issue #193 · typst/typst · GitHub.