% Makra pro sazbu poznamek ze Seminare z grafovych algoritmu

\input mjmac.tex
\input epsf.tex

\language=\czech
\chyph

% A4 s 0.5in okraji
\hsize=184.6mm
\vsize=271.6mm

\parindent=0.25in

% Zacatek prednasky {cislo prednasky}{jmeno prednasky}{jmeno zapisovatele}
\def\prednaska#1#2#3{%
\line{{\Large\bf #1. #2} \hfil {\it (#3)}}
\medskip
\hrule
\medskip
}

% Nadpis {text}
\def\h#1{\bigbreak\leftline{\bf #1}\smallskip}

% Zvyrazneny zacatek odstavce coby podnadpis (napr. vety apod.)
\def\s#1{\noindent {\bo #1}}

% Ctverecek na konci dukazu
%\def\qed{{\parfillskip=0pt\quad\hfil\hbox{\I QED} \par}}
\def\qed{\hfill\allowbreak\hfill\nobreak $\heartsuit$\par}

% Poznamky pod carou
\newcount\footcnt
\footcnt=0
\def\foot#1{\global\advance\footcnt by 1{\parindent=0.25in\parskip=0pt\footnote{$^{[\the\footcnt]}$}{#1}}}

% \noindent se casto hodi, tak na nej mame zkratku
\let\>=\noindent

% Sazba algoritmu:
%	\algo
%	\:krok
%	\:krok
%	\::vnoreny krok
%	\endalgo

\def\algo{
\interlistskip
\begingroup
\let\:=\algoitem
\let\*=\algohang
\parskip=1pt plus 1pt minus 0.3pt
\itemcount=0
}
\def\endalgo{\interlistskip\endgroup}
\def\algoitem{\par
\parindent=2em
\hangindent=4em
\hangafter=1
\advance\itemcount by 1
\leavevmode\hbox to 2em{\hss \the\itemcount. }%
\futurelet\next\algoitemh}
\def\algoitemh{\ifx\next:\let\next=\algohang\else\let\next=\relax\fi\next}
\def\algohang:{\advance\hangindent by 2em \hskip 2em\futurelet\next\algoitemh}

% Nekolikapismenkova promenna (mozno pouzit v textovem i math modu)
\def\<#1>{\hbox{\it #1}}

% Asymptoticke O-cko
\def\O{{\cal O}}

% Vlozeni obrazku {obrazek}{popisek}{sirka}
\def\figure#1#2#3{\bigskip\vbox{\centerline{\epsfxsize=#3\epsfbox{#1}}\smallskip\centerline{#2}}\bigskip}

% Todo
\def\todo#1{\leftline{\bf TODO: \it #1}}

% Blackboard bold font
\newfam\bbfam
\font\bbten=bbold10
\textfont\bbfam=\bbten
\def\bb{\bbten\fam\bbfam}
