From e11734344809ffa00a231c634c0d787cf0c5756c Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 19 Jul 2021 20:04:06 +0200 Subject: [PATCH] aligned table-top captions (draft) --- ch2.tex | 6 +++--- macros.tex | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ch2.tex b/ch2.tex index 007bf65..181fbac 100644 --- a/ch2.tex +++ b/ch2.tex @@ -24,7 +24,7 @@ Use induction on sets of cars $C$. The statement holds trivially for $|C|\leq1$. \end{proof} \begin{table} -\centering +\ffigbox[\FBwidth]{\centering {\footnotesize\sf \begin{tabular}{llrl} \toprule @@ -40,8 +40,8 @@ Asd qsd 1sd & \textcolor{green!80!black}{GOOD} & 234234299 & -- \\ Asd & NUMBER & \textbf{123123} & -- \\ Asd qsd 1sd & DIFFERENT & 234234234 & (no data) \\ \bottomrule -\end{tabular}} -\caption{An example table. Table caption should clearly explain how to interpret the data in the table. Use some visual guide, such as boldface or color coding, to highlight the most important results (e.g., comparison winners).} +\end{tabular}}}% +{\caption{An example table. Table caption should clearly explain how to interpret the data in the table. Use some visual guide, such as boldface or color coding, to highlight the most important results (e.g., comparison winners).}} \label{tab:z} \end{table} diff --git a/macros.tex b/macros.tex index 59f7a6a..fb75656 100644 --- a/macros.tex +++ b/macros.tex @@ -55,6 +55,7 @@ \captionsetup{style=thesis} \captionsetup[algorithm]{style=thesis,singlelinecheck=off} \captionsetup[listing]{style=thesis,singlelinecheck=off} +\floatsetup[table]{capposition=top,framefit=yes} \ifEN\floatname{listing}{Listing} \else\floatname{listing}{Výpis kódu}\fi