I want to make a table and highlight a certain region in it using thick lines as shown below.
In my attempt to reproduce the above table, I have used the tabu
package to make thick horizontal and vertical lines. However, there isn't any command in LaTeX to make thick vertical lines spanning given rows. Basically, I'm looking for a vertical version of \tabucline
. Here's my code and output:
\begin{table}[h!]
\centering
\renewcommand{\arraystretch}{1.75}
\begin{tabu}{|[1.5pt]c|c|c|c|c|c|c|c|}
\tabucline[1.5pt]{-}
(-4, -4) & (-3, -4) & (-2, -4) & (-1, -4) & (0, -4) & (1, -4) & (2, -4) & (3, -4) \\
\hline
(-4, -3) & (-3, -3) & (-2, -3) & (-1, -3) & (0, -3) & (1, -3) & (2, -3) & (3, -3) \\
\hline
(-4, -2) & (-3, -2) & (-2, -2) & (-1, -2) & (0, -2) & (1, -2) & (2, -2) & (3, -2) \\
\hline
(-4, -1) & (-3, -1) & (-2, -1) & (-1, -1) & (0, -1) & (1, -1) & (2, -1) & (3, -1) \\
\tabucline[1.5pt]{5-8}\hline
(-4, 0) & (-3, 0) & (-2, 0) & (-1, 0) & (0, 0) & (1, 0) & (2, 0) & (3, 0) \\
\tabucline[1.5pt]{2-4}\hline
(-4, 1) & (-3, 1) & (-2, 1) & (-1, 1) & (0, 1) & (1, 1) & (2, 1) & (3, 1) \\
\hline
(-4, 2) & (-3, 2) & (-2, 2) & (-1, 2) & (0, 2) & (1, 2) & (2, 2) & (3, 2) \\
\hline
(-4, 3) & (-3, 3) & (-2, 3) & (-1, 3) & (0, 3) & (1, 3) & (2, 3) & (3, 3) \\
\hline\tabucline[1.5pt]{1-1}
\end{tabu}
\end{table}