Hi I'm using images in longtable. To define captions in the longtable enviroment I defined this:
\makeatletter
\def\figcaption{%
\refstepcounter{figure}%
\@dblarg{\@caption{figure}}}
\makeatother
and then inside a cell I have
\parbox{5cm}{
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) { \includegraphics[scale=1]{image} };
\label{fig:lol}
\end{tikzpicture}
\figcaption{my caption.}}
However \cite{fig:lol} gives me the table number! Why? How can I solve it?
Edit: hyperref seems ok...