\documentclass[a4paper,12pt]{xepersian-thesis}
\usepackage{graphicx}
%\usepackage{ieeetran}

%*********
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fancyhdr}
\usepackage{tabulary}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{epic,eepic}
\usepackage{layout}
\usepackage[numbers, sort&compress]{natbib}
\usepackage[ruled]{algorithm2e}
\SetAlgorithmName{الگوریتم}{لیست الگوریتم‌ها}

\pgfplotsset{compat=newest}
%*********>
\usepackage[margin=10mm,font={small},labelfont={small,bf},labelsep=space,skip=10pt]{caption}


\usepackage{xepersian}
\settextfont[Scale=1.1]{XB Zar}%B Nazanin
\setlatintextfont[Scale=1]{Times New Roman}
%\setdigitfont[Scale=1.1]{XB Zar}
%*******<
%\usepackage[margin=10mm,font={small},labelfont={small,bf},labelsep=space,skip=10pt]{caption}

\renewcommand{\textfraction}{0}
\renewcommand{\topfraction}{1}
\renewcommand{\floatsep}{1pt}
\renewcommand{\textfloatsep}{1pt}

\linespread{1.4}
\setlength{\oddsidemargin}{20pt}%31
\setlength{\textwidth}{400pt}%390
\setlength{\topmargin}{13pt}%20
\setlength{\textheight}{620pt}%392
%\pagestyle{headings}


\pagestyle{fancy}

\renewcommand{\chaptermark}[1]{\markboth{\small\chaptername{} \thechapter: #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\small\thesection : #1}}

\fancyhf{}
\fancyhf[OLH]{\rightmark}
\fancyhf[ERH]{\leftmark}
\fancyhf[ORH,ELH]{\thepage}

%\renewcommand{\abstractname}{}

\defpersianfont\iranic[Scale=1]{XB Zar Oblique}

\newtheorem{thm}{قضیه}[section]
\newtheorem{cor}[thm]{نتیجه}
\newtheorem{lem}[thm]{لم}
\newtheorem{pro}[thm]{گزاره}

%\theoremstyle{definition}
\newtheorem{dfn}[thm]{تعریف}

%\theoremstyle{remark}
\newtheorem{rem}[thm]{یاد‌آوری}


%\defpersianfont\NazaninBold[Scale=1]{B Nazanin Bold}
%\defpersianfont\AbstractBold[Scale=.92]{B Nazanin Bold}

%***************

\newtheoremstyle{example}{\topsep}{\topsep}%
     {}%         Body font
     {}%         Indent amount (empty = no indent, \parindent =para indent)
     {\bfseries}% Thm head font
     {}%        Punctuation after thm head
     {\newline}%     Space after thm head (\newline = linebreak)
     {\thmname{#1}\thmnumber{ #2}\thmnote{ #3}}%         Thm head spec

 \theoremstyle{example}
 \newtheorem{example}{مثال}[section]

%****************
%********
%\DeclareMathOperator{\lder}{L}
%\DeclareMathOperator{\span}{span}

%*******>


%\defpersianfont\NazaninBold[Scale=1]{B Nazanin Bold}
%\defpersianfont\AbstractBold[Scale=.92]{B Nazanin Bold}


% for subsubsection
%\setcounter{secnumdepth}{3}
%\setcounter{secnumdepth}{3}

%\XeTeXinterchartokenstate=0
%*******>

\DeclareMathOperator{\svd}{svd}
\newcommand{\abs}[1]{\lvert #1 \rvert}
\newcommand{\norm}[1]{\lVert #1 \rVert}


\begin{document}
\title{کنترل سيستم‌های هیبرید با زیرسیستم‌های غیرخطی افاین و کلیدزنی مقید}
\author{مجتبی برخورداری یزدی}
\degree{دکترا در رشته مهندسی برق گرایش کنترل}
\supervisor{دکتر محمدرضا جاهدمطلق}
\department{مهندسی برق}
\university{علم و صنعت ایران}
\city{تهران}
\thesisdate{\today}
\maketitle
\begin{acknowledgementpage}
تشکر
\end{acknowledgementpage}
\begin{abstractpage}
 چکیده
\keywords{.سیستم‌های هیبرید، سیستم‌های غیرخطی سوئیچ‌شونده، سيستم‌های خطی سوئیچ‌شونده، کليدزنی، پایدارسازی}
\end{abstractpage}
\tableofcontents
\listoffigures
\listoftables



\chapter{امتحان خروجی فایل tikz}
در اینجا یک نمودار رسم شده:
\begin{figure}[tb]
 \begin{center}
 \input{tkzsim123mode.tikz}
\caption{سیگنال کلیدزنی برای شبیه‌سازی‌های اول، دوم و سوم.}
\label{fsim123mode}
\end{center}
\end{figure}


\end{document}


