5

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.

heeen
  • 4,736
  • 2
  • 21
  • 24
  • If you create a minimal example of the problem (e.g., only loading longtable and hyperref and a table full of lorem ipsum text with the non-resolving links) it might be easier for us to track down the problem. – Will Robertson Nov 20 '08 at 04:27

2 Answers2

3

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

\newcounter{mycounter}
\newcommand{\mylabel}[1]{\refstepcounter{mycounter} \label{#1}}
heeen
  • 4,736
  • 2
  • 21
  • 24
1

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

ConcernedOfTunbridgeWells
  • 64,444
  • 15
  • 143
  • 197