texlive[43424] Master/texmf-dist: footnotehyper (7mar17)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 7 23:42:39 CET 2017


Revision: 43424
          http://tug.org/svn/texlive?view=revision&revision=43424
Author:   karl
Date:     2017-03-07 23:42:39 +0100 (Tue, 07 Mar 2017)
Log Message:
-----------
footnotehyper (7mar17)

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	2017-03-07 22:42:17 UTC (rev 43423)
+++ trunk/Master/texmf-dist/doc/latex/footnotehyper/README.md	2017-03-07 22:42:39 UTC (rev 43424)
@@ -1,6 +1,6 @@
 <!-- -->
 
-    Source:  footnotehyper.dtx (v0.99 2017/02/16)
+    Source:  footnotehyper.dtx (v1.0 2017/03/07)
     Author:  Jean-Francois Burnol
     Info:    hyperref aware footnote.sty
     License: LPPL 1.3c
@@ -26,10 +26,10 @@
 optional argument `[NUM]`. Since `v0.99` all macros are defined
 internally and the `footnote` package is not loaded at all.
 
-The same user interface is kept. In case `hyperref` is absent, or
-is loaded with `hyperfootnotes=false` option, `footnotehyper`
-deactivates itself. The order of loading of `footnotehyper`
-and `hyperref` is inconsequential.
+The same user interface is kept. Since `v1.0` it is possible to
+use `footnotehyper` also in absence of `hyperref` or when the latter is
+loaded with its `hyperfootnotes=false` option. The order of loading of
+`footnotehyper` and `hyperref` is inconsequential.
 
 INSTALLATION
 ============

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	2017-03-07 22:42:17 UTC (rev 43423)
+++ trunk/Master/texmf-dist/doc/latex/footnotehyper/footnotehyper.tex	2017-03-07 22:42:39 UTC (rev 43424)
@@ -1,13 +1,13 @@
 %%
 %% 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>.
 %%
 \def\pkgname        {footnotehyper}
-\def\pkgdate        {2017/02/16}
-\def\docdate        {2017/02/16}
-\def\pkgversion     {v0.99}
+\def\pkgdate        {2017/03/07}
+\def\docdate        {2017/03/07}
+\def\pkgversion     {v1.0}
 \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	2017-03-07 22:42:17 UTC (rev 43423)
+++ trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.dtx	2017-03-07 22:42:39 UTC (rev 43424)
@@ -1,11 +1,11 @@
 % -*- coding: utf-8; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z" -*-
 %<*none>
-\def\dtxtimestamp {Time-stamp: <16-02-2017 at 20:01:27 CET>}
+\def\dtxtimestamp {Time-stamp: <07-03-2017 at 11:11:11 CET>}
 %</none>
 %<*!readme>
 %%
 %% 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>.
 %%
@@ -12,9 +12,9 @@
 %</!readme>
 %<*insfile|tex>
 \def\pkgname        {footnotehyper}
-\def\pkgdate        {2017/02/16}
-\def\docdate        {2017/02/16}
-\def\pkgversion     {v0.99}
+\def\pkgdate        {2017/03/07}
+\def\docdate        {2017/03/07}
+\def\pkgversion     {v1.0}
 \def\pkgdescription {hyperref aware footnote.sty (JFB)}
 %</insfile|tex>
 %<*none>
