]> mj.ucw.cz Git - diplomky.git/commitdiff
Custom captions
authorMartin Mares <mj@ucw.cz>
Fri, 1 Mar 2024 23:51:17 +0000 (01:51 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 1 Mar 2024 23:51:17 +0000 (01:51 +0200)
This is inspired by the better-mff-thesis package, but we avoid
sans-serif fonts in captions.

macros.tex

index e86b4e1fb2d3ba8b4ea0e78426eb60044f2aa13c..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.)