Graphics, Figures & Tableshf-tikz | Parsing Error for Coordinates

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
arstaer
Posts: 12
Joined: Sun Jun 17, 2012 5:56 am

hf-tikz | Parsing Error for Coordinates

Post by arstaer »

Dear all,

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}
It causes this error.

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

hpesoj626
Posts: 7
Joined: Thu Nov 01, 2012 4:27 pm

hf-tikz | Parsing Error for Coordinates

Post by hpesoj626 »

Hi astaer,

Have you downloaded the package? If not then download from CTAN, unpack it and save the .sty file to where TeX can find it. For one, you can save it to your working directory or put the whole unpacked folder to your local texmf directory.

The code needs to be compiled twice in order for the coloring the be drawn.
hpesoj626
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hf-tikz | Parsing Error for Coordinates

Post by localghost »

hpesoj626 wrote:[…] Have you downloaded the package? If not then download from CTAN, unpack it and save the .sty file to where TeX can find it. For one, you can save it to your working directory or put the whole unpacked folder to your local texmf directory. […]
Download and installation of packages is usually done by the package manager of the respective TeX distribution. So there's no need for manual intervention. Since the hf-tikZ package is part of both TeX Live and MiKTeX, this should be no problem.


Thorsten
arstaer
Posts: 12
Joined: Sun Jun 17, 2012 5:56 am

hf-tikz | Parsing Error for Coordinates

Post by arstaer »

Thanks for replies, guys!

The package is installed fine,

Code: Select all

 
("T:\Utils - Finance\MiKTeX 2.9\tex\latex\hf-tikz\hf-tikz.sty"
Package: hf-tikz 2012/08/17 v0.1 A simple way to highlight formulas and formula
 parts.
The \tikzmark macro by Andrew Stacy works ok, but hf-tikZ (based in part on that macro) gives that message on parsing the coordinates. I'm aware of the running it twice. The macro works as the document is run several times, however hf-tikz showing up this error effectively stops the compiling process.

I have been looking everywhere for this error, and not much came up. I guess next step is to contact Claudio, the author, directly.

Thank you,

Arsenio
Post Reply