@@ -25,7 +25,7 @@
     \catcode32=13\catcode`\\=12^^Brelax^^A
 ^^Bfirstofone{^^Bendgroup^^Bdef^^BpkgLicense^^A
 {% 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>.
 %
@@ -54,7 +54,7 @@
 %<*readme>
 <!-- -->
 
-    Source:  footnotehyper.dtx (v0.99 2017/02/16)
+    Source:  footnotehyper.dtx (v1.0 2017/03/07)
     Author:  Jean-Francois Burnol
     Info:    hyperref aware footnote.sty
     License: LPPL 1.3c
@@ -81,12 +81,11 @@
 optional argument `[NUM]`. Since `v0.99` all macros are defined
 internally and the `footnote` package is not loaded at all.
 
-The same user interface is kept. In case `hyperref` is absent, or
-is loaded with `hyperfootnotes=false` option, `footnotehyper`
-deactivates itself. The order of loading of `footnotehyper`
-and `hyperref` is inconsequential.
+The same user interface is kept. Since `v1.0` it is possible to
+use `footnotehyper` also in absence of `hyperref` or when the latter is
+loaded with its `hyperfootnotes=false` option. The order of loading of
+`footnotehyper` and `hyperref` is inconsequential.
 
-
 INSTALLATION
 ============
 
@@ -368,10 +367,10 @@
 optional argument `[NUM]`. Since `v0.99` all macros are defined
 internally and the `footnote` package is not loaded at all.
 
-The same user interface is kept. In case `hyperref` is absent, or
-is loaded with `hyperfootnotes=false` option, \fnh
-deactivates itself. The order of loading of \fnh
-and `hyperref` is inconsequential.
+The same user interface is kept. Since `v1.0` it is possible to
+use \fnh also in absence of `hyperref` or when the latter is
+loaded with its `hyperfootnotes=false` option. The order of loading of
+\fnh and `hyperref` is inconsequential.
 \end{abstract}
 \DeleteShortVerb{\`}
 
@@ -384,15 +383,15 @@
 
 \section{Usage}
 
-You \emph{must} load |hyperref|\footnote{Since |v0.9e| \fnh
-  deactivates itself gracefully if |hyperref| is not loaded, or
-  under |hyperref| option |hyperfootnotes=false|.}, but it does
-not matter if before or after \fnh. Since |v0.99|, \fnh does not
+Since |v0.99|, \fnh does not
 load package
 |footnote.sty|\footnote{\url{http://ctan.org/pkg/footnote}}
 anymore, and is even incompatible with it at it uses the same user
 interface.
 
+Since |v1.0|, \fnh is usable also in absence of |hyperref| or when
+the latter was passed |hyperfootnotes=false| option.
+
 The package thus provides:
 \begin{itemize}
 \item a |savenotes| environment which re-routes footnotes and delivers them at
@@ -549,8 +548,8 @@
 \begin{footnote}[57]\csname @minipagetrue\endcsname % to reduce
                                 % framed inserted vertical spacing
   \begin{framed}
-    \noindent\fnh deactivates itself if |hyperfootnotes=false| option to
-    |hyperref| is detected, or if |hyperref| is not loaded at all.
+    \noindent\fnh works since |v1.0| also in absence of |hyperref| or when the
+    latter was passed |hyperfootnotes=false| option.
   \end{framed}
 \end{footnote}.
 There is no problem with the hyperlink, then.
@@ -594,13 +593,6 @@
   |amsmath| measuring step.
 \end{itemize}
 
-% During this I realized (this is unrelated to |footnote| package or
-% \fnh) that there is a typesetting interference of |hyperref| with
-% |babel+frenchb| in the case of the |\footnotemark[N]| syntax. \fnh
-% does not fix that. I reported the problem and perhaps an upstream
-% fix will come at a later date (tested with |hyperref 6.83q| and
-% |frenchb 3.2c|).
-
 \StopEventually{\end{document}\endinput}
 \makeatletter
     \let\check at percent\original at check@percent
@@ -669,6 +661,9 @@
 % \item the footnote environment from |footnote.sty| does not work if used with
 % optional argument |[N]|.
 % \end{itemize}
+%
+% \noindent Starting with |v1.0|, \fnh may be used also in absence
+% of |hyperref|.
 %    \begin{macrocode}
 \newbox\FNH at notes
 \newdimen\FNH at width
@@ -675,10 +670,9 @@
 \let\FNH at colwidth\columnwidth
 \newif\ifFNH at savingnotes
 \AtBeginDocument {%
-  \@ifpackageloaded{hyperref}
-  {\ifHy at hyperfootnotes
     \let\FNH at latex@footnote    \footnote
     \let\FNH at latex@footnotetext\footnotetext
+    \let\FNH at H@@footnotetext   \@footnotetext
     \newenvironment{savenotes}
         {\FNH at savenotes\ignorespaces}{\FNH at spewnotes\ignorespacesafterend}%
     \let\spewnotes      \FNH at spewnotes
@@ -686,12 +680,13 @@
     \let\footnotetext   \FNH at footnotetext
     \let\endfootnote    \FNH at endfntext
     \let\endfootnotetext\FNH at 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 at hyperfootnotes
+         \let\FNH at H@@footnotetext\H@@footnotetext
+      \else
+         \let\FNH at hyper@fntext\FNH at nohyp@fntext
+      \fi}%
+     {\let\FNH at hyper@fntext\FNH at nohyp@fntext}%
 }%
 %    \end{macrocode}
 % \begin{macro}{\FNH at hyper@fntext}
@@ -804,7 +799,8 @@
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\FNH at spewnotes}
-% This uses \cs{H@@footnotetext} which is the preserved original
+% 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.
 %    \begin{macrocode}
 \def\FNH at spewnotes {%
@@ -815,7 +811,7 @@
      \let\@makefntext\@empty
      \let\@finalstrut\@gobble
      \let\rule\@gobbletwo
-     \H@@footnotetext{\unvbox\FNH at notes}%
+     \FNH at H@@footnotetext{\unvbox\FNH at notes}%
     \endgroup
    \fi
   \fi
@@ -897,7 +893,7 @@
     \ifFNH at savingnotes
       \def\FNH at endfntext@fntext{\FNH at nohyp@fntext}%
     \else
-      \def\FNH at endfntext@fntext{\H@@footnotetext}%
+      \def\FNH at endfntext@fntext{\FNH at H@@footnotetext}%
     \fi
     \FNH at startfntext
 }%
@@ -913,8 +909,8 @@
 % \cs{FNH at endfntext}.
 %
 % The \cs{FNH at endfntext@fntext} may be \cs{@footnotetext} (which will be
-% \cs{FNH at hyper@fntext} in |savingnotes| environment), or
-% \cs{H@@footnotetext}, or \cs{FNH at nohyp@fntext} if in |savingnotes| scope.
+% \cs{FNH at hyper@fntext} in |savenotes| environment), or
+% \cs{FNH at H@@footnotetext}, or \cs{FNH at nohyp@fntext} if in |savenotes| scope.
 %    \begin{macrocode}
 \def\FNH at startfntext{%
   \setbox\z@\vbox\bgroup
@@ -937,12 +933,12 @@
 % \begin{macro}{\@makefntext}
 % \begin{macro}{\FNH at prefntext}
 % \begin{macro}{\FNH at postfntext}
-%   The definitions of |\FNH at prefntext| and |\FNH at prefntext| (which are needed
+%   The definitions of |\FNH at prefntext| and |\FNH at postfntext| (which are needed
 %   for the |footnote| environment, |\FNH at startfntext| and |\FNH at endfntext|)
 %   are extracted from a somewhat daring analysis of |\@makefntext|.
-%   Contrarily to |footnote.sty|'s original code (which may cause low level
-%   \TeX\
-%   errors in bad cases) the method here will alert the user if the argument
+%   Contrarily to |footnote.sty|'s original code (which may result in low level
+%   \TeX\ errors when the |footnote| environment is executed)
+%   the method here will alert the user if the argument
 %   of |\@makefntext| is not visible at top level in its meaning or is used
 %   there multiple times. We also insert here some code to handle especially
 %   the case of |babel-frenchb|.

Modified: trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins	2017-03-07 22:42:17 UTC (rev 43423)
+++ trunk/Master/texmf-dist/source/latex/footnotehyper/footnotehyper.ins	2017-03-07 22:42:39 UTC (rev 43424)
@@ -1,13 +1,13 @@
 %%
 %% 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>.
 %%
 \def\pkgname        {footnotehyper}
-\def\pkgdate        {2017/02/16}
-\def\docdate        {2017/02/16}
-\def\pkgversion     {v0.99}
+\def\pkgdate        {2017/03/07}
+\def\docdate        {2017/03/07}
+\def\pkgversion     {v1.0}
 \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	2017-03-07 22:42:17 UTC (rev 43423)
+++ trunk/Master/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty	2017-03-07 22:42:39 UTC (rev 43424)
@@ -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 at colwidth\columnwidth
 \newif\ifFNH at savingnotes
 \AtBeginDocument {%
-  \@ifpackageloaded{hyperref}
-  {\ifHy at hyperfootnotes
     \let\FNH at latex@footnote    \footnote
     \let\FNH at latex@footnotetext\footnotetext
+    \let\FNH at H@@footnotetext   \@footnotetext
     \newenvironment{savenotes}
         {\FNH at savenotes\ignorespaces}{\FNH at spewnotes\ignorespacesafterend}%
     \let\spewnotes      \FNH at spewnotes
@@ -49,12 +48,13 @@
     \let\footnotetext   \FNH at footnotetext
     \let\endfootnote    \FNH at endfntext
     \let\endfootnotetext\FNH at 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 at hyperfootnotes
+         \let\FNH at H@@footnotetext\H@@footnotetext
+      \else
+         \let\FNH at hyper@fntext\FNH at nohyp@fntext
+      \fi}%
+     {\let\FNH at hyper@fntext\FNH at nohyp@fntext}%
 }%
 \def\FNH at hyper@fntext{\FNH at fntext\FNH at hyper@fntext at i}%
 \def\FNH at nohyp@fntext{\FNH at fntext\FNH at nohyp@fntext at i}%
@@ -129,7 +129,7 @@
      \let\@makefntext\@empty
      \let\@finalstrut\@gobble
      \let\rule\@gobbletwo
-     \H@@footnotetext{\unvbox\FNH at notes}%
+     \FNH at H@@footnotetext{\unvbox\FNH at notes}%
     \endgroup
    \fi
   \fi
@@ -183,7 +183,7 @@
     \ifFNH at savingnotes
       \def\FNH at endfntext@fntext{\FNH at nohyp@fntext}%
     \else
-      \def\FNH at endfntext@fntext{\H@@footnotetext}%
+      \def\FNH at endfntext@fntext{\FNH at H@@footnotetext}%
     \fi
     \FNH at startfntext
 }%



More information about the tex-live-commits mailing list