 \documentclass[a4paper,12pt]{report}
\usepackage{graphicx} % inserting images
%\baselineskip=1cm
\linespread{2}
%فاصله بین خطوط دوبرابر میشود
\usepackage{amsmath}
\usepackage{amssymb}
%این بسته جهت استفاده از سمبل های ریاضی به کار گرفته شده است.
\usepackage{mathrsfs}
%این بسته جهت به کار گیری شیوه ی نوشتاری ریاضی به کار بسته شده است.
\usepackage[onehalfspacing]{setspace} 
% for switching between double/single space in document
%\linespread{2}
\usepackage{fancyhdr} % package for changing Headings style
% setting the margins of page
\usepackage[top=3.5cm,right=4cm,bottom=3cm,left=2cm]{geometry}   
\footskip=1.5cm% فاصله شماره صفحه از انتهای متن 

\usepackage[numbers,sort&compress]{natbib}  
%\usepackage[nonamebreak,square,numbers]{natbib}
\usepackage{perpage}%  زیرنویس هر صفحه از یک شروع شود
\MakePerPage{footnote} 
     % زیرنویس شکلها کوچکتر شود   
\usepackage{hyperref} % PDF links
\usepackage{xepersian}
\usepackage{caption}
\captionsetup{font=small,labelfont=bf}
% commands related to XePersian package
%\settextfont[Scale=1.4]{HM_XNiloofar }
\settextfont[Scale=1.16]{XB Niloofar}
\setlatintextfont[Scale=1.088]{Times New Roman}
\setdigitfont{Yas}


% \DeclareMathSizes{10}{9}{7}{5}
%\setlatintextfont{LinLibertine}
% -------------------------------------
% tell tex engine address of folder containing your pictures
\graphicspath{{images/}}

% commands to print the page number in header
\pagestyle{plain}
\cfoot{\thepage}
%\lhead{\thepage}


این یک متن نمونه است



\end{document}
