From a7b0fb2a644294f319814d2646e4b80d810dc979 Mon Sep 17 00:00:00 2001 From: Karl Berry 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/doc/latex/sepfootnotes/README | 5 ++++- .../doc/latex/sepfootnotes/sepfootnotes.pdf | Bin 217556 -> 218406 bytes .../doc/latex/sepfootnotes/sepfootnotes.tex | 9 +++++---- .../tex/latex/sepfootnotes/sepfootnotes.sty | 12 +++++++----- 4 files changed, 16 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/sepfootnotes/README b/Master/texmf-dist/doc/latex/sepfootnotes/README index c34af5dfa99..e0f9ac9aacc 100644 --- a/Master/texmf-dist/doc/latex/sepfootnotes/README +++ b/Master/texmf-dist/doc/latex/sepfootnotes/README @@ -5,6 +5,9 @@ This package supports footnotes and endnotes from separate files. This is achieved with commands \sepfootnotecontent and \sepfootnote; the former defines the content of a note, while the latter typesets that note. +2016/07/18 v0.3c + * Package options Note definitions may take global scope + 2014/07/22 v0.3b * Documentation Minor formatting changes to page 4 @@ -38,7 +41,7 @@ Usage: *See sepfootnotes.pdf -------------------------------------------------------------------------------- -Copyright (C) 2013, 2014 Eduardo C. Lourenço de Lima +Copyright (C) 2013-2016 Eduardo C. Lourenço de Lima This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html diff --git a/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.pdf b/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.pdf index 2f566238d65..0cb449cb218 100644 Binary files a/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.pdf and b/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.pdf differ diff --git a/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.tex b/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.tex index 414058c91bd..4000f00fad0 100644 --- a/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.tex +++ b/Master/texmf-dist/doc/latex/sepfootnotes/sepfootnotes.tex @@ -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 @@ -44,11 +44,11 @@ {\begin{center}\begin{minipage}[t]{0.5\linewidth}} {\end{minipage}\end{center}} \newcommand\TODO{\texttt{Todo:}} -\newcommand\fileversion{0.3b} -\newcommand\filedate{July 22, 2014} +\newcommand\fileversion{0.3c} +\newcommand\filedate{July 18, 2016} \begin{document} \title{The \textsf{\color{myblue} sepfootnotes} package,\thanks{This document corresponds to \textsf{sepfootnotes}~\fileversion, dated~\filedate. -I am grateful to Michael Sellhoff and Sam Foster for their valuable feedback on \texttt{sepfootnotes}, and to Dan Luecking for the basic idea implemented in this package.}\\{or a footnote to Plato}} +I am grateful to Michael Sellhoff, Sam Foster, Mats, and David Carlisle for their valuable feedback on \texttt{sepfootnotes} and to Dan Luecking for the basic idea implemented in this package.}\\{or a footnote to Plato}} \author{Eduardo C. Louren\c{c}o de Lima \\ \texttt{elourenco@phi.pro.br}} \maketitle @@ -276,6 +276,7 @@ Default:\footnote{Adapted from the \texttt{endnotes} package.} \item[|warn|] Print warning messages. (Default.) \item[|error|] Print warning messages, halt, and wait for user input. \item[|quiet|] Suppress warning and error messages. +\item[|global|] Notes defined within environments and groups take global scope and become available throughout, as if they were defined in the preamble. \end{list} \section{Examples} 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