I am trying to create a table that has multiple strikes through columns and rows, similar to this table
I have tried this solution Striking thru a tabular row in LaTeX but it can't produce multiple strikes through. My code looked something like this
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage{multirow}
\usepackage{cancel}
\usepackage{tikz}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [shape=rectangle,inner sep=0pt]
\newcommand{\myStrikeBegin}[1]{%
\tikz[baseline=(begin.base)]\node[na](begin){#1};
}
\newcommand{\myStrikeEnd}[1]{%
\tikz[baseline=(end.base)]\node[na](end){#1};
\begin{tikzpicture}[overlay]
\draw (begin.west) -- (end.east);
\end{tikzpicture}
}
\begin{tabular}{cccc}
19 & \myStrikeBegin{0} & \myStrikeBegin{15} & 14 \\
\myStrikeBegin{0} & 5 & 3 & \myStrikeEnd{0} \\
3 & 2 & 0 & 3\\
13 & \myStrikeEnd{20} & \myStrikeEnd{0} & 17
\end{tabular}
\end{document}
And the result looked like this
(I wanted to strike through the 2nd and 4th columns as well as the 3rd row). I have tried to make 3 new similar commands but the resulting table is the same.
Is there any way to do it? Any help would be appreciated.