diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty b/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty index 192a473dcbf..5961bfecf9f 100644 --- a/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty +++ b/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty @@ -23,10 +23,10 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{footnotehyper}% - [2017/02/16 v0.99 hyperref aware footnote.sty (JFB)] + [2017/03/07 v1.0 hyperref aware footnote.sty (JFB)] %% %% Package: footnotehyper -%% Version: 0.99 (2017/02/16) +%% Version: 1.0 (2017/03/07) %% License: LPPL 1.3c %% Copyright (C) 2016-2017 Jean-Francois Burnol <jfbu at free dot fr>. %% @@ -38,10 +38,9 @@ \let\FNH@colwidth\columnwidth \newif\ifFNH@savingnotes \AtBeginDocument {% - \@ifpackageloaded{hyperref} - {\ifHy@hyperfootnotes \let\FNH@latex@footnote \footnote \let\FNH@latex@footnotetext\footnotetext + \let\FNH@H@@footnotetext \@footnotetext \newenvironment{savenotes} {\FNH@savenotes\ignorespaces}{\FNH@spewnotes\ignorespacesafterend}% \let\spewnotes \FNH@spewnotes @@ -49,12 +48,13 @@ \let\footnotetext \FNH@footnotetext \let\endfootnote \FNH@endfntext \let\endfootnotetext\FNH@endfntext - \else - \PackageInfo{footnotehyper}% - {inactive due to hyperfootnotes=false option}% - \fi}% - {\PackageWarning{footnotehyper}{^^J\@spaces\@spaces*************^^J% - \space deactivating myself as hyperref is not detected !^^J}}% + \@ifpackageloaded{hyperref} + {\ifHy@hyperfootnotes + \let\FNH@H@@footnotetext\H@@footnotetext + \else + \let\FNH@hyper@fntext\FNH@nohyp@fntext + \fi}% + {\let\FNH@hyper@fntext\FNH@nohyp@fntext}% }% \def\FNH@hyper@fntext{\FNH@fntext\FNH@hyper@fntext@i}% \def\FNH@nohyp@fntext{\FNH@fntext\FNH@nohyp@fntext@i}% @@ -129,7 +129,7 @@ \let\@makefntext\@empty \let\@finalstrut\@gobble \let\rule\@gobbletwo - \H@@footnotetext{\unvbox\FNH@notes}% + \FNH@H@@footnotetext{\unvbox\FNH@notes}% \endgroup \fi \fi @@ -183,7 +183,7 @@ \ifFNH@savingnotes \def\FNH@endfntext@fntext{\FNH@nohyp@fntext}% \else - \def\FNH@endfntext@fntext{\H@@footnotetext}% + \def\FNH@endfntext@fntext{\FNH@H@@footnotetext}% \fi \FNH@startfntext }% |