1 % Makra pro sazbu zapisku z prednasky
14 % A5 s 1cm okraji, dolni rozsiren o 10pt, aby se tam veslo cislo stranky
16 \advance\bottommargin by 10pt
20 % Zacatek prednasky {cislo prednasky}{jmeno prednasky}{jmeno zapisovatele}
21 \def\prednaska#1#2#3{%
22 \line{{\setfonts[/14]\bf #1. #2} \hfil {\it #3}}
29 \def\h#1{\medbreak\leftline{\bf #1}\nobreak\smallskip\nobreak}
31 % Zvyrazneny zacatek odstavce coby podnadpis (napr. vety apod.)
32 \def\s#1{\smallskip\noindent {\bo #1}}
34 % A kdyz stoji samostatne (aby se naodlamoval)
35 \def\ss#1{\smallskip\noindent {\bo #1}\par\nobreak}
38 \def\proof{\nobreak\noindent {\sl Dùkaz:} }
40 % Srdicko na konci dukazu
41 \def\qed{{\parfillskip=0pt\allowbreak\hfill\nobreak $\heartsuit$\par}}
43 % ... pokud je v seznamu:
44 \def\qeditem{{\parfillskip=0pt\hfill\rlap{\hskip\rightskip\llap{$\heartsuit$}}\par}}
49 \def\foot#1{\global\advance\footcnt by 1{\parindent=0.25in\parskip=0pt\footnote{$^{\left<\the\footcnt\right>}$}{#1}}}
51 % \noindent se casto hodi, tak na nej mame zkratku
67 \parskip=1pt plus 1pt minus 0.3pt
71 \def\endalgo{\vskip\postitemizeskip\endgroup}
78 \def\algoitem{\algopar\advance\itemcount by 1
79 \hbox to 2em{\hss \the\itemcount. }%
80 \futurelet\next\algoitemh}
81 \def\algoitemh{\ifx\next:\let\next=\algohang\else\let\next=\relax\fi\next}
82 \def\algohang:{\advance\hangindent by 2em \hskip 2em\futurelet\next\algoitemh}
83 \def\algin{\:{\I Vstup:} }
84 \def\algout{\:{\I Výstup:} }
90 \def\cmt#1{~~{\sl (#1)}}
92 % Nekolikapismenkova promenna (mozno pouzit v textovem i math modu)
93 \def\<#1>{\leavevmode\hbox{\it #1\/}}
98 % Vlozeni obrazku {obrazek}{popisek}{sirka}
99 \def\figure#1#2#3{\bigskip\vbox{\centerline{\epsfxsize=#3\epsfbox{#1}}\smallskip\centerline{#2}}\bigskip}
101 % Varianta bez popisku
102 \def\fig#1#2{\medskip\centerline{\epsfxsize=#2\epsfbox{#1}}\medskip}
104 % Dva obrazky vedle sebe s popiskami
105 \def\twofigures#1#2#3#4#5#6{\bigskip\centerline{\vbox{\halign{\hfil##\hfil\hskip 4em&\hfil##\hfil\cr
106 \epsfxsize=#3\epsfbox{#1}&\epsfxsize=#6\epsfbox{#4}\cr
110 % Obrazek vlozeny do praveho okraje odstavce {obrazek}{sirka}
111 % Pouzit na zacatku odstavce a nejlepe celou konstrukci zavrit do vboxu, aby se nerozlomila
113 \setbox0=\hbox{\epsfxsize=#2\epsfbox{#1}}
115 \advance\hangindent by -3em
117 \advance\dimen0 by 8ex
118 \advance\dimen0 by \normalbaselineskip
120 \divide\count0 by \normalbaselineskip
122 \dimen0=\normalbaselineskip
123 \multiply\dimen0 by \count0
126 \vbox to 0pt{\vbox to \dimen0{\vss\rightline{\box0\hskip 1em}\vss}}
131 \def\todo#1{{\bf TODO: \it #1}}
133 % Matematicke symboly
134 \def\symdiff{\mathop{\Delta}}
136 %%% Cislovani verzi %%%
138 \def\currentversion{%
140 -\ifnum\month<10\relax 0\fi\the\month
141 -\ifnum\day<10\relax 0\fi\the\day
144 \footline={\hfil {\tenrm\the\count0}\hfil \llap{\sevenrm\currentversion}}