diff options
author | Karl Berry <karl@freefriends.org> | 2008-04-19 17:13:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-04-19 17:13:18 +0000 |
commit | 7a64f8b37791bc71a3da6dcad7ba7695889d458d (patch) | |
tree | 519f53c560c6b88af8bf5aeaed5b760c88e4ee46 /Master/texmf-dist/tex/latex | |
parent | e01d0e61ce7553ae7d91e31196d754100e418bfc (diff) |
endheads update (17apr08)
git-svn-id: svn://tug.org/texlive/trunk@7521 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/endheads/endheads.sty | 11 |
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}% |