3

How can i use \rput for farsi? for example, I write this:

\documentclass[a4paper,10pt]{article}
\usepackage{pstricks}
\usepackage{tikz}

\usepackage{xepersian}
\settextfont[Scale=1.5]{IRYakout}
\begin{document} 
\begin{pspicture}(0, 0)
\psset{unit=1cm}
 \rput(10,0){حالت چطوره؟ }
 \end{pspicture}
\end{document} 

and I get:

چطوره؟ حالت
  • Please don't post code fragments. Instead put this code into a minimal compilable document that shows the problem. – Alan Munn Apr 30 '17 at 15:08
1

Define your own \RPut:

\documentclass[a4paper,10pt]{article}
\usepackage{pstricks}
\usepackage{xepersian}
\settextfont[Scale=1.5]{IRYakout.ttf}
\def\RPut(#1)#2{\rput(#1){\rl{#2}}}

\begin{document} 
    \begin{pspicture}(0, 0)
    \psset{unit=1cm}
    \RPut(10,0){حالت چطوره؟ }
    \end{pspicture}
\end{document} 

enter image description here

| improve this answer | |
1

Put the text into an \rl macro. (Font is different in the image, as I don't have your font installed.)

\documentclass[a4paper,10pt]{article}
\usepackage{pstricks}
\usepackage{tikz}

\usepackage{xepersian}
\settextfont[Scale=1.5]{IRYakout}
\begin{document} 
\begin{pspicture}(0, 0)
\psset{unit=1cm}
 \rput(10,0){\rl{حالت چطوره؟ }}
 \end{pspicture}
\end{document} 

output of code

| improve this answer | |

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.