[OS X TeX] hyperref and lineno issue

Alan T Litchfield alan at alphabyte.co.nz
Sun Jul 1 17:37:29 EDT 2012


Hi Ross,

Had as close a look as I can understand what is going on between 
hyperref, nameref, and lineno.

nameref is loaded automatically by hyperref, so that is not an option, 
so to speak.

But, the issue seems to be between hyperref and lineno. According to the 
documentation in lineno.pdf, there is some incompatibility between them 
but that was sort of overcome. However, this is not resolved as my 
simple example shows.

Unless I am wrong (which is probable), nameref works a bit like titleref 
and produces the section/part/title name and not the reference data. In 
using lineno, I want the page and line numbers (reference data), not the 
name data.

What appears to be happening is hyperref is not recognising line number 
reference data. I can't figure how to get it to :(

Hyperlinks are being created but the undefined status points all the 
links to page 1.

This is a snippet from the log with relevant references. From here we 
see that nameref is being loaded.
The file, linenohyperrefexample.out is empty.

(/usr/local/texlive/2011/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./linenohyperrefexample.out) (./linenohyperrefexample.out)
(/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/t1phv.fd) 
[1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2]

Package hyperref Warning: Empty destination name,
(hyperref)                using `UNDEFINED' on input line 58.


Package hyperref Warning: Empty destination name,
(hyperref)                using `UNDEFINED' on input line 58.

[3] (./linenohyperrefexample.aux) )pdfTeX warning (dest): 
name{UNDEFINED} has been referenced but does not exist, replaced by a 
fixed one


Cheers
Alan

On 1/07/12 7:41 PM, Ross Moore wrote:
> Hi Alan,
>
> On 01/07/2012, at 11:01 AM, Alan T Litchfield wrote:
>
>> Hi Herb,
>>
>> Attached is a compilable version that uses article class.
>
> Have you tried using the  nameref  option to hyperref?
>
> There is some coding in  lineno.sty  that refers to this.
> But I've not tested your example.
>
>>
>> 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}
>
>
> Hope this helps --- no promises,
>
> 	Ross
>
> ------------------------------------------------------------------------
> Ross Moore                                       ross.moore at mq.edu.au
> Mathematics Department                           office: E7A-419
> Macquarie University                             tel: +61 (0)2 9850 8955
> Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
> ------------------------------------------------------------------------
>
>
>
>
>
> ----------- 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





More information about the MacOSX-TeX mailing list