summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
index 219db4eae05..af968deeb74 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
@@ -1,6 +1,6 @@
% Copyright (c) 2003 John Lavagnino
% 2003 Ulrich Dirr
-% 2020-2021 David Fussner
+% 2020-2022 David Fussner
%
% This package is currently maintained by David Fussner.
%
@@ -28,7 +28,7 @@
% Please see biblatex-chicago.pdf for details of how to use this
% package.
-\ProvidesPackage{cmsendnotes}[2021/06/30 v 3.16 biblatex auxiliary package]
+\ProvidesPackage{cmsendnotes}[2022/07/02 v 3.18 biblatex auxiliary package]
\RequirePackage{kvoptions}
\RequirePackage{endnotes}
@@ -84,6 +84,7 @@
\newcounter{Hendnote}
\newcounter{cms@enttotal}
\newcounter{cms@entprinted}
+\newcounter{cms@endnote}% Give each endnote in document a unique ID
%%% Hyperendnotes redefines portions of the endnotes package, now
%%% further redefined for CMS
@@ -159,14 +160,16 @@
\@ifnextchar[%]
\@xendnotemark{%
\stepcounter{endnote}%
+ \stepcounter{cms@endnote}%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@cms@endnote}%
\@endnotemark}}%
\def\@xendnotemark[#1]{%
+ \stepcounter{cms@endnote}%
\begingroup\c@endnote#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@cms@endnote}%
\endgroup
\@endnotemark}%
@@ -174,14 +177,14 @@
\@ifnextchar[%]
\@xendnotenext{%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@cms@endnote}%
\@endnotetext}}%
\def\@xendnotenext[#1]{%
\begingroup
\c@endnote=#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@cms@endnote}%
\endgroup
\@endnotetext}%
@@ -189,15 +192,17 @@
\@ifnextchar[%]
\@xendnote{%
\stepcounter{endnote}%
+ \stepcounter{cms@endnote}%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@cms@endnote}%
\@endnotemark\@endnotetext}}%
\def\@xendnote[#1]{%
+ \stepcounter{cms@endnote}%
\begingroup
\c@endnote=#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@cms@endnote}%
\show\@theenvalue
\endgroup
\@endnotemark\@endnotetext}%