From a7b0fb2a644294f319814d2646e4b80d810dc979 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 19 Jul 2016 22:26:36 +0000
Subject: sepfootnotes (19jul16)

git-svn-id: svn://tug.org/texlive/trunk@41732 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty')

diff --git a/Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty b/Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty
index 1463db5c9a9..d953d300226 100644
--- a/Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty
+++ b/Master/texmf-dist/tex/latex/sepfootnotes/sepfootnotes.sty
@@ -1,4 +1,4 @@
-%% Copyright (C) 2013, 2014 Eduardo C. Lourenço de Lima
+%% Copyright (C) 2013-2016 Eduardo C. Lourenço de Lima
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -10,18 +10,20 @@
 %% and version 1.3 or later is part of all distributions of LaTeX
 %% version 2005/12/01 or later.
 %% 
-\NeedsTeXFormat{LaTeX2e}[1996/06/01]
-\ProvidesPackage{sepfootnotes}[2014/07/22 v0.3b Footnotes in separate file]
+\NeedsTeXFormat  {LaTeX2e}      [1996/06/01]
+\ProvidesPackage {sepfootnotes} [2016/07/18 v0.3c Footnotes in separate file]
 
 \newcommand\sep@packagename{sepfootnotes}
 
 \DeclareOption {quiet}             {\sep@opt@quiettrue}
 \DeclareOption {warn}              {\sep@opt@warntrue}
 \DeclareOption {error}             {\sep@opt@errortrue}
+\DeclareOption {global}            {\sep@opt@globaltrue}
 
 \newif \ifsep@opt@quiet
 \newif \ifsep@opt@warn
 \newif \ifsep@opt@error
+\newif \ifsep@opt@global
 
 \sep@opt@warntrue
 
@@ -131,7 +133,7 @@
 
 \newcommand\sep@namedef [3]
 {\@ifundefined{sepfootnotes@text@#1@#2}
- {\@namedef{sepfootnotes@text@#1@#2}{#3}}
+ {\ifsep@opt@global\global\fi\@namedef{sepfootnotes@text@#1@#2}{#3}}
  {\ifsep@opt@error
    \PackageError   {\sep@packagename} {`#2' is already in use}
                                       {`#2' is already in use.\MessageBreak
@@ -142,7 +144,7 @@
    \PackageWarning {\sep@packagename} {`#2' is already in use}
   \fi}}
 
-\newcommand\sep@namereplace  [3] {\@namedef{sepfootnotes@text@#1@#2}{#3}}
+\newcommand\sep@namereplace  [3] {\ifsep@opt@global\global\fi\@namedef{sepfootnotes@text@#1@#2}{#3}}
 
 % ---------------------------------- marks ------------------------------------
 
-- 
cgit v1.2.3

