6

I'm creating my document in XeLaTeX. I type in persian with XePersian package. (a right to left language). By default it creates tables in right-to-left (RTL) direction. How can I change this, for my totally English tables to left-to-right (LTR)?

  • By default in what language does it do this? – musarithmia Dec 12 '14 at 20:07
  • I add some new information in my question. – Seyed Amir Mousavian Dec 12 '14 at 20:22
6

It looks like surrounding the English text in the xepersian package's latin environment is the solution.

Disclaimer: I don't know this language, but I copied the text below from the first page of the xepersian documentation. I used the Nazli font because it is freely available through my Debian distribution.

\documentclass{article}
\usepackage{xepersian}
\settextfont{Nazli}

\begin{document}
‫این فقط یک مایش است‬ 

\begin{latin}
  \begin{tabular}{ll}
  One   & Two\\
  Three & Four\\
  \end{tabular}
\end{latin}

\end{document}

enter image description here

  • For Debian users, Nazli comes in the package fonts-farsiweb. – musarithmia Dec 12 '14 at 21:15

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.