From: Martin Mares Date: Fri, 1 Mar 2024 23:51:17 +0000 (+0200) Subject: Custom captions X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2ca40e8da3b05cbe8db7c582cfac326650d18890;p=diplomky.git Custom captions This is inspired by the better-mff-thesis package, but we avoid sans-serif fonts in captions. --- diff --git a/macros.tex b/macros.tex index e86b4e1..64bfb4a 100644 --- a/macros.tex +++ b/macros.tex @@ -96,6 +96,15 @@ \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.)