1 % Makra pro sazbu skripticek o grafovych algoritmech
17 % A5 s 1cm okraji, dolni rozsiren o 10pt, aby se tam veslo cislo stranky
20 \advance\vsize by -10pt
23 % Zacatek prednasky {cislo prednasky}{jmeno prednasky}{jmeno zapisovatele}
24 \def\prednaska#1#2#3{%
25 \line{{\Large\bf #1. #2} \hfil {\it #3}}
32 \def\h#1{\medbreak\leftline{\bf #1}\nobreak\smallskip\nobreak}
34 % Zvyrazneny zacatek odstavce coby podnadpis (napr. vety apod.)
35 \def\s#1{\noindent {\bo #1}}
37 % A kdyz stoji samostatne (aby se naodlamoval)
38 \def\ss#1{\noindent {\bo #1}\par\nobreak}
41 \def\proof{\noindent {\sl Dùkaz:} }
43 % Ctverecek na konci dukazu
44 %\def\qed{{\parfillskip=0pt\quad\hfil\hbox{\I QED} \par}}
45 \def\qed{{\parfillskip=0pt\allowbreak\hfill\nobreak $\heartsuit$\par}}
48 \def\qeditem{{\parfillskip=0pt\hfill\rlap{\hskip\rightskip\llap{$\heartsuit$}}\par}}
53 \def\foot#1{\global\advance\footcnt by 1{\parindent=0.25in\parskip=0pt\footnote{$^{\left<\the\footcnt\right>}$}{#1}}}
55 % \noindent se casto hodi, tak na nej mame zkratku
70 \parskip=1pt plus 1pt minus 0.3pt
74 \def\endalgo{\interlistskip\endgroup}
79 \advance\itemcount by 1
80 \leavevmode\hbox to 2em{\hss \the\itemcount. }%
81 \futurelet\next\algoitemh}
82 \def\algoitemh{\ifx\next:\let\next=\algohang\else\let\next=\relax\fi\next}
83 \def\algohang:{\advance\hangindent by 2em \hskip 2em\futurelet\next\algoitemh}
85 % Nekolikapismenkova promenna (mozno pouzit v textovem i math modu)
86 \def\<#1>{\hbox{\it #1\/}}
91 % Vlozeni obrazku {obrazek}{popisek}{sirka}
92 \def\figure#1#2#3{\bigskip\vbox{\centerline{\epsfxsize=#3\epsfbox{#1}}\smallskip\centerline{#2}}\bigskip}
94 % Varianta bez popisku
95 \def\fig#1#2{\medskip\centerline{\epsfxsize=#2\epsfbox{#1}}\medskip}
97 % Dva obrazky vedle sebe s popiskami
98 \def\twofigures#1#2#3#4#5#6{\bigskip\centerline{\vbox{\halign{\hfil##\hfil\hskip 4em&\hfil##\hfil\cr
99 \epsfxsize=#3\epsfbox{#1}&\epsfxsize=#6\epsfbox{#4}\cr
104 \def\todo#1{{\bf TODO: \it #1}}
106 % Blackboard bold font
109 \textfont\bbfam=\bbten
110 \def\bb{\bbten\fam\bbfam}
112 % Reference na konci kapitoly
113 \bibliographystyle{abbrv}
114 \def\references{\h{Literatura}\dumprefs}
116 \def\bblhook{\parskip=2pt plus 1pt minus 0.5pt}
120 % Predefinujeme odsazovani odrazek z mjmacu
121 \def\itemspacingrules{\ifitem\advance\leftskip by \parindent\parindent=0pt\itemfalse\else
122 \advance\leftskip by 2.5em\fi\rightskip=\leftskip}