I crossed out the letter K using the answer given here... cross out arbitrary cells Then I colored the row using \cellcolor, but the cell, which is crossed out is only half filled... What do I need to change to color the whole cell...?
This is my code...
\documentclass[titlepage=true, 12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
\usepackage{newtxtext,newtxmath}
\setkomafont{disposition}{\normalfont\bfseries}
\usepackage[utf8]{inputenc}
\setlength{\parskip}{1.2ex}
\setlength{\parindent}{0em}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{Name}
\fancyfoot[C]{\thepage}
\usepackage{filecontents}
\usepackage[autostyle]{csquotes}
\usepackage{setspace}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{zref-savepos}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{xcolor,stackengine}
\newcommand\splat[3][white]{%
\colorbox{#1}{~~\sffamily\stackon{\fbox{\makebox[3ex]{\large\strut #2}}}{#3}~~}%
}
\usepackage{colortbl}
\newcounter{NoTableEntry}
\renewcommand*{\theNoTableEntry}{NTE-\the\value{NoTableEntry}}
\newcommand*{\strike}[2]{%
\multicolumn{1}{#1}{%
\stepcounter{NoTableEntry}%
\vadjust pre{\zsavepos{\theNoTableEntry t}}% top
\vadjust{\zsavepos{\theNoTableEntry b}}% bottom
\zsavepos{\theNoTableEntry l}% left
\hspace{0pt plus 1filll}%
#2% content
\hspace{0pt plus 1filll}%
\zsavepos{\theNoTableEntry r}% right
\tikz[overlay]{%
\draw
let
\n{llx}={\zposx{\theNoTableEntry l}sp-\zposx{\theNoTableEntry r}sp-\tabcolsep},
\n{urx}={\tabcolsep},
\n{lly}={\zposy{\theNoTableEntry b}sp-\zposy{\theNoTableEntry r}sp},
\n{ury}={\zposy{\theNoTableEntry t}sp-\zposy{\theNoTableEntry r}sp}
in
(\n{llx}, \n{lly}) -- (\n{urx}, \n{ury})
;
}%
}%
}
\begin{document}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}
\setlength{\extrarowheight}{5pt}
\setlength{\tabcolsep}{6pt}
\adjustbox{valign=t}{\begin{minipage}[t]{0.63\textwidth}
\begin{tabular}{|C{0.8cm}|L{8cm}|}
\hline
A & peu de cours \\
\hline
B & la confiance en soi\\
\hline
C & se trouve le village du Père Noël \\
\hline
D & début de semestre\\
\hline
E & à augmenter la fréquentation de la ville\\
\hline
F & des ours polaires \\
\hline
G & fin de semestre\\
\hline
H & beaucoup de cours \\
\hline
I & nous a permis de nous intégrer plus facilement \\
\hline
J & une magnifique aurore boréale \\
\hline
\strike{|c|}{\cellcolor{gray!30}K} &\cellcolor{gray!30} les gens sont quasiment tous bilingues en anglais \\
\hline
\end{tabular}
\end{minipage}}
\adjustbox{valign=t}{\begin{minipage}[t]{0.36\textwidth}
\Shortstack[l]{
\splat[gray!30]{K}{0}\splat{}{1}\splat{}{2}\splat{}{3}
\splat{}{4}\splat{}{5}\splat{}{6}\splat{}{7}
\splat{}{8}}
\end{minipage}}
\end{document}




2\tabcolsep. The height is approximately2\normalbaselineskipplus a few points (unless you have modified\arraystretch). – Steven B. Segletes May 26 '17 at 01:03