\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{sidebarbidipres}
\usepackage{xepersian}



\linespread{2}
\pagestyle{pres}

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




%\settextfont{DejaVu Sans}
\renewcommand{\baselinestretch}{.8}
\settextfont[Scale=1.37]{XB Niloofar}%{Nazanin 2}
\setlatintextfont[Scale=1.0]{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}

%%%%%%%%%%%%%%%%%% هادی صفی اقدم%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% #1 عنوان کادر
%#2 متن اسلاید
%#3 عکس پس زمینه اسلاید به صورت مثلا gra.png
\tikzstyle{mybox} = [draw=blue!30, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitle} =[fill=lightgray, text=blue]
%%%%%%%%%
 \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(-520,0){\includegraphics[height=\paperheight]{#3}}}    \end{plainslide}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط قضیه
%1 متن اسلاید
\tikzstyle{myghazye} = [draw=red!80, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitleghazye} =[fill=yellow!20, text=red]
%%%%%%%
 \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(-540,0){\includegraphics[height=\paperheight]{gra4.jpg}}} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط تعریف
\tikzstyle{mytarif} = [draw=blue, fill=none, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitletarif} =[fill=green!20, text=red]
%%%%%%%
 \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(-540,0){\includegraphics[height=\paperheight]{gra4.jpg}}} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط مثال
\tikzstyle{mymesal} = [draw=blue!80, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemesal} =[fill=blue!20, text=blue]
%%%%%%%%%
 \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(-540,0){\includegraphics[height=\paperheight]{gra4.jpg}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% هادی صفی اقدم%%%%%%%%%%%


\begin{document}
%%محتویات سایدبار


\begin{plainslide}

‎\mymesal{این یک مثال است.
}
\myghazye{این یک قضیه است.}
\mytarif{این یک تعریف است.}



\end{plainslide}

\end{document}

