TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Until now I was using XePersian package to typeset Persian articles, now I want insert some Persian word in an English document, what is minimum code to do that without using XePersian package?


% rendered as ک ت ا ب but should be rendered کتاب

share|improve this question
You should try the Polyglossia package. – Andrey Vihrov Jan 5 '13 at 10:54
@AndreyVihrov Thanks, can you please give me a minimum example? – PHPst Jan 18 '13 at 20:22
up vote 7 down vote accepted

Very simple. I do it like this:

\usepackage{bidi}% this should be the last package to load.
\newfontfamily\Kayhan[Script=Arabic]{XB Kayhan}% for example
\newenvironment{Farsi}%more human readable - other stuff can be added as well

Then just write farsi like this:

This is an english paragraph with some 
نوشته فارسی
that is added.
share|improve this answer

پاراگراف فارسی
This is a Persian word: \fa{سیب}. It means apple.

Use fa for word level and Fa for paragraph level of Persian contents.

share|improve this answer

Use XePersian: http://bay.uchicago.edu/tex-archive/macros/xetex/latex/xepersian/xepersian.pdf

1 \documentclass{minimal}
2 \usepackage{xepersian}
3 \usepackage{enumerate}
4 \settextfont{XB Niloofar}
5 \begin{document}
ﺍﯾﻦ ﻓﻘﻂ ﯾﮏ ﺁﺯﻣﺎﯾﺶ ﺍﺳﺖ 6
7 \end{document}
share|improve this answer
Some Persian in English document not vice versa!! – PHPst Nov 18 '13 at 6:20
Ya, That what I meant! It is not hard to align stuff to left or right ... – Daniel Nov 18 '13 at 20:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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