\documentclass[11pt, B5paper]{book}
\usepackage[paperheight=24.5cm,paperwidth=17cm,top=3cm,bottom=3cm,inner=3cm,
outer=2cm]{geometry}
\usepackage{graphicx}
\usepackage[skip=0pt]{caption}
\usepackage{fancyhdr}
\setcounter{secnumdepth}{5}
\usepackage{upgreek}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{appendix}
\usepackage{tikz,pgfplots}
\usepackage{tikz-3dplot}
\usetikzlibrary{calc}
\usepackage{import}	
\usepackage{relsize}
\usepackage{zref-perpage}
\usepackage{etoolbox}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered]
\tikzstyle{arrow} = [thick,->,>=stealth]
\zmakeperpage{footnote}
\newtheorem{example}{مثال}
\makeatletter
\@addtoreset{example}{chapter}
\makeatother
\usepackage{amssymb} % برای نوشتن نماد اعداد حقیقی
\usepackage{xepersian}
\settextfont{XB Zar}
\setdigitfont{XB  Zar}%   فونت اعداد در فرمولهای ریاضی
\newtheorem{ghaz}{قضیه}
\let\olddefinitio\ghaz
\renewcommand{\ghaz}{\olddefinitio\normalfont}
\makeatletter
\@addtoreset{ghaz}{chapter}
\makeatother

\theoremstyle{definition}
\newtheorem{deff}{تعریف}
\let\olddefinition\deff
\renewcommand{\deff}{\olddefinition\normalfont}
\makeatletter

\@addtoreset{deff}{chapter}
\makeatother
\newcommand{\myfootnote}[1]{\hspace{-0.2cm}
\begingroup
\renewcommand{\thefootnote}{\arabic{footnote}}
\footnotemark \renewcommand{\thefootnote}{}
\hspace{-0.2cm}\footnotetext{\arabic{footnote}- #1}
\endgroup}

\newcommand{\myLTRfootnote}[1]{\hspace{-0.2cm}
\begingroup
\renewcommand{\thefootnote}{\arabic{footnote}}
\footnotemark \renewcommand{\thefootnote}{}
\hspace{-0.2cm}\LTRfootnotetext{\arabic{footnote}- #1}
\endgroup}

\newenvironment{dedication}
  {\clearpage           % we want a new page
   \thispagestyle{empty}% no header and footer
   \vspace*{\stretch{1}}% some space at the top 
   \itshape             % the text is in italics
   \raggedleft          % flush to the right margin
  }
  {\par % end the paragraph
   \vspace{\stretch{3}} % space at bottom is three times that at the top
   \clearpage           % finish off the page
  }


\setlength{\parindent}{1em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.25}

\title{ الگوسازی، حل و برآورد الگوهای ‪\lr{DSGE}‬‬‬‬ در نرم‌افزار ‬‬‬‬‬‬‬‬‪\lr{Dynare}‬‬‬‬‬‬ (مبتنی بر الگوسازی اقتصاد ایران)
‬‬‬‬‬  }


\begin{document}
\frontmatter
\maketitle

\tableofcontents
\cleardoublepage
\mainmatter


\input{NewKeynesianModel.tex}

\input{NewKeynesianAdv.tex}


















\end{document}