aboutsummaryrefslogtreecommitdiff
path: root/model_8/resources/10-table.tex
blob: cfa2f62a35dc44a060e999d4193d91af447d8561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\let\oldbf\textbf
\def\newbf{\color{white}\oldbf}

\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}}
% Restore the previous color after the header
\def\midrule{\global\def\textbf{\oldbf}}
\def\bottomrule{}