summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty25
1 files changed, 17 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty
index 317fcb1c393..5847723412b 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty
@@ -59,28 +59,31 @@
\newif\ifenotelinks
\newcounter{Hendnote}
+\newcounter{cms@docnote}
% Redefining portions of endnotes-package:
\let\savedhref\href
\let\savedurl\url
\def\endnotemark{%
\@ifnextchar[\@xendnotemark{%
\stepcounter{endnote}%
+ \stepcounter{cms@docnote}%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\@endnotemark
}%
}%
\def\@xendnotemark[#1]{%
+ \stepcounter{cms@docnote}%
\begingroup\c@endnote#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\endgroup
\@endnotemark
}%
\def\endnotetext{%
\@ifnextchar[\@xendnotenext{%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\@endnotetext
}%
}%
@@ -88,23 +91,25 @@
\begingroup
\c@endnote=#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\endgroup
\@endnotetext
}%
\def\endnote{%
\@ifnextchar[\@xendnote{%
\stepcounter{endnote}%
+ \stepcounter{cms@docnote}%
\protected@xdef\@theenmark{\theendnote}%
- \protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\@endnotemark\@endnotetext
}%
}%
\def\@xendnote[#1]{%
+ \stepcounter{cms@docnote}%
\begingroup
\c@endnote=#1\relax
\unrestored@protected@xdef\@theenmark{\theendnote}%
- \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@endnote}%
+ \unrestored@protected@xdef\@theenvalue{\number\c@refsection\number\c@cms@docnote}%
\show\@theenvalue
\endgroup
\@endnotemark\@endnotetext
@@ -254,7 +259,10 @@
}%
\newrobustcmd*{\lnbackref}[2]{%
- \hyperlink{Hendnote.#2\the\value{#1}}{\color{DarkBlue}@#1}}
+ \hyperlink{Hendnote.\csuse{cms@id@#2}}{\color{DarkBlue}@#1}\{#2,}
+
+% \newrobustcmd*{\lnbackref}[2]{%
+% \hyperlink{Hendnote.#2\the\value{#1}}{\color{DarkBlue}@#1}}
\newrobustcmd*{\adlnbackref}[2]{%
\@ifnextchar[%]
@@ -273,7 +281,8 @@
\usedriver
{\DeclareNameAlias{sortname}{default}\frenchspacing}
{cite:\thefield{entrytype}}}}
- {\iffieldequalstr{entrykey}{lac:leaders}%
+ {\global\cslet{cms@id@\thefield{entrykey}}{\@theenvalue}%
+ \iffieldequalstr{entrykey}{lac:leaders}%
{\printtext{%
\usedriver
{\DeclareNameAlias{sortname}{default}\frenchspacing}