summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/footnotehyper
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-24 21:50:28 +0000
committerKarl Berry <karl@freefriends.org>2018-01-24 21:50:28 +0000
commit6e8eb123c6514c1d394bc9a3064da18abc82b9fa (patch)
tree7aae82c1c259ae9caacb027cc370615302bdf300 /Master/texmf-dist/tex/latex/footnotehyper
parentedc0410fb9472569538d4656bf7a780fc69b2a68 (diff)
footnotehyper (24jan18)
git-svn-id: svn://tug.org/texlive/trunk@46431 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/footnotehyper')
-rw-r--r--Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty b/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
index 5961bfecf9f..2d204d256dd 100644
--- a/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
+++ b/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
@@ -23,12 +23,12 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{footnotehyper}%
- [2017/03/07 v1.0 hyperref aware footnote.sty (JFB)]
+ [2018/01/23 v1.1 hyperref aware footnote.sty (JFB)]
%%
%% Package: footnotehyper
-%% Version: 1.0 (2017/03/07)
+%% Version: 1.1 (2018/01/23)
%% License: LPPL 1.3c
-%% Copyright (C) 2016-2017 Jean-Francois Burnol <jfbu at free dot fr>.
+%% Copyright (C) 2016-2018 Jean-Francois Burnol <jfbu at free dot fr>.
%%
\DeclareOption*%
{\PackageWarning{footnotehyper}{Option `\CurrentOption' is unknown}}%
@@ -41,6 +41,7 @@
\let\FNH@latex@footnote \footnote
\let\FNH@latex@footnotetext\footnotetext
\let\FNH@H@@footnotetext \@footnotetext
+ \let\FNH@H@@mpfootnotetext \@mpfootnotetext
\newenvironment{savenotes}
{\FNH@savenotes\ignorespaces}{\FNH@spewnotes\ignorespacesafterend}%
\let\spewnotes \FNH@spewnotes
@@ -51,6 +52,7 @@
\@ifpackageloaded{hyperref}
{\ifHy@hyperfootnotes
\let\FNH@H@@footnotetext\H@@footnotetext
+ \let\FNH@H@@mpfootnotetext\H@@mpfootnotetext
\else
\let\FNH@hyper@fntext\FNH@nohyp@fntext
\fi}%
@@ -107,7 +109,7 @@
\FNH@savingnotestrue
\let\@footnotetext \FNH@hyper@fntext
\let\@mpfootnotetext \FNH@hyper@fntext
- \let\H@@mpfootnotetext\FNH@nohyp@fntext % fool hyperref's \@xfootnotetext
+ \let\H@@mpfootnotetext\FNH@nohyp@fntext % fool hyperref's \@xfootnotenext
\FNH@width\columnwidth
\let\FNH@colwidth\FNH@width
\global\setbox\FNH@notes\box\voidb@x
@@ -129,7 +131,11 @@
\let\@makefntext\@empty
\let\@finalstrut\@gobble
\let\rule\@gobbletwo
- \FNH@H@@footnotetext{\unvbox\FNH@notes}%
+ \ifx\@footnotetext\@mpfootnotetext
+ \expandafter\FNH@H@@mpfootnotetext
+ \else
+ \expandafter\FNH@H@@footnotetext
+ \fi{\unvbox\FNH@notes}%
\endgroup
\fi
\fi