1 % Makra pro sazbu zapisku z prednasky
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 % Srdicko na konci dukazu
44 \def\qed{{\parfillskip=0pt\allowbreak\hfill\nobreak $\heartsuit$\par}}
47 \def\qeditem{{\parfillskip=0pt\hfill\rlap{\hskip\rightskip\llap{$\heartsuit$}}\par}}
52 \def\foot#1{\global\advance\footcnt by 1{\parindent=0.25in\parskip=0pt\footnote{$^{\left<\the\footcnt\right>}$}{#1}}}
54 % \noindent se casto hodi, tak na nej mame zkratku
70 \parskip=1pt plus 1pt minus 0.3pt
74 \def\endalgo{\interlistskip\endgroup}
81 \def\algoitem{\algopar\advance\itemcount by 1
82 \hbox to 2em{\hss \the\itemcount. }%
83 \futurelet\next\algoitemh}
84 \def\algoitemh{\ifx\next:\let\next=\algohang\else\let\next=\relax\fi\next}
85 \def\algohang:{\advance\hangindent by 2em \hskip 2em\futurelet\next\algoitemh}
86 \def\algin{\:{\I Vstup:} }
87 \def\algout{\:{\I Výstup:} }
93 \def\cmt#1{~~{\sl (#1)}}
95 % Nekolikapismenkova promenna (mozno pouzit v textovem i math modu)
96 \def\<#1>{\leavevmode\hbox{\it #1\/}}
101 % Vlozeni obrazku {obrazek}{popisek}{sirka}
102 \def\figure#1#2#3{\midinsert
103 \vbox{\centerline{\epsfxsize=#3\epsfbox{#1}}\smallskip\centerline{#2}}
106 % Varianta bez popisku
107 \def\fig#1#2{\medskip\centerline{\epsfxsize=#2\epsfbox{#1}}\medskip}
109 % Dva obrazky vedle sebe s popiskami
110 \def\twofigures#1#2#3#4#5#6{\bigskip\centerline{\vbox{\halign{\hfil##\hfil\hskip 4em&\hfil##\hfil\cr
111 \epsfxsize=#3\epsfbox{#1}&\epsfxsize=#6\epsfbox{#4}\cr
115 % Obrazek vlozeny do praveho okraje odstavce {obrazek}{sirka}
116 % Pouzit na zacatku odstavce a nejlepe celou konstrukci zavrit do vboxu, aby se nerozlomila
118 \setbox0=\hbox{\epsfxsize=#2\epsfbox{#1}}
120 \advance\hangindent by -3em
122 \advance\dimen0 by 8ex
123 \advance\dimen0 by \normalbaselineskip
125 \divide\count0 by \normalbaselineskip
127 \dimen0=\normalbaselineskip
128 \multiply\dimen0 by \count0
131 \vbox to 0pt{\vbox to \dimen0{\vss\rightline{\box0\hskip 1em}\vss}}
136 \def\todo#1{{\bf TODO: \it #1}}
138 % Blackboard bold font
143 \textfont\bbfam=\bbten
144 \scriptfont\bbfam=\bbseven
145 \scriptscriptfont\bbfam=\bbfive
146 \def\bb{\bbten\fam\bbfam}
148 % Reference na konci kapitoly
149 %\bibliographystyle{abbrv}
150 %\def\references{\h{Literatura}\dumprefs}
152 %\def\bblhook{\parskip=2pt plus 1pt minus 0.5pt}
153 %\bibliography{../ga}
156 % Predefinujeme odsazovani odrazek z mjmacu
157 \def\itemspacingrules{\ifitem\advance\leftskip by \parindent\parindent=0pt\itemfalse\else
158 \advance\leftskip by 2.5em\fi\rightskip=\leftskip}
160 % Matematicke symboly
161 \def\symdiff{\mathop{\Delta}}