[texhax] memoir, hyperref, nameref

Victor Ivrii vivrii at gmail.com
Sat Apr 17 20:28:20 CEST 2010


I took hyperref 2010/04/16 v6.80w (including nameref 2.38) from TUG
and tried again. Still this particular example does not work.
(BTW, thanks for taking care of theorems)

>From foo.aux
\newlabel{MyLabel}{{}{1}{\relax }{}{}}
and
bar.tex stumbles upon \ref{foo-MyLabel}
It does not return ? but an error

{\@thirdoffive }\fi \endgroup  \end {document}
! File ended while scanning use of \Hy at setref@link.
<inserted text>
                \par
<*> bar.tex

? q
OK, entering \batchmode...
! Emergency stop.
<*> bar.tex

*** (job aborted, no legal \end found)

If I manually edit
\newlabel{MyLabel}{{}{1}{\relax }{}{}}
replacing it by
\newlabel{MyLabel}{{My Great Article}{1}{\relax }{}{}}

then foo.tex returns My Great Article


So, I think that if the label is not inside of any environment, it is
*still* inside of the largest environment document itself and the
title of document should go there.

I think that this makes a sense with xr-hyper




\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{nameref}
\label{MyLabel}
\begin{document}
blah
\end{document}



%%%bar.tex%%%
\documentclass[12pt]{article}
\usepackage{xr-hyper}
\usepackage{hyperref}
\usepackage{nameref}
\externaldocument[foo-]{foo}[foo.pdf]
\begin{document}
blah
\nameref{foo-MyLabel}
\end{document}


Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.aux
Type: application/octet-stream
Size: 614 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20100417/e30575b4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bar.log
Type: application/octet-stream
Size: 9643 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20100417/e30575b4/attachment-0001.obj>


More information about the texhax mailing list