]> mj.ucw.cz Git - diplomky.git/blobdiff - macros.tex
Custom captions
[diplomky.git] / macros.tex
index 249b2d2a84cdc0fa2ddb8e8ce7808e9838fdfb1c..64bfb4a7f25f384c56472d833dcc5103e75bdb42 100644 (file)
@@ -79,8 +79,6 @@
 \newtheorem{veta}{Věta}
 \newtheorem{lemma}[veta]{Lemma}
 \newtheorem{tvrz}[veta]{Tvrzení}
-
-\theoremstyle{plain}
 \newtheorem{definice}{Definice}
 
 \theoremstyle{remark}
 \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}}