views:

648

answers:

2

Hi, I have a few longtables that stretch several pages and I want to use pageref and hyperref to link to these rows.

But whatever I try, the links always refer to the start of the table. When I look into the aux file, the labels all seem to be re-defined into table.[number of table].

I tried putting invisible dummy figures into the table, but that just gives me errors of too many floats.

I also tried putting the labels into minipages, to no avail.

Even putting the labels into footnotes doesn't work, somehow longtable always seems to get to them.

+1  A: 

According to This article and The readme for Hyperref you need to include the Hyperref package after you include Longtable

ConcernedOfTunbridgeWells
This is good advice, but unfortunately it doesn't solve this specific problem.
ChrisN
+1  A: 

I solved this problem by introducing a custom counter and label command:

\newcounter{mycounter}
\newcommand{\mylabel}[1]{\refstepcounter{mycounter} \label{#1}}
heeen