<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Sorry for the HTML ... (trying .tex attachment as well)<br/></div><div><br/></div><div>%% Workarounds \hyperlinelabel{LABEL}, \hyperlineref{LABEL}:<br/>\makeatletter<br/> \newcommand*{\simpleref}[1]{%<br/> \expandafter\@evalref\csname r@#1\endcsname}<br/> \newcommand*{\@evalref}[1]{%<br/> \ifx#1\relax ??\else \expandafter\@car#1\@nil\fi<br/> }<br/>\makeatother<br/>\newcommand*{\hyperlinelabel}[1]{%<br/> \hypertarget{#1}{\linelabel{#1}}}<br/>\newcommand*{\hyperlineref}[1]{%<br/> \hyperlink{#1}{\simpleref{#1}}}<br/>%% <- \lineref finally calls \ref, that doesn't work right now<br/>%% Now trying to make \ref work or at least to make a version <br/>%% of \simpleref that complains more loudly when undefined.<br/>%% U.L. 2012-07-02<br/></div><div><br/></div><div>Good luck, <br/></div><div><br/></div><div> Uwe.<br/>
<br/></div><div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;">
<b>Gesendet:</b> Sonntag, 01. Juli 2012 um 23:40 Uhr<br/>
<b>Von:</b> "Uwe Lueck" <uwe.lueck@web.de><br/>
<b>An:</b> "Alan T Litchfield" <alan@alphabyte.co.nz>, "TeX Mailing List" <MacOSX-TeX@email.esm.psu.edu>, texhax@tug.org<br/>
<b>Cc:</b> heiko.oberdiek@googlemail.com<br/>
<b>Betreff:</b> Re: [texhax] hyperref and lineno issue
</div>
<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;"><div>Sorry for the HTML, if it is urgent, I cannot avoid it. <br/></div><div>That's one reason why I haven't responded for a while. <br/></div><div>I must remove some thousand mails from my inbox <br/></div><div>before I can use a mail program that doesn't send HTML.<br/></div><div><br/></div><div>I am the maintainer of lineno.sty and know about this issue.<br/></div><div><br/></div><div>First, I recommend not to expect that this works soon.<br/></div><div>Rather, I might offer some \lineref that does not <br/></div><div>try to look like a hyperlink.<br/></div><div><br/></div><div>Or, suddenly I think of these workarounds: <br/></div><div>\newcommand{\hyperlinelabel}[1]{%<br/></div><div> \hypertarget{#1}{\linelabel{#1}}}<br/></div><div>\newcommand{\hyperlineref}[1]{%<br/></div><div> \hyperlink{#1}{\lineref{#1}}}<br/></div><div><br/></div><div>I am about to sleep and won't try myself the next six hours.<br/></div><div><br/></div><div>BTW, I have made progress with indexes referring <br/></div><div>to line numbers and am preparing an upload of this.<br/></div><div><br/></div><div>Good lueck, <br/></div><div><br/></div><div> Uwe.<br/></div><div><br/></div><div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;">
<b>Gesendet:</b> Sonntag, 01. Juli 2012 um 02:33 Uhr<br/>
<b>Von:</b> "Alan T Litchfield" <alan@alphabyte.co.nz><br/>
<b>An:</b> "TeX Mailing List" <MacOSX-TeX@email.esm.psu.edu>, texhax@tug.org<br/>
<b>Betreff:</b> [texhax] hyperref and lineno issue
<br/></div>
<div>
Hi,<br/>
<br/>
Apologies for the cross post. This is a bit urgent.<br/>
<br/>
I am using the lineno package to generate page and line number cross <br/>
references.<br/>
<br/>
The lineno package is stated in the preamble as:<br/>
\usepackage[pagewise]{lineno}<br/>
\modulolinenumbers[7]<br/>
\renewcommand\linenumberfont{\normalfont\tiny\sffamily\textcolor{white}}<br/>
<br/>
The hyperref package is stated in the preamble as:<br/>
\usepackage[pdfhighlight={/I}, hidelinks]{hyperref}<br/>
<br/>
<br/>
The cross references work correctly, that is,<br/>
\pageref{ll302}:\ref{ll302} points to an anchor \linelabel{ll302}.<br/>
<br/>
This generates on the page "54:12", that is, page 54, line 12.<br/>
<br/>
However, hyperrref does not appear to recognise linelabel. Therefore the <br/>
error "pdfTeX warning (dest): name {UNDEFINED} has been referenced but <br/>
does not exist, replaced by a fixed one" is generated. That means that <br/>
all the references are pointing to page 1 instead of, in this case, page 54.<br/>
<br/>
How do I get hyperref to recognise linelabel?<br/>
<br/>
Cheers<br/>
Alan Litchfield <br/>
_______________________________________________<br/>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br/>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br/>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br/>
<br/>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br/>
Human mailing list managers: postmaster@tug.org<br/>
</div>
</div><div><br/><br/></div></div>
</div>
</div><div><br/><br/></div></div></body></html>