I want to write some Persian text in Texstudio. Which package should I use? I've heard about xepersian but I don't know how to use it. Any help would be appreciated.

\settextfont{XB Roya} 
  • Welcome to TeX.SX! I guess, this has nothing to do with TeXStudio. Please show us something, you already have tried. We do not want to write everything from scratch. We don't know anything about your documentclass, how you compile it, and so on... Here are several threats on xepersian on this side. Please read them and tell us, what you don't understand. Did you run your code with XeLaTeX? – LaRiFaRi Jun 27 '14 at 15:37
  • \documentclass{article} \usepackage{xepersian} \settextfont{XB Roya} \begin{document} سلام! \end{document} – zahraesb Jun 27 '14 at 16:05
  • this is the code i wrote but an error occurs...what is xetex? – zahraesb Jun 27 '14 at 16:05
  • Are you sure you have that font properly installed? I don’t have it, but your example works for me when I substitute IranNastaliq. – Thérèse Jun 27 '14 at 17:06
  • See tex.stackexchange.com/q/3393/7883 for your question, “What is xetex?” Without xetex, your example cannot work. – Thérèse Jun 27 '14 at 17:35

The Xepersian documents must be processed by xelatex. In TeXstudio choose Tools/Commands/XeLaTeX and then press F7 for viewing the output.

It is supposed that the XB Roya font which is mentioned in your example is installed in your system. X Series 2 fonts can be downloaded from here.

  • hi thanks for your answer.i dont find the "commands" under Tools??please help me – zahraesb Mar 24 '15 at 19:10
  • 1
    @ zahraesb In Options/Configure TeXstudio/Build/Meta Commands set XeLaTeX as default compiler. – Mahdi Apr 28 '15 at 14:05

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.