[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Heiko Oberdiek] Re: Bug#351260: hyperref+float: broken links to floats



Since mail to nnn-forwarded doesn't get to the maintainer, here's a copy
for the list:

--- Begin Message ---
On Mon, Feb 06, 2006 at 04:28:06PM +0100, Frank Küster wrote:

> here's a bugreport about the interaction of hyperref and float, with a
> minimal example and a patch against hyperref:
> 
> Braun Gabor <braung@renyi.hu> wrote:
> 
> > Suggested patch:
> > --- /usr/share/texmf-tetex/tex/latex/hyperref/hyperref.sty	2004-03-14 12:00:23.000000000 +0100
> > +++ ../hyperref.sty	2006-02-02 18:05:27.000000000 +0100
> > @@ -3472,7 +3472,10 @@
> >    \renewcommand{\float@makebox}[1]{%
> >      \HyOrg@float@makebox{%
> >        #1\relax
> > -      \hyper@@anchor{\@currentHref}{\relax}%
> > +      \begingroup
> > +        \hyper@makecurrent{\@captype}%
> > +        \hyper@@anchor{\@currentHref}{\relax}%
> > +      \endgroup
> >      }%
> >    }%
> >  }{}
> >
> > The added \hyper@makecurrent macro is meant to fix the identifier of 
> > the anchor.  The additional \begingroup, \endgroup is for mkaing the 
> > effect of \hyper@makecurrent local.  (I don't know if this extra 
> > grouping is needed.)
> >
> > Last, the patch seems to make the problem disappear: no pdflatex 
> > errors, links pointing to where they should.

Many thanks. Next hyperref version contains the patch.

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>


--- End Message ---

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)

Reply to: