summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/endheads/endheads.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/endheads/endheads.sty')
-rw-r--r--Master/texmf-dist/tex/latex/endheads/endheads.sty11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/endheads/endheads.sty b/Master/texmf-dist/tex/latex/endheads/endheads.sty
index a02448bfaf2..5cefa929b09 100644
--- a/Master/texmf-dist/tex/latex/endheads/endheads.sty
+++ b/Master/texmf-dist/tex/latex/endheads/endheads.sty
@@ -22,8 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{endheads}
- [2008/04/12 v1.4 endheads file]
-
+ [2008/04/14 v1.45 endheads file]
\providecommand*{\ifrefundefined}[1]{%
\expandafter\ifx\csname r@#1\endcsname\relax
\expandafter\@firstoftwo
@@ -99,7 +98,7 @@ r@#2\endcsname{}{}\@nil
\newcommand{\changenotesheader}[1]{\notesheadername={#1}}
\newtoks{\notescontentsname}
\notescontentsname={Notes}
-\newcommand{\changenotescontentsname}[1]{\textnotescontentsname={#1}}
+\newcommand{\changenotescontentsname}[1]{\notescontentsname={#1}}
\newtoks{\chapternoteslinename}
\chapternoteslinename={Chapter}
\newcommand{\changechapternotesline}[1]{\chapternoteslinename={#1}}
@@ -141,6 +140,8 @@ r@#2\endcsname{}{}\@nil
}
}
+\newif\ifnotesincontentson \notesincontentsonfalse
+\newcommand{\notesincontents}{\notesincontentsontrue}
\newif\ifendnoteheaderson \endnoteheadersonfalse
\newcommand{\setupendnoteheaders}{%
\endnoteheadersontrue
@@ -148,6 +149,10 @@ r@#2\endcsname{}{}\@nil
\immediate\write\@enotes{%
\string\thispagestyle\string{empty\string}
\string\pagestyle\string{endnotesstyle\string}}
+\immediate\write\@enotes{\string\ifnotesincontentson}%
+\immediate\write\@enotes{\string\addcontentsline\string{toc\string}
+\string{chapter\string}\string{\string\the\string\notescontentsname\string}}%
+\immediate\write\@enotes{\string\fi}
\def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}%
\stepcounter{allendnotes}\label{notl\theallendnotes}%
\immediate\write\@enotes{\checknoteheaders}%