% نمونه  پایان‌نامه آماده شده با فایل استایل دانشگاه خوارزمی.
% مجید محمدزاده،   mohammadzadeh28@gmail.com
\documentclass[11pt,twoside]{report} % twoside Formats for printing on both sides of paper
\usepackage{graphicx} % inserting images
%----------------------------------------------------
%How to change the color of Table of Contents .
%\usepackage{hyperref} % PDF links
%\hypersetup{
%    colorlinks=true,% Links will be coloured, the default colour is red
%    linkcolor=blue,% Internal links, those generated by cross-referenced elements, are displayed in blue.
%    filecolor=magenta,% Links to local files will be shown in magenta colour (see linking local files).     
%    urlcolor=cyan% Links to web sites are set to cyan colour (see linking web addresses).
%}
\usepackage{setspace} % for switching between double/single space in document
\usepackage{fancyhdr} % package for changing Headings style
%----------------------------------------------------------
% برای تایپ فرمولهای ریاضی، این سه بسته، حتماً باید فراخوانی شود. 
\usepackage{amsthm,amssymb,amsmath}
\usepackage[titletoc]{appendix}% http://ctan.org/pkg/appendices

%\usepackage[margin=2.4cm]{geometry}
\usepackage[top=3cm,bottom=2cm,left=2.5cm,right=3.1cm,asymmetric]{geometry}
 
 %.............................
 \usepackage{makeidx} % For index generation
 
%----------------------------------------------------------
% جهت افزودن مرجع به فهرست مطالب کافی است که بستهٔ زیر را اضافه کنیم.
%\usepackage[nottoc,numbib]{tocbibind}
% برای حذف شمارهٔ فصل از مراجع کافی است که numbib را از دستور بالايی حذف نموده و به‌صورت زیر دستور بالايی را وارد کنیم.
%\usepackage[nottoc]{tocbibind}
\usepackage{tocbibind} %Adds "References" to the table of contents
\usepackage{hyperref}%The package hyperref provides LaTeX the ability to create hyperlinks within the document
\makeindex

%----------------------------------------------------------
% بسته‌‌ای برای نوشتن پانوشت دو طرفه. توجه کنید که نیازی به فراخوانی بستهٔ زی‌پرشین نیست.
\usepackage[extrafootnotefeatures]{xepersian}
%\RTLcolumnfootnotes
%\fourcolumnfootnotes
%\twocolumnfootnotes
\sixcolumnfootnotes
%---------------------------------
\settextfont[Scale=1.1]{Yas}
%\settextfont[Scale=1.1]{Homa}
\setdigitfont[Scale=1.]{Yas}
%--------------------------------------------------------------
% setting the margins of page
% بسته‌ای برای تنطیم حاشیه‌های بالا، پایین، چپ و راست صفحه               
%\oddsidemargin=0mm
%\evensidemargin=0mm
%\textwidth=16cm
%\textheight=23.8cm
%\topmargin=-1.6cm
\headheight=22pt
\headsep=19pt
%-------------------------------------------------------------
 % دستوری برای تعریف واژه‌نامه انگلیسی به فارسی
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}

\newtheorem{theorem}{قضیه}[section]
\newtheorem{Ques}[theorem]{سؤال باز}
\newtheorem{pro}[theorem]{گزاره}
\newtheorem{lem}[theorem]{لم}
\newtheorem{corollary}[theorem]{نتیجه}
\newtheorem{conj}[theorem]{Conjecture}
\newtheorem{definition}{تعریف}[section]   % new
\newtheorem{example}[theorem]{مثال}
\newtheorem{rem}[theorem]{تذکر}
\renewcommand\proof{\textbf{برهان:}}

%-----------------------------------------------------------
\newcommand{\Q}{\mathbb{Q}}                % for ratinal number
\newcommand{\R}{\mathbb{R}}                % for Real numbers
\newcommand{\Z}{\mathbb{Z}}                % for Integer number
\newcommand{\nls}{\textbf{n}ls}
%----------------------------------------------------------
% برای تبدیل چکیده به خلاصه
%\renewcommand{\abstract}{خلاصه} 
% برای تبدیل کتابنامه به مراجع
\renewcommand{\bibname}{مراجع}
%-----------------------------------------
% تعریف قلم‌های فارسی و انگلیسی برای استفاده در بعضی از قسمت‌های متن
%\defpersianfont\nastaliq[Scale=2]{IranNastaliq}
%\defpersianfont\yas[Scale=2]{Yas}
%-----------------------------------------
% tell tex engine address of folder containing your pictures
\graphicspath{{images}}
% commands to print the page number in header
\pagestyle{fancy}
\fancyhf{} 
\fancyhead[OL,EL]{\thepage}
\fancyhead[OR]{\small\rightmark}
\fancyhead[ER]{\small\leftmark}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\ #1}{}}

%\input{jeld_info}

\begin{document}
%\maketitle %This option is not necessary for the book and report classes
%دستوری برای تعیین  فاصله بین خطوط، همین مقدار است.
\baselineskip=1cm
%--------------------------------------------------------------------
%\include{besm}
% وارد کردن فایلهای تقدیم به افراد، چکیده، فارسی، اظهارنامه و مقدمه:
%\include{jeld_fa}
\pagenumbering{harfi} %Roman page number for toc(table of content
%\include{taghdim_afrad}
%\include{abstract_fa}
 %\include{ezhar_name}
%\include{intro}
% دستوری برای ظاهر شدن فهرست مطالب
%\tableofcontents % Print table of contents
% insert each of your chapters with a \inlcude{filename} command as below
\include{chap1}
%\include{chap2}
%\include{chap3}
%\include{chap4}
%\include{chap5}
% -----------------------------------------------------------------------
% If do not have appendix then comment following lines
%\begin{large}
%\begin{appendices}
%\appendix
%\include{peyvast1}
%\include{peyvast2}
%\end{appendices}
%\end{large}
% -------------------------------------------------------
\singlespacing

% ومراجع، واژه‌نامهٔ انگلیسی به‌فارسی و فارسی به‌انگلیسی.
\include{reference}
%\include{vaje_en2fa}
%\include{vaje_fa2en}

% چکیدهٔ انگلیسی.
\addcontentsline{toc}{chapter}{\numberline{}  چکیده }

\clearpage
\phantomsection
%\printindex
%\include{abstract_en}
% جلد انگلیسی.
%\include{jeld_en_r}
%\include{jeld_en}
\end{document}