
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                          بـسـم‌الـلـه‌الـرحـمـن‌الـرحـیـم                                                
%                                          الـحـمـدلـلـه‌رب الـ‍‌عـ‍‌الـمـیـن                                                  
%                                               الـرحـمـن‌الـرحـیـم                                                       
%                                                 مـلـک یـوم‌الـدیـن                                                       
%                                         ایاک نـ‍‌عـبـد و ایاک نـسـتـ‍‌عـیـن                                                 
%                                           اهـدناالصـراط المـسـتـقـیـم                                                   
%                                         صـراط‌الـذیـن انـ‍‌عـمـت عـلـیـ‍‌هـم                                                 
%                                           غـیـرالـمـ‍‌غـضـوب عـلـیـ‍‌هـم                                                    
%                                                  ولاالـضالـیـن                                                          
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentstyle[12pt,farsi,supertab,ffancyhe]{fbook}
%\includeonly{chekide} % این دستور فقط همین فایل را اجرا می‌کند.
%\includeonly{mogha}
%\includeonly{fasle1}
%\includeonly{fasle2}
%\includeonly{fasle3}
%\includeonly{fasle4}
%\includeonly{fasle5}
%\includeonly{maraj}
%\includeonly{vajhe}
\documentclass{report}
\usepackage{xepersian}
\settextfont[Scale=1.1]{XB  Yas}%{XB Niloofar}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}


\settextfont[Scale=1]{Yas}%{XB Niloofar}%
 \setlatintextfont{Junicode}
% \renewcommand{\baselinestretch}{1.4}

\setdigitfont[Scale=1]{PGaramond}
 \defpersianfont\nastaliq[Scale=2]{IranNastaliq}
  \defpersianfont\xsols[Scale=1]{XB Sols}
    \defpersianfont\xtabriz[Scale=1]{XB Tabriz}
	\defpersianfont\xniloofar[Scale=1]{XB Niloofar}
	\defpersianfont\xkayhan[Scale=1]{XB Kayhan}
	\defpersianfont\xriyaz[Scale=1]{XB Riyaz}
	\defpersianfont\xroya[Scale=1]{XB Roya}
	\defpersianfont\xyas[Scale=1]{XB Yas}
	%\defpersianfont\xkoodak[Scale=1]{X Koodak}
	\defpersianfont\xyermook[Scale=1]{XM Yermook}
%	\defromanfont\xtir[Scale=1]{X Tir}
%	\defromanfont\xbsols[Scale=1]{XB Sols}
%%%%%%%%%%%%%%%%%%%
\textheight=22cm%تنظیم طول متن   
\textwidth=14cm%تنظیم عرض متن  
\topmargin=0.cm%تنظیم حاشیه بالای صفحه 
%\oddsidemargin=0.5cm%تنظیم حاشیه سمت چپ صفحه 
\headsep=1cm%     فاصله متن از سر برگ   
\footskip=1cm% فاصله شماره صفحه از انتهای متن 
%\hoffset=0.cm
%\headheight=0.cm% اجرا می‌شود fancyفاصله متن از عنوان هر صفحه وقتی که دستور 
%\evensidemargin=0.cm
%\date{ }%با نبودن این دستور تاریخ همان روز ثبت می‌شود  
%\setcounter{page}{empty}%تنظیم شماره صفحات                
%\pagestyle{fancy} اجرا می‌شود ffancyheوجود این دستور سبب می‌شود که دستور 
%\pagestyle{myheadings} وجود این دستور سبب می‌شود که شماره بالای هر صفحه بیافتد.


\newtheorem{thm}{{ قضیه}}[chapter]% [section] 
\newtheorem{lem}[thm]{{ لم}}
\newtheorem{col}[thm]{{ نتیجه}}
\newtheorem{dif}[thm]{{ تعریف}}
\newtheorem{rem}[thm]{{ تذکر}}
\newtheorem{exm}[thm]{{ مثال}}
\newtheorem{prp}[thm]{{ گزاره}}
\newenvironment{proof}{{ اثبات.}}{\hfill{$\Box$}}
%\input{amssym}
%\pagebreak
%[-10cm]
\renewcommand{\baselinestretch}{1.2}%فاصله بین خطوط‍
%\renewcommand{\chaptername}{بخش}

\pagestyle{myheadings}
\begin{document}
\tableofcontents
\markboth{{\rl{  اول }}}{$\hrulefill${\rl{ فارسی تک از رده خارج می شود؟ }}  }

\chapter{{\nastaliq فارسی تک از رده خارج می شود؟}}
 \section{ زی پرشین چیست ؟}
 \begin{RTL}
 \nastaliq
1 خداحافظ فارسی تک  \footnote{Farsitex}
\end{RTL}
\begin{RTL}
%\xsols
22 خداحافظ فارسی تک  
\end{RTL}
\begin{RTL}
\xtabriz
 3خداحافظ فارسی تک  
\end{RTL}
%%%%%%%%%%%%%%%%%%%
\begin{RTL}
\xniloofar{4 خداحافظ فارسی تک }\\ 
\xkayhan{5 خداحافظ فارسی تک }\\ 
\xriyaz{6 خداحافظ فارسی تک }\\ 
\xroya{7 خداحافظ فارسی تک }\\
\xyermook{8 خداحافظ فارسی تک }\\
\xyas{9 خداحافظ فارسی تک }\\
\end{RTL}
%%%%%%%%%%%%%%%%%%%%%%

 
  
 



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%
% از فایل پی دی اف mathmode
\makeatletter
\newcommand\foo{\mathop{\operator@font foo}\nolimits}
\makeatother
\[ \foo\limits_1^2 = x^2 \]
 %%%%%%%%%%%%%%%%%%%%%%%%%%
 % از فایل پی دی اف mathmode
 \begin{multline}
 A = \lim _{n\rightarrow \infty }\Delta x\left( a^{2}+\left( a^{2}+2a\Delta x
 +\left( \Delta x\right) ^{2}\right)\right.\\
+\left( a^{2}+2\cdot 2a\Delta x+2^{2}\left( \Delta x\right) ^{2}\right)\\
 +\left( a^{2}+2\cdot 3a\Delta x+3^{2}\left( \Delta x\right) ^{2}\right)\\
 + \ldots\\
 \left.+\left( a^{2}+2\cdot (n-1)a\Delta x +(n-1)^{2}\left( \Delta x\right) ^{2}\right) \right)\\
 = \frac{1}{3}\left( b^{3}-a^{3}\right)
 \end{multline}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % از فایل پی دی اف mathmode
 \begin{multline}
 \frac{1}{2}\Delta(f_{ij}f^{ij})= \left(\sum_{i<j}\chi_{ij}(\sigma_{i}-\sigma_{j})^{2}+f^{ij}\nabla_{j}\nabla_{i}(\Delta f)+\right.\\
 \left.+\nabla_{k}f_{ij}\nabla^{k}f^{ij}+ f^{ij}f^{k}\left[2\nabla_{i}R_{jk}-
 \nabla_{k}R_{ij}\right]\vphantom{\sum_{i<j}}\right)
 \end{multline}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 $\dfrac{1}{2}$    و      $\frac{1}{2}$  و    $\tfrac{2}{3}$
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
$$ \iint  f(x,y)dxdy=\iiint f$$

$$\int\int f(x,y)dxdy \int\int\int f$$

\end{document}
