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:} }
89 % Nekolikapismenkova promenna (mozno pouzit v textovem i math modu)
90 \def\<#1>{\hbox{\it #1\/}}
95 % Vlozeni obrazku {obrazek}{popisek}{sirka}
96 \def\figure#1#2#3{\bigskip\vbox{\centerline{\epsfxsize=#3\epsfbox{#1}}\smallskip\centerline{#2}}\bigskip}
98 % Varianta bez popisku
99 \def\fig#1#2{\medskip\centerline{\epsfxsize=#2\epsfbox{#1}}\medskip}
101 % Dva obrazky vedle sebe s popiskami
102 \def\twofigures#1#2#3#4#5#6{\bigskip\centerline{\vbox{\halign{\hfil##\hfil\hskip 4em&\hfil##\hfil\cr
103 \epsfxsize=#3\epsfbox{#1}&\epsfxsize=#6\epsfbox{#4}\cr
107 % Obrazek vlozeny do praveho okraje odstavce {obrazek}{sirka}
108 % Pouzit na zacatku odstavce a nejlepe celou konstrukci zavrit do vboxu, aby se nerozlomila
110 \setbox0=\hbox{\epsfxsize=#2\epsfbox{#1}}
112 \advance\hangindent by -3em
114 \advance\dimen0 by 8ex
115 \advance\dimen0 by \normalbaselineskip
117 \divide\count0 by \normalbaselineskip
119 \dimen0=\normalbaselineskip
120 \multiply\dimen0 by \count0
123 \vbox to 0pt{\vbox to \dimen0{\vss\rightline{\box0\hskip 1em}\vss}}
128 \def\todo#1{{\bf TODO: \it #1}}
130 % Blackboard bold font
135 \textfont\bbfam=\bbten
136 \scriptfont\bbfam=\bbseven
137 \scriptscriptfont\bbfam=\bbfive
138 \def\bb{\bbten\fam\bbfam}
140 % Reference na konci kapitoly
141 %\bibliographystyle{abbrv}
142 %\def\references{\h{Literatura}\dumprefs}
144 %\def\bblhook{\parskip=2pt plus 1pt minus 0.5pt}
145 %\bibliography{../ga}
148 % Predefinujeme odsazovani odrazek z mjmacu
149 \def\itemspacingrules{\ifitem\advance\leftskip by \parindent\parindent=0pt\itemfalse\else
150 \advance\leftskip by 2.5em\fi\rightskip=\leftskip}
152 % Matematicke symboly
153 \def\symdiff{\mathop{\Delta}}