texlive[46431] Master/texmf-dist: footnotehyper (24jan18)
commits+karl at tug.org
commits+karl at tug.org
Wed Jan 24 22:50:28 CET 2018
Revision: 46431
http://tug.org/svn/texlive?view=revision&revision=46431
Author: karl
Date: 2018-01-24 22:50:28 +0100 (Wed, 24 Jan 2018)
Log Message:
-----------
footnotehyper (24jan18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/footnotehyper/README.md
trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.pdf
trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.tex
trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.dtx
trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins
trunk/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
Modified: trunk/Master/texmf-dist/doc/latex/footnotehyper/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/footnotehyper/README.md 2018-01-24 21:50:11 UTC (rev 46430)
+++ trunk/Master/texmf-dist/doc/latex/footnotehyper/README.md 2018-01-24 21:50:28 UTC (rev 46431)
@@ -1,10 +1,10 @@
<!-- -->
- Source: footnotehyper.dtx (v1.0 2017/03/07)
+ Source: footnotehyper.dtx (v1.1 2018/01/23)
Author: Jean-Francois Burnol
Info: hyperref aware footnote.sty
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>.
ABSTRACT
========
Modified: trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.tex 2018-01-24 21:50:11 UTC (rev 46430)
+++ trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.tex 2018-01-24 21:50:28 UTC (rev 46431)
@@ -1,13 +1,13 @@
%%
%% 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>.
%%
\def\pkgname {footnotehyper}
-\def\pkgdate {2017/03/07}
-\def\docdate {2017/03/07}
-\def\pkgversion {v1.0}
+\def\pkgdate {2018/01/23}
+\def\docdate {2018/01/23}
+\def\pkgversion {v1.1}
\def\pkgdescription {hyperref aware footnote.sty (JFB)}
%%
%% run latex twice on this file footnotehyper.tex then dvipdfmx on
Modified: trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.dtx 2018-01-24 21:50:11 UTC (rev 46430)
+++ trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.dtx 2018-01-24 21:50:28 UTC (rev 46431)
@@ -1,20 +1,20 @@
% -*- coding: utf-8; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z" -*-
%<*none>
-\def\dtxtimestamp {Time-stamp: <07-03-2017 at 11:11:11 CET>}
+\def\dtxtimestamp {Time-stamp: <23-01-2018 at 20:31:53 CET>}
%</none>
%<*!readme>
%%
%% 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>.
%%
%</!readme>
%<*insfile|tex>
\def\pkgname {footnotehyper}
-\def\pkgdate {2017/03/07}
-\def\docdate {2017/03/07}
-\def\pkgversion {v1.0}
+\def\pkgdate {2018/01/23}
+\def\docdate {2018/01/23}
+\def\pkgversion {v1.1}
\def\pkgdescription {hyperref aware footnote.sty (JFB)}
%</insfile|tex>
%<*none>
@@ -25,9 +25,9 @@
\catcode32=13\catcode`\\=12^^Brelax^^A
^^Bfirstofone{^^Bendgroup^^Bdef^^BpkgLicense^^A
{% 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>.
%
% This Work may be distributed and/or modified under the conditions
% of the LaTeX Project Public License, version 1.3c. This version of
@@ -54,11 +54,11 @@
%<*readme>
<!-- -->
- Source: footnotehyper.dtx (v1.0 2017/03/07)
+ Source: footnotehyper.dtx (v1.1 2018/01/23)
Author: Jean-Francois Burnol
Info: hyperref aware footnote.sty
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>.
ABSTRACT
@@ -392,6 +392,13 @@
Since |v1.0|, \fnh is usable also in absence of |hyperref| or when
the latter was passed |hyperfootnotes=false| option.
+Version |v1.1| fixes a bug which arose when |savenotes| environment was used
+\emph{inside} a minipage: footnotes were disappearing!%
+%
+\footnote{Thanks to François Pantigny for reporting the bug.}
+%
+See related remarks at end of \autoref{sec:notes}.
+
The package thus provides:
\begin{itemize}
\item a |savenotes| environment which re-routes footnotes and delivers them at
@@ -554,7 +561,7 @@
\end{footnote}.
There is no problem with the hyperlink, then.
-\section{Notes}
+\section{Notes}\label{sec:notes}
A few items worth of mention:
\begin{itemize}[nosep]
@@ -591,6 +598,18 @@
\item some environments typeset multiple times their contents,
which causes issues; \fnh takes provisions only to handle the
|amsmath| measuring step.
+\item
+ \LaTeX2e has some features when using footnotes in |minipage|'s
+ which are themselves in a |minipage| which may also have footnotes externally
+ to the internal minipages... try it out with some |\fbox|es around the
+ sub-|minipages|, to see.
+
+ \fnh behaves like original package |footnote| in such contexts. Only
+ reasonable usage seems to embed the entire contents of the external minipage
+ in a |savenotes| environment. But there will anyhow be collisions of the
+ alphabetic enumerations. These collisions are there with or without \fnh (or
+ |footnote.sty|.) I did not make any attempt, nor intend to in future, to
+ address in an automatized manner these problematic contexts.
\end{itemize}
\StopEventually{\end{document}\endinput}
@@ -673,6 +692,7 @@
\let\FNH at latex@footnote \footnote
\let\FNH at latex@footnotetext\footnotetext
\let\FNH at H@@footnotetext \@footnotetext
+ \let\FNH at H@@mpfootnotetext \@mpfootnotetext
\newenvironment{savenotes}
{\FNH at savenotes\ignorespaces}{\FNH at spewnotes\ignorespacesafterend}%
\let\spewnotes \FNH at spewnotes
@@ -683,6 +703,7 @@
\@ifpackageloaded{hyperref}
{\ifHy at hyperfootnotes
\let\FNH at H@@footnotetext\H@@footnotetext
+ \let\FNH at H@@mpfootnotetext\H@@mpfootnotetext
\else
\let\FNH at hyper@fntext\FNH at nohyp@fntext
\fi}%
@@ -782,7 +803,7 @@
\FNH at savingnotestrue
\let\@footnotetext \FNH at hyper@fntext
\let\@mpfootnotetext \FNH at hyper@fntext
- \let\H@@mpfootnotetext\FNH at nohyp@fntext % fool hyperref's \@xfootnotetext
+ \let\H@@mpfootnotetext\FNH at nohyp@fntext % fool hyperref's \@xfootnotenext
\FNH at width\columnwidth
\let\FNH at colwidth\FNH at width
\global\setbox\FNH at notes\box\voidb at x
@@ -802,6 +823,10 @@
% This uses \cs{FNH at H@@footnotetext} which is the
% \cs{H@@footnotetext} |hyperref|'s preserved original
% meaning of \cs{@footnotetext} not creating a link target.
+%
+% |v1.1| fixes the bug about disappearing footnotes if |savenotes| environment
+% is used inside a minipage. I had never really considered such usage, hence
+% missed realizing there was a bug.
% \begin{macrocode}
\def\FNH at spewnotes {%
\endgroup
@@ -811,7 +836,11 @@
\let\@makefntext\@empty
\let\@finalstrut\@gobble
\let\rule\@gobbletwo
- \FNH at H@@footnotetext{\unvbox\FNH at notes}%
+ \ifx\@footnotetext\@mpfootnotetext
+ \expandafter\FNH at H@@mpfootnotetext
+ \else
+ \expandafter\FNH at H@@footnotetext
+ \fi{\unvbox\FNH at notes}%
\endgroup
\fi
\fi
Modified: trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins 2018-01-24 21:50:11 UTC (rev 46430)
+++ trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins 2018-01-24 21:50:28 UTC (rev 46431)
@@ -1,13 +1,13 @@
%%
%% 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>.
%%
\def\pkgname {footnotehyper}
-\def\pkgdate {2017/03/07}
-\def\docdate {2017/03/07}
-\def\pkgversion {v1.0}
+\def\pkgdate {2018/01/23}
+\def\docdate {2018/01/23}
+\def\pkgversion {v1.1}
\def\pkgdescription {hyperref aware footnote.sty (JFB)}
%%
%% Run tex on this file to extract from footnotehyper.dtx:
Modified: trunk/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty 2018-01-24 21:50:11 UTC (rev 46430)
+++ trunk/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty 2018-01-24 21:50:28 UTC (rev 46431)
@@ -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 at latex@footnote \footnote
\let\FNH at latex@footnotetext\footnotetext
\let\FNH at H@@footnotetext \@footnotetext
+ \let\FNH at H@@mpfootnotetext \@mpfootnotetext
\newenvironment{savenotes}
{\FNH at savenotes\ignorespaces}{\FNH at spewnotes\ignorespacesafterend}%
\let\spewnotes \FNH at spewnotes
@@ -51,6 +52,7 @@
\@ifpackageloaded{hyperref}
{\ifHy at hyperfootnotes
\let\FNH at H@@footnotetext\H@@footnotetext
+ \let\FNH at H@@mpfootnotetext\H@@mpfootnotetext
\else
\let\FNH at hyper@fntext\FNH at nohyp@fntext
\fi}%
@@ -107,7 +109,7 @@
\FNH at savingnotestrue
\let\@footnotetext \FNH at hyper@fntext
\let\@mpfootnotetext \FNH at hyper@fntext
- \let\H@@mpfootnotetext\FNH at nohyp@fntext % fool hyperref's \@xfootnotetext
+ \let\H@@mpfootnotetext\FNH at nohyp@fntext % fool hyperref's \@xfootnotenext
\FNH at width\columnwidth
\let\FNH at colwidth\FNH at width
\global\setbox\FNH at notes\box\voidb at x
@@ -129,7 +131,11 @@
\let\@makefntext\@empty
\let\@finalstrut\@gobble
\let\rule\@gobbletwo
- \FNH at H@@footnotetext{\unvbox\FNH at notes}%
+ \ifx\@footnotetext\@mpfootnotetext
+ \expandafter\FNH at H@@mpfootnotetext
+ \else
+ \expandafter\FNH at H@@footnotetext
+ \fi{\unvbox\FNH at notes}%
\endgroup
\fi
\fi
More information about the tex-live-commits
mailing list