From fd3029c88396f877f50d0f91ce72c6a732961485 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 23 May 2024 10:17:05 +0200 Subject: Model_8: correction in the table table color --- model_8/resources/10-table.tex | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'model_8/resources/10-table.tex') diff --git a/model_8/resources/10-table.tex b/model_8/resources/10-table.tex index a3b2488..cfa2f62 100644 --- a/model_8/resources/10-table.tex +++ b/model_8/resources/10-table.tex @@ -4,6 +4,25 @@ \colorlet{tableHeader}{red!80!black} \rowcolors{1}{lightgray!10}{lightgray!50} +% The tables using the mode are represented like this : +% +% \toprule +% \textbf{% +% … +% } & \textbf{% +% … +% } \\ +% \midrule +% \endfirsthead +% +% Here, we are updating the toprule command to set the color in the background, +% and define the text color. +% +% In the midrule command, we restore the command `textbf` to the previous +% definition. + +% Update the color for the header row \def\toprule{\rowcolor{tableHeader}\global\def\textbf{\newbf}} -\def\midrule{} +% Restore the previous color after the header +\def\midrule{\global\def\textbf{\oldbf}} \def\bottomrule{} -- cgit v1.2.3