summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-02 20:06:41 +0000
committerKarl Berry <karl@freefriends.org>2022-07-02 20:06:41 +0000
commit2a03d11cc64ef018e3873c64a3cc80872b3f3473 (patch)
tree5eedb8c527482090965f22d009ddcd5fba4adea0 /Master/texmf-dist/tex/latex/biblatex-chicago/cmsendnotes.sty
parent89d1e4fb1dfa217e9a1f17ec7fe06fcff916b22a (diff)
biblatex-chicago (2jul22)
git-svn-id: svn://tug.org/texlive/trunk@63789 c570f23f-e606-0410-a88d-b1316a301751
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}%