summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-26 21:45:42 +0000
committerKarl Berry <karl@freefriends.org>2021-01-26 21:45:42 +0000
commitea1957a75364df664dd654d58227b0313167ac7e (patch)
tree1715e17bebd7d3adf1f1994679f5fa115b35692a /Master/texmf-dist/tex/latex
parent7242b8e75555225e663a414505f1c5a0e83ac35b (diff)
footnotehyper (26jan21)
git-svn-id: svn://tug.org/texlive/trunk@57527 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty23
1 files changed, 17 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty b/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
index 568e688e040..66720f10269 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}%
- [2019/11/07 v1.1a hyperref aware footnote.sty (JFB)]
+ [2021/01/26 v1.1b hyperref aware footnote.sty (JFB)]
%%
%% Package: footnotehyper
-%% Version: 1.1a (2019/11/07)
+%% Version: 1.1b (2021/01/26)
%% License: LPPL 1.3c
-%% Copyright (C) 2016-2019 Jean-Francois Burnol <jfbu at free dot fr>.
+%% Copyright (C) 2016-2021 Jean-Francois Burnol <jfbu at free dot fr>.
%%
\DeclareOption*%
{\PackageWarning{footnotehyper}{Option `\CurrentOption' is unknown}}%
@@ -223,9 +223,20 @@
\FNH@@@1.2!3?4,\FNH@@@\relax
}%
\long\def\FNH@check@a #11.2!3?4,#2\FNH@@@#3{%
- \ifx\relax#3\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
- \FNH@bad@makefntext@alert
- {\def\FNH@prefntext{#1}\def\FNH@postfntext{#2}\FNH@check@b}%
+ \ifx\relax#3\FNH@bad@makefntext@alert
+ \else
+ \edef\FNH@restore@{\catcode`\noexpand\@\the\catcode`\@\relax}%
+ \makeatletter
+ \ifx\@makefntextFB\undefined
+ \expandafter\@gobble\else\expandafter\@firstofone\fi
+ {\@ifclassloaded{memoir}%
+ {\ifFBFrenchFootnotes\expandafter\@gobble\fi}%
+ {}}%
+ \@secondoftwo
+ \scantokens{\def\FNH@prefntext{#1}\def\FNH@postfntext{#2}}%
+ \FNH@restore@
+ \expandafter\FNH@check@b
+ \fi
}%
\def\FNH@check@b #1\relax{%
\expandafter\expandafter\expandafter\FNH@check@c