No matter what I try to do with hf-tikz I get this error below. I am new to the tikZ syntax and I need it just to highlight parts of tables (using tabulary). The MWE is from a post on {TeX} SX.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\newcommand\x{\times}
\usepackage[customcolors]{hf-tikz}
\hfsetfillcolor{green!50}
\hfsetbordercolor{white}
\begin{document}
\begin{equation}\label{eq:appendrow}
\left(\begin{array}{cccc}
\x & \x & \x & \x \\
0 & \x & \x & \x \\
0 & 0 & \x & \x \\
0 & 0 & 0 & \x \\
\tikzmarkin{color this row} a & b & c & d \tikzmarkend{color this row}\\
\end{array}\right)
\end{equation}
\begin{equation}\label{eq:appendcol}
\left(\begin{array}{cccc}
\x & \x & \tikzmarkin{color this column} \x & \x \\
0 & \x & \x & \x \\
0 & 0 & \x & \x \\
0 & 0 & 0 & \x \\
a & b & c \tikzmarkend{color this column} & d \\
\end{array}\right)
\end{equation}
\end{document}
Code: Select all
! Package tikz Error: Cannot parse this coordinate.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.22 \tikzmarkin{color this row}
a & b & c & d \tikzmarkend{color t...
Would greatly appreciate any help!
Thank you,
Arsenio