%declear package name
\ProvidesPackage{LectureTemplate}

\usepackage{url,amsmath,setspace,amssymb,tikz,graphicx}

%page settings
\setlength{\oddsidemargin}{.25in}
\setlength{\evensidemargin}{.25in}
\setlength{\textwidth}{6.25in}
\setlength{\topmargin}{-0.4in}
\setlength{\textheight}{8.5in}
\setlength{\parindent}{0in}
\bibliographystyle{plain}



\usepackage{tikz}
\usetikzlibrary{arrows}

%این بسته مخصوص طراحی دیاگرام و گراف است و کار با آن بسیار ساده تر از tikz می باشد


%define commands and enviroments

\newcommand{\heading}[6]
{
   %set paging
   \renewcommand{\thepage}{#1-\arabic{page}}


\begin{tabular}{rp{3.05cm}cp{3.05cm}l}
&&\textbf{به نام خدا}&&\\
\includegraphics[scale=0.07]{el.jpg}&&
\textbf{دانشکده‌ی علوم ریاضی}
&&\includegraphics[scale=0.07]{el.jpg}
\end{tabular}

   \noindent
   \begin{center}
   \framebox[\textwidth]
   {
     \begin{minipage}{0.9\textwidth} \onehalfspacing
       {\bf  #6} \hfill #2

       {\centering \Large #5
       
       }\medskip

       {\it #3 \hfill #4}
     \end{minipage}
   }
   \end{center}
}

\newcommand{\handout}[5]{\heading{#2}{#3}{مدرس: دکتر سمانه مشهدی}
{
نگارنده: #5
}
{
فصل  #2: #4
}{#1}}

\newsavebox\mybox

\newcommand{\mA}{{\mathcal A}}
\newcommand{\mB}{{\mathcal B}}
\newcommand{\mC}{{\mathcal C}}
\newcommand{\mD}{{\mathcal D}}
\newcommand{\mE}{{\mathcal E}}
\newcommand{\mF}{{\mathcal F}}
\newcommand{\mG}{{\mathcal G}}
\newcommand{\mH}{{\mathcal H}}
\newcommand{\mI}{{\mathcal I}}
\newcommand{\mJ}{{\mathcal J}}
\newcommand{\mK}{{\mathcal K}}
\newcommand{\mL}{{\mathcal L}}
\newcommand{\mM}{{\mathcal M}}
\newcommand{\mN}{{\mathcal N}}
\newcommand{\mO}{{\mathcal O}}
\newcommand{\mP}{{\mathcal P}}
\newcommand{\mQ}{{\mathcal Q}}
\newcommand{\mR}{{\mathcal R}}
\newcommand{\mS}{{\mathcal S}}
\newcommand{\mT}{{\mathcal T}}
\newcommand{\mU}{{\mathcal U}}
\newcommand{\mV}{{\mathcal V}}
\newcommand{\mW}{{\mathcal W}}
\newcommand{\mX}{{\mathcal X}}
\newcommand{\mY}{{\mathcal Y}}
\newcommand{\mZ}{{\mathcal Z}}

\newcommand{\hs}{\heartsuit}
\newcommand{\cs}{\clubsuit}
\renewcommand{\sp}{\spadesuit}
\newcommand{\ds}{\diamondsuit}
\newcommand{\noi}{\noindent}
\newcommand{\exi}{\exists}
\newcommand{\fa}{\forall}
\newcommand{\Ra}{\Rightarrow}
\newcommand{\ra}{\rightarrow}
\newcommand{\La}{\Leftarrow}
\newcommand{\la}{\leftarrow}

\newcommand{\qed}{\mbox{}\hspace*{\fill}\nolinebreak\mbox{$\rule{0.6em}{0.6em}$}} %%to end your proof write $\qed$.


%cryptosystem
\newcommand{\Enc}{\mathsf{Enc}}
\newcommand{\Dec}{\mathsf{Dec}}
\newcommand{\Gen}{\mathsf{Gen}}

%------------------groups----------
\newcommand{\GroupGen}{\mathsf{GroupGen}}
%message space, ..
\newcommand{\pspace}{\mathcal{M}}
\newcommand{\kspace}{\mathcal{K}}
\newcommand{\cspace}{\mathcal{C}}
%adversary
\newcommand{\Adv}{\mathcal{A}}
\newcommand{\AdvD}{\mathcal{D}}
% experiments
\newcommand{\ExpPubK}[2]{\mathsf{PubK}_{#1,#2}^{\eav}}
\newcommand{\ExpPrivK}[2]{\mathsf{PrivK}_{#1,#2}^{\eav}}

%text up
\newcommand{\eav}{\textup{eav}}

% tab
\newcommand{\tab}{\hspace*{2em}}

%--------------------------
\newcommand{\negl}{\mathsf{NEG}}
\newcommand{\poly}{\mathsf{Poly}}
\newcommand{\nuppt}{\mathsf{nuPPT}}
\newcommand{\ppt}{\mathsf{PPT}}
\newcommand{\bpp}{\mathsf{BPP}}
\newcommand{\szk}{\mathsf{SZK}}
\newcommand{\pzk}{\mathsf{PZK}}
\newcommand{\czk}{\mathsf{CZK}}



\newcommand{\Zstar}{\mathbb{Z}^{*}}
\newcommand{\gG}{\mathbb{G}}
%---------------------------
\newcommand{\view}{\mathsf{view}}
\newcommand{\outp}{\mathsf{output}}
\newcommand{\Sim}{\mathcal{S}}
%---------------------------


\newenvironment{proof}{\par\textbf{برهان.}}{\mbox{}\hspace*{\fill}\nolinebreak\mbox{$\rule{0.6em}{0.6em}$}}
\newtheorem{lemma}{لم}
\newtheorem{theorem}{قضیه}[section]
\newtheorem{definition}{تعریف}[section]
\newtheorem{proposition}{گزاره}[section]
\newtheorem{recall}{یادآوری}[section]
\newtheorem{remark}{نکته}[section]
\newtheorem{example}{مثال}[section]
\newtheorem{corollary}{نتیجه}[section]
\newtheorem{exercise}{تمرین}[section]



