I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
when I'm trying to load xepersian
LaTeX.
but I do not know how can I change pdfLaTeX to XeLaTeX.
This is the second edit of my question .
the code is :
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-bezier}
\usepackage{xepersian}
\settextfont{XB Zar}
\setlatintextfont{Junicode}
\setdigitfont{XB Zar}
\begin{document}
!سلام دنیا
\begin{pspicture}(3,3)
\psbcurve(1,2)(5,7)(2,2)(12,3)
\end{pspicture}
\end{document}
but the output does not include the shapes .
Best Answer
Added Update to the existing answer:
For those using Texmaker Version's > 3.5.1
From Texmaker Version
3.5.1
onwardsxelatex
support has been added . Download Latest version of Texmaker: 4.1.1 dated Jan 3 2014 that hasxelatex
support in standard commands like shown below.Hence there might be no need of Configuring Texmaker for xelatex with `User Commands.
Note: From Texmaker Version
4.1
onwards LuaLaTeX support also has been addedFor those using Texmaker Version's <
3.5
You will have to define a custom command in Texmaker - it's fairly simple.
Open the User → User Commands menu and select Edit User Commands. This will bring up a dialog box like so:
Add a menu item name and set the command to
xelatex %
Hit okay and you will now be able to run the newly created command from the User → User Commands menu or by hitting
alt-shift-Fn
where n is the number of the command. So, for instance,alt-shift-F1
will run the command I have defined here. This may be Windows specific. It will also appear on the build menu in the toolbar, underneath everything else.Hope this helps.