]> mj.ucw.cz Git - diplomky.git/blobdiff - macros.tex
Custom captions
[diplomky.git] / macros.tex
index d33de71f09e973631d4f9b10247d276dcd1e73c8..64bfb4a7f25f384c56472d833dcc5103e75bdb42 100644 (file)
 \rightline{$\qedsymbol$}
 }
 
+%%% Styl popisek obrázků
+
+\ifcsname DeclareCaptionStyle\endcsname
+\DeclareCaptionStyle{thesis}{style=base,font=small,labelfont=bf,labelsep=quad}
+\captionsetup{style=thesis}
+\captionsetup[algorithm]{style=thesis,singlelinecheck=off}
+\captionsetup[listing]{style=thesis,singlelinecheck=off}
+\fi
+
 %%% Prostředí pro sazbu kódu, případně vstupu/výstupu počítačových
 %%% programů. (Vyžaduje balíček fancyvrb -- fancy verbatim.)
 
 %%% Příkaz pro transpozici vektoru/matice
 \newcommand{\T}[1]{#1^\top}
 
+%%% Asymptotické "O"
+\def\O{\mathcal{O}}
+
 %%% Vychytávky pro matematiku
 \newcommand{\goto}{\rightarrow}
 \newcommand{\gotop}{\stackrel{P}{\longrightarrow}}