%این استایل پایان نامه دانشگاه ولی عصر (عج) رفسنجان است. برای استفاده از تک لایو ۲۰۱۱ بروز شده (حداقل تا آذرماه ۱۳۹۰) استفاده کنید. برای اجرا در تک لایو ۲۰۱۱ کنفرانس ریاضی رفسنجان دستورات تعریف فونت متن و فونت اعدا را فعال کنید.
%سید احمد موسوی 


\documentclass[a4paper,12pt,oneside,msc]{report}
\usepackage{graphicx} % inserting images
\usepackage{hyperref} % PDF links
\usepackage{setspace} % for switching between double/single space in document
\usepackage{fancyhdr} % package for changing Headings style
\usepackage{amsthm,amsfonts,amssymb,amsmath}
% setting the margins of page
\usepackage[top=3cm,right=4cm,bottom=3cm,left=3cm]{geometry}      
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
\usepackage{xepersian}



% فولدر شامل تصاویر را برای تک شناسایی می کند.
\graphicspath{{images/}}

% شماره صفحات را به بالا می برد.
\pagestyle{fancy}
\cfoot{}
\lhead{\thepage}

% دستورات تعریف فونت که در صورت نیاز می توانند تعویض گردند. 
%\settextfont[Scale=1.1]{XB Niloofar}
%\setdigitfont{XB Zar}
\setlatintextfont{Times New Roman}
\defpersianfont\nast[Scale=3.5]{IranNastaliq} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%شماره پانویس را در هر صفحه از ۱ شروع می کند. 
\makeatletter\@addtoreset{footnote}{page}\makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\baselinestretch}{2.0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\renewcommand{\chaptermark}[1]{%
        \markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
        \markright{\thesection\ #1}}
\fancyhf{} % delete current header and footer
\fancyhead[RO]{\slshape\leftmark}
\fancyhead[LE]{\slshape\rightmark}
\fancyhead[LO,RE]{\slshape \thepage}
\renewcommand{\headrulewidth}{1pt}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{قضیه}[section]
\newtheorem{lemma}[theorem]{لم}
\newtheorem{proposition}[theorem]{گزاره}
\newtheorem{corollary}[theorem]{نتیجه}
\renewcommand\proofname{برهان}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{تعریف}
\newtheorem{example}[theorem]{مثال}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{ملاحظه}

%\renewcommand{\newtheorem}{\@ifstar{\@xnthm *}{\@xnthm \relax}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\} 
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\def\@abjad#1{\ifcase#1\or الفـ\or ب\or ج\or د\or ه\or
و\or ز\or ح\or ط\or ی\or ک\or ل\or م\or ن\or س\or ع\or ف\or ص\or غ\or
ر\or ش\or ت\or ث\else\@ctrerr\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\input{jeld_info}

\begin{document}
\pagenumbering{abjad}
\include{inthenameofGod}
\include{cover_fa}
\include{taeid}
\include{dedication}
\include{acknowledgment}
\include{abstract_fa}
\include{preface}


\tableofcontents
%\listoffigures
%\listoftables

% insert each of your chapters with a \inlcude{filename} command as below
%\doublespacing

\include{chap1}
\include{chap2}
\include{chap3}
\include{chap4}
\include{chap5}
% -----------------------------------------------------------------------

% If do not have appendix then comment following 3 lines
\appendix
\include{peyvast1}
\include{peyvast2}
% -------------------------------------------------------

%\singlespacing
\include{dic-en2fa}
\include{dic-fa2en}
\include{references}
\include{abstract_en}
\include{cover_en}

\end{document}
