On Fri, Jun 19, 2009 at 11:51 AM, Frank Küster<[email protected]> wrote:
> Bastien ROUCARIES <[email protected]> wrote:
>
>> Package: texlive-latex-extra
>> Version: 2007.dfsg.17-2
>> Severity: normal
>> Tags: patch
>>
>> Footmisc and hyperref does not wortk well together.
>
> Thank you for the patch. Could you send us a file that doesn't work
> without, but works with the patch?  Chances are good that the problem is
> already solved upstream, and I'd rather check before digging into the
> newest upstream code.


sure in this file hyperlink does not work without the patch (included
comment for non working exemple).

\documentclass{book}

\usepackage{hyperref}
\usepackage{footmisc}

%%%%% comment after
\makeatletter

\long\d...@footnotetext#1{%
     \H@@footnotetext{%
       \i...@nesting
        \hyper@@ancho...@currenthref}{#1}%
      \else
        \...@raisedlink{\hyper@@ancho...@currenthref}{\relax}}#1%
      \fi
    }}


 \d...@footnotemark{%
    \leavevmode
    \ifhmode\ed...@x@sf{\the\spacefactor}\nobreak\fi
    \...@refstepcounter{hfootnote}%
    \hy...@makecurrent{hfootnote}%
    \hy...@linkstart{link}{\@currentHref}%
    \...@makefnmark
    \hy...@linkend
    \ifhmode\spacefact...@x@sf\fi
    \relax
  }%

 \i...@multiplefootnote%
    \renewcomman...@footnotemark{%
     \leavevmode
     \ifhmode
       \ed...@x@sf{\the\spacefactor}%
       \...@mf@check
       \nobreak
     \fi
     \...@refstepcounter{hfootnote}%
     \hy...@makecurrent{hfootnote}%
     \hy...@linkstart{link}{\@currentHref}%
     \...@makefnmark
     \hy...@linkend
     \i...@pp@towrite
       \...@pp@writetemp
       \...@pp@towritefalse
     \fi
     \...@mf@prepare
     \ifhmode\spacefact...@x@sf\fi
     \relax%
   }%
 \fi

\makeatother
%%% comment before
\begin{document}
aaaa\footnote{foo}
\end{document}



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to