\documentclass[11pt,oneside]{bidipresentation}
%\pagestyle{pres}




%\usepackage[pagebackref=false]{hyperref}

\usepackage{tikz}\usetikzlibrary{shapes,snakes}
\usepackage{pstricks}
%\hypersetup{pdfborder={0 0 0}, colorlinks = false}
%\usepackage{eso-pic}
\usepackage{multicol}
\usepackage{amsmath,amssymb}
\usepackage{sidebarbidipres}
\usepackage{xepersian}
\usepackage{perpage}\MakePerPage[1]{footnote}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand\tableofcontents{%
\begin{staticcontents*}{sidebar}
    \@starttoc{toc}%
\end{staticcontents*}
    }
\def\@sect#1#2#3#4#5#6[#7]#8{%
  \ifnum #2>\c@secnumdepth
    \let\@svsec\@empty
  \else
    \refstepcounter{#1}%
    \protected@edef\@svsec{\@seccntformat{#1}\relax}%
  \fi
  \@tempskipa #5\relax
  \ifdim \@tempskipa>\z@
    \begingroup
      #6{%
        \@hangfrom{\hskip #3\relax\@svsec}%
          \interlinepenalty \@M #8\@@par}%
    \endgroup
    \csname #1mark\endcsname{#7}%
    \addcontentsline{toc}{#1}{%
      #7}%
  \else
    \def\@svsechd{%
      #6{\hskip #3\relax
      \@svsec #8}%
      \csname #1mark\endcsname{#7}%
      \addcontentsline{toc}{#1}{%
        #7}}%
  \fi
  \@xsect{#5}}
\renewcommand*\l@section[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty\@secpenalty
    \addvspace{0.1em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
      \hskip -\if@RTL\rightskip\else\leftskip\fi
      \footnotesize#1\hfill\nobreak\par
    \endgroup
  \fi}
\makeatother


\setstaticframe*{sidebar}{valign=g}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\linespread{2}
\pagestyle{pres}

%%رنگ​ها
\sidebartc{cmyk}{1,1,1,0}
\linktc{cmyk}{0,0,0,0}
\rtopbarc{cmyk}{0.1,0.1,0,0}
\ltopbarc{cmyk}{1,1,0,0}
\ltopbartc{cmyk}{0.1,0.1,0,0}
\rbotbarc{cmyk}{0.1,0.1,0,0}
\lbotbarc{cmyk}{1,1,0,0}
\lbotbartc{cmyk}{0,0,0.1,0}




%\settextfont{DejaVu Sans}
%\DefaultMathsDigits
%\setmathfont[Scale=5]
\settextfont[Scale=1.37]{XB Niloofar}%{Nazanin 2}
\setlatintextfont[Scale=1.1]{Times New Roman}%{XB Zar}
\setdigitfont[Scale=1.2]{PGaramond}%{Nazanin 2}
\defpersianfont\titr[Scale=1.1]{XB Zar}%{Titr Farsi}
\defpersianfont\zar[Scale=1]{XB Zar}
\defpersianfont\naz[Scale=1.37]{XB Zar}%{XB Niloofar}
\defpersianfont\nazb[Scale=1.37]{XB Zar}%{XB Niloofar}
\deflatinfont\times[Scale=1.1]{Times New Roman}
%\setlatintextfont[Scale=6]{Times New Roman}
%\usepackage{perpage}\MakePerPage[1]{footnote}

%%%%%%%%%%%%%%%%%% هادی صفی اقدم%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% #1 عنوان کادر
%#2 متن اسلاید
%#3 عکس پس زمینه اسلاید به صورت مثلا gra.png
\tikzstyle{mybox} = [draw=red!30, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitle} =[fill=lightgray, text=red]
%%%%%%%%%
 \newcommand{\myslide}[3]{\begin{plainslide}
\begin{tikzpicture}\node [mybox] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#2}
  \end{minipage}};\node[fancytitle, left=10pt] at (box.north east) {\hboxR{{ \Large{#1}}}};\end{tikzpicture} 
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{#3}}}    \end{plainslide}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط تعریف
\tikzstyle{mytarif} = [draw=blue, fill=none, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitletarif} =[fill=blue!20, text=blue]
%%%%%%%
 \newcommand{\mytarif}[1]{
\begin{tikzpicture}\node [mytarif] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitletarif, left=10pt] at (box.north east) {\hboxR{{\Large{تعریف }}}};\end{tikzpicture} 
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{a2.jpg}}} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط مراجع
\tikzstyle{mymarga} = [draw=blue!80, fill=none, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemarga} =[fill=blue!20, text=blue]
%%%%%%%
 \newcommand{\mymarga}[1]{
\begin{tikzpicture}\node [mymarga] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlemarga, left=10pt] at (box.north east) {\hboxR{{\Large{مرجع }}}};\end{tikzpicture} 
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط مثال
\tikzstyle{mymesal} = [draw=red, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemesal} =[fill=red!20, text=red]
%%%%%%%%%
 \newcommand{\mymesal}[1]{
\begin{tikzpicture}\node [mymesal] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlemesal, left=10pt] at (box.north east) {\hboxR{{\Large{مثال }}}};\end{tikzpicture} 
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط بدون نام
\tikzstyle{mymohit} = [draw=violet, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemohit} =[fill=violet!20, text=violet]
%%%%%%%
 \newcommand{\mymohit}[1]{
\begin{tikzpicture}\node [mymohit] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlemohit, left=10pt] at (box.north east) {\hboxR{{\Large{ }}}};\end{tikzpicture} 
\AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% محیط نتیجه
%1 متن اسلاید
\tikzstyle{mynatijeh} = [draw=drab, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlenatijeh} =[fill=drab!20, text=drab]
%%%%%%%
 \newcommand{\mynatijeh}[1]{
\begin{tikzpicture}\node [mynatijeh] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlenatijeh, left=10pt] at (box.north east) {\hboxR{{\Large{نتیجه }}}};\end{tikzpicture} 
   \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط اثبات
%1 متن اسلاید
\tikzstyle{myesbat} = [draw=red, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitleesbat} =[fill=green!20, text=green]
%%%%%%%
 \newcommand{\myesbat}[1]{
\begin{tikzpicture}\node [myesbat] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitleesbat, left=10pt] at (box.north east) {\hboxR{{\Large{اثبات }}}};\end{tikzpicture} 
   \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط لم
%1 متن اسلاید
\tikzstyle{mylem} = [draw=pink, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlelem} =[fill=pink!20, text=pink]
%%%%%%%
 \newcommand{\mylem}[1]{
\begin{tikzpicture}\node [mylem] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlelem, left=10pt] at (box.north east) 
  {\hboxR{{\Large{لم }}}};\end{tikzpicture} 
  %%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%5
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط تمرین
%1 متن اسلاید
\tikzstyle{mytamrin} = [draw=orange, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitletamrin} =[fill=orange!20, text=orange]
%%%%%%%
 \newcommand{\mytamrin}[1]{
\begin{tikzpicture}\node [mytamrin] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitletamrin, left=10pt] at (box.north east) {\hboxR{{\Large{تمرین }}}};\end{tikzpicture} 
   \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط نکته
%1 متن اسلاید
\tikzstyle{mynokteh} = [draw=grassy  , fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlenokteh} =[fill=grassy !40, text=grassy  ]
%%%%%%%
 \newcommand{\mynokteh}[1]{
\begin{tikzpicture}\node [mynokteh] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlenokteh, left=10pt] at (box.north east) {\hboxR{{\Large{نکته }}}};\end{tikzpicture} 
   \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط مسأله
%1 متن اسلاید
\tikzstyle{mymasaleh} = [draw=royal blue, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemasaleh} =[fill=royal blue!20, text=royal blue]
%%%%%%%
 \newcommand{\mymasaleh}[1]{
\begin{tikzpicture}\node [mymasaleh] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitlemasaleh, left=10pt] at (box.north east) {\hboxR{{\Large{مسأله }}}};\end{tikzpicture} 
   \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%
% محیط قضیه
%1 متن اسلاید
\tikzstyle{myghazye} = [draw=yellow, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitleghazye} =[fill=yellow!20, text=royal blue]
%%%%%%%
 \newcommand{\myghazye}[1]{
\begin{tikzpicture}\node [myghazye] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
  \end{minipage}};\node[fancytitleghazye, left=10pt] at (box.north east) {\hboxR{{\Large{قضیه }}}};\end{tikzpicture} 
 \AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}} 
}

%\def\thefootnote{\fnsymbol{footnote}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%% هادی صفی اقدم%%%%%%%%%%%
\title{  چشم و مدل‌های ریاضی آن} 
\distance{1}
\begin{document}
%%محتویات سایدبار
\begin{staticcontents*}{sidebar}
	\hspace{3mm}\includegraphics[width=2cm]{logo.png}% 
	\begin{center}
		\color{sidebar-text}
		\begin{footnotesize}
		\bfseries\makeatletter\@title\makeatother
		\vskip 5mm
		%\rm\makeatletter\@author\makeatother
		\end{footnotesize}
	\end{center}
	\begin{center}
		\begin{small}
		\vskip -1cm
%		\makeatletter\@starttoc{sdb}\makeatother
\distance{2}
		\hyperref[sec:Intro]{\scriptsize ساختمان چشم}
		\\
	\vspace{1mm}
	\distance{2}
        \hyperref[sec:section1]{\scriptsize آشنایی با برخی از بیماری‌های چشم }
        \\
	\vspace{1mm}
	\distance{2}
		\hyperref[sec:section2]{\scriptsize  بیماری‌هایی که می‌توان با لیزر درمان کرد}
		\\
	\vspace{2mm}
	\distance{2}
		\hyperref[sec:section3]{\scriptsize  بررسی انواع مدل‌های چشم}
	\\
	   % \\
	   % \vspace{1mm}
	  %  \distance{2}
	%	\hyperref[sec:section4]{\scriptsize  جواب تابع گرین برای معادله انتقال گرمای نوین}
    % \\
%		\hyperref[sec:section4]{قضایا}
%	    \\
%		\hyperref[sec:section5]{کاربردها}
%		\\
	 %\hyperref[sec:Conc]{ \scriptsize   نتایج }
 %  	\\
   \vspace{2mm}
   \distance{4}
	   \hyperref[sec:Conc1]{ \scriptsize مراجع }
	    	\\
	 \hyperref[sec:Conc2]{}
	\vspace{1.5cm}
		\end{small}		
	\end{center}
\end{staticcontents*}
\begin{plainslide}
\AddToShipoutPicture*{%
\put(-512,0){{\includegraphics[keepaspectratio=false,height=\paperheight ,width=194mm]{side.jpg}}}%\reflectbox 512
}
%\AddToShipoutPicture*{%
%\put(120,0){\includegraphics[angle=180,keepaspectratio=false,height=\paperheight ,width=130mm]{side2.jpg}}%
%}
%\distance{1}
%\begin{plainslide}
%\begin{center}
%\vspace{-2.5cm}
%\includegraphics[height=5cm]{}
%\centerline{\includegraphics[width=19.5cm]{11.jpg}}
%\begin{LARGE}
%\caption{"با تشکر از توجه شما"

%\end{LARGE}
%}\label{fe2}
%\end{center}
%\begin{plainslide}
%\centerline{\includegraphics[width=20cm]{11.jpg}}
%\end{plainslide}
%\AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{a2.jpg}}} 
\centering% \LARGE
\centerline{\includegraphics[width=10cm]{11.jpg}}
%\textbf{بِسمِ اللّٰهِ الرَّحمٰنِ الرَّحیمِ}\\
\distance{1}
%\hspace{3mm}\includegraphics[width=2cm]{logo.png}\\
%\distance{2}
\makeatletter\@author\makeatother\\[1ex]سمینار دوره کارشناسی ارشد\\
\distance{2}
\color{black}{\huge\titr{\makeatletter\@title\makeatother}}
\distance{2}
\color{black}{\huge\logr{\makeatletter\@logo\makeatother}}
\color{black}\rm\large

استاد راهنما:
\textbf{ دکتر سید حجت اله مؤمنی ماسوله }\\
\distance{1}
ارائه دهنده:
\textbf{خدیجه نورالدین موسی}\\
\distance{3}
\textbf{ تیر 1393}\\
%ableofcontents
\end{plainslide}
\myslide{}{
\textbf{فهرست:}   
 \begin{itemize}                                                                       
 \item 
ساختمان چشم
\item 
آشنایی با برخی از بیماری‌های چشم
 \item 
 بیماری‌هایی که می‌توان با لیزر درمان کرد 
 \item  
بررسی انواع مدل‌های چشم
\item
 مراجع
\end{itemize}
}{a2.jpg}
\renewcommand{\thefootnote}{\arabic{footnote}}
%%%%%%%%%%%%%%%%%%%%%%%%%
%\myslide{مقدمه}{
\AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{a2.jpg}}} 

\section{}
\begin{plainslide}
\begin{center}
\vspace{-2.5cm}
\AddToShipoutPicture*{\put(-512,0){\includegraphics[height=\paperheight, width=194mm]{a2.jpg}}}
%\includegraphics[height=5cm]{}
\centerline{\includegraphics[width=19.5cm]{emam.jpg}}
\begin{LARGE}
\caption{"با تشکر از حضور و توجه شما"
\end{LARGE}
}\label{fe2}
\end{center}
\end{plainslide}


%\section{روش تابع گرین برای حل معادلات دیفرانسیل پاره‌ای} \label{sec:section3}
%\myslide{(ادامه)}{
\end{document}







