# [OS X TeX] hyperref and lineno issue

Alan T Litchfield alan at alphabyte.co.nz
Sat Jun 30 20:33:07 EDT 2012

Hi,

Apologies for the cross post. This is a bit urgent.

I am using the lineno package to generate page and line number cross
references.

The lineno package is stated in the preamble as:
\usepackage[pagewise]{lineno}
\modulolinenumbers[7]
\renewcommand\linenumberfont{\normalfont\tiny\sffamily\textcolor{white}}

The hyperref package is stated in the preamble as:

The cross references work correctly, that is,
\pageref{ll302}:\ref{ll302} points to an anchor \linelabel{ll302}.

This generates on the page "54:12", that is, page 54, line 12.

However, hyperrref does not appear to recognise linelabel. Therefore the
error "pdfTeX warning (dest): name {UNDEFINED} has been referenced but
does not exist, replaced by a fixed one" is generated. That means that
all the references are pointing to page 1 instead of, in this case, page 54.

How do I get hyperref to recognise linelabel?

Cheers
Alan Litchfield