diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-05-23 10:17:05 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-05-23 10:17:05 +0200 |
commit | fd3029c88396f877f50d0f91ce72c6a732961485 (patch) | |
tree | 0f93e54a903fb2e9ad798962c985fdf3b9d4ef01 | |
parent | 3b1107a34f2f2db787157f11ab68d7b468f603ec (diff) |
Model_8: correction in the table table color
-rwxr-xr-x | model_8/Makefile | 3 | ||||
-rw-r--r-- | model_8/resources/10-fonts.tex | 2 | ||||
-rw-r--r-- | model_8/resources/10-table.tex | 21 | ||||
-rw-r--r-- | model_8/resources/10_preamble.tex | 6 |
4 files changed, 26 insertions, 6 deletions
diff --git a/model_8/Makefile b/model_8/Makefile index ca74045..175c1ae 100755 --- a/model_8/Makefile +++ b/model_8/Makefile @@ -2,4 +2,5 @@ include ../common/Makefile.common EXTRA_RST_OPTIONS = \ --no-section-numbering \ - --table-style=booktabs + --table-style=booktabs \ + --new-column-widths diff --git a/model_8/resources/10-fonts.tex b/model_8/resources/10-fonts.tex index bf1a23a..604d01c 100644 --- a/model_8/resources/10-fonts.tex +++ b/model_8/resources/10-fonts.tex @@ -1,4 +1,4 @@ \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Linux Libertine O} -\input{../common/10_fonts.tex} +\input{\commonPath/10_fonts.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{} diff --git a/model_8/resources/10_preamble.tex b/model_8/resources/10_preamble.tex index ca60202..75dc080 100644 --- a/model_8/resources/10_preamble.tex +++ b/model_8/resources/10_preamble.tex @@ -3,6 +3,6 @@ \patchcmd{\quote}{\rightmargin}{\leftmargin 0em \rightmargin}{}{} -\input{../common/10_language.tex} -\input{../common/10_lists.tex} -\input{../common/10_nowidows.tex} +\input{\commonPath/10_language.tex} +\input{\commonPath/10_lists.tex} +\input{\commonPath/10_nowidows.tex} |