[OS X TeX] hyperref and lineno issue

Alan T Litchfield alan at alphabyte.co.nz
Sat Jun 30 21:01:26 EDT 2012


Hi Herb,

Attached is a compilable version that uses article class.

This reproduces the behaviour I described :)

Cheers
Alan

On 1/07/12 12:40 PM, Herbert Schulz wrote:
>
> On Jun 30, 2012, at 7:33 PM, Alan T Litchfield wrote:
>
>> 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:
>> \usepackage[pdfhighlight={/I}, hidelinks]{hyperref}
>>
>>
>> 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		
>
> Howdy,
>
> Could you provide a minimal but compilable example so that we can see the problem? In particular, are you using the hyperref package after using the lineno package?
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

-- 
AlphaByte
PO Box 1941, Auckland
http://www.alphabyte.co.nz


-------------- next part --------------
A non-text attachment was scrubbed...
Name: linenohyperrefexample.tex
Type: application/x-tex
Size: 9319 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20120701/7b369b7c/attachment.tex>


More information about the MacOSX-TeX mailing list