I used my score board for a while now, but it appears that it's hard to know in which column I need to write.
So my idea was to color every other column so I know which one I need to use.
Here is what I got so far:
\documentclass{letter}
\usepackage[a4paper, landscape, margin=0.5cm]{geometry}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{color, colortbl}
\setlength{\extrarowheight}{14pt}
\definecolor{Gray}{gray}{0.85}
\newcolumntype{g}{>{\columncolor{Gray}}c}
\newcolumntype{G}{>{\columncolor{Gray}}X}
\newcommand\customTable{
\begin{tabularx}{\textwidth}{cc|c|X|g|G|c|X|g|G|c|X|g|G|c|X|g|G|c|X|g|G|c|c|}
\cline{3-22}
& & \multicolumn{20}{ c| }{\LARGE Joueurs} \\ \cline{3-22}
& & \multicolumn{4}{ c| }{} & \multicolumn{4}{ c| }{} & \multicolumn{4}{ c| }{} & \multicolumn{4}{ c| }{} & \multicolumn{4}{ c| }{} \\ \cline{1-24}
\customRow{10}{\multirow{20}{*}{\rotatebox[origin=c]{90}{\LARGE Cartes}}}\cline{2-24}
\customRow{9}{}\cline{2-24}
\customRow{8}{}\cline{2-24}
\customRow{7}{}\cline{2-24}
\customRow{6}{}\cline{2-24}
\customRow{5}{}\cline{2-24}
\customRow{4}{}\cline{2-24}
\customRow{3}{}\cline{2-24}
\customRow{2}{}\cline{2-24}
\customRow{1}{}\cline{1-22}
\end{tabularx}
}
\newcommand\customHeader[2]{
\multicolumn{1}{|c}{#2} &
\multicolumn{1}{|c|}{\multirow{2}{*}{\LARGE #1}}
}
\newcommand\emptyCells{
& ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & & ~~~ & ~~~ \\
}
\newcommand\customBorder{
\cline{3-3} \cline{5-5} \cline{7-7} \cline{9-9} \cline{11-11} \cline{13-13} \cline{15-15} \cline{17-17} \cline{19-19} \cline{21-21} \cline{23-24}
}
\newcommand\emptyDoubleCells{
\multicolumn{1}{|c}{} & \multicolumn{1}{|c|}{} & \multicolumn{2}{c|}{} & \multicolumn{2}{g|}{} & \multicolumn{2}{c|}{} & \multicolumn{2}{g|}{} & \multicolumn{2}{c|}{} & \multicolumn{2}{g|}{} & \multicolumn{2}{c|}{} & \multicolumn{2}{g|}{} & \multicolumn{2}{c|}{} & \multicolumn{2}{g|}{} \\
}
\newcommand\customRow[2]{
\customHeader{#1}{#2}\emptyCells\customBorder\emptyDoubleCells
}
\begin{document}
\pagenumbering{gobble}
\customTable
\customTable
\end{document}
Now, every other column have a background but I've lost the borders on those.
I've looked here and here for inspiration, but I cannot spot where is my mistake.
So how do I color the background and keep the borders at the same time?



letteras document class? – Jul 01 '17 at 12:05article? Unless you're writing a letter, of course. Are the borders there when you zoom in?\usepackage[table]{xcolor}is recommended, by the way. – cfr Jul 01 '17 at 13:09letter. It's for the margins. I don't see borders while zooming in. – A.D. Jul 01 '17 at 13:21geometrypackage in order to change margins etc. Theletterclass is meant for, you guess it, letters and their special typography. – Jul 01 '17 at 14:02