\documentclass[11pt]{article}
%\usepackage{amsfonts}
%\usepackage{latexsym}
%\usepackage{epsfig}          %allows figures to be inserted in .eps format

%this is a comment

%use this as a template only... you may not need the subsections,
%or lists however they are placed in the document to show you how
%do it if needed.


%THINGS TO REMEMBER

%{\bf TEXT}                  - bold font TEXT
%{\it TEXT}                  - italic TEXT
%$ ... $                     - places ... in math mode on same line
%$$ ... $$                   - places ... in math mode on new line


\setlength{\oddsidemargin}{.25in}
\setlength{\evensidemargin}{.25in}
\setlength{\textwidth}{6in}
\setlength{\topmargin}{-0.4in}
\setlength{\textheight}{8.5in}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\notes}[5]{
    \renewcommand{\thepage}{#1 - \arabic{page}}
    \noindent
    \begin{center}
    \framebox{
        \vbox{
        \hbox to 5.78in { { \bf Online Algorithms}
        \hfill #2}
        \vspace{4mm}
        \hbox to 5.78in { {\Large \hfill #5 \hfill} }
        \vspace{2mm}
        \hbox to 5.78in { {\it #3 \hfill #4} }
        }
    }
    \end{center}
    \vspace*{4mm}
}

\newcommand{\ho}[5]{\notes{#1}{#2}{Professor: #3}{Scribe:#4}{Lecture Notes #1: #5}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%begins a LaTeX document
\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%insert the date
%insert your name
%insert the lecture title in place of the placeholders
\ho{1}{Date}{Yossi Azar}{Name}{Lecture title}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%begin new section ... places Introduction in bold larger font
\section{Introduction}

%makes section without a section number
\section*{Introduction}

% Place the introduction to the lecture here!
% Good place to put what the main points of the lecture was

%if you wish to use subsections
\subsection{First Subsection}

\subsection{Second Subsection}

\subsection*{Unnumbered subsection}


\section{Section 2}

{\bf definition}:places definition in bold font and continues to show
typing here!

\section{Section 3}

\begin{itemize}
\item {\em Def 1} bullets Def 1 and places it into italics
\item {\em Def 2} bullets Def 2 and places it into italics
\end{itemize}

\section{Section 4}

See other lecture .tex files for more formatting examples.


%ends document
\end{document}
