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 | |
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')
-rw-r--r-- | Master/texmf-dist/doc/latex/endheads/endheads.pdf | bin | 144028 -> 145731 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/endheads/endheads.dtx | 48 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/endheads/endheads.sty | 11 |
3 files changed, 46 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/endheads/endheads.pdf b/Master/texmf-dist/doc/latex/endheads/endheads.pdf Binary files differindex 9788a8b0b1c..d9f7ef70321 100644 --- a/Master/texmf-dist/doc/latex/endheads/endheads.pdf +++ b/Master/texmf-dist/doc/latex/endheads/endheads.pdf diff --git a/Master/texmf-dist/source/latex/endheads/endheads.dtx b/Master/texmf-dist/source/latex/endheads/endheads.dtx index 23fc0a438c4..4022536dfa5 100644 --- a/Master/texmf-dist/source/latex/endheads/endheads.dtx +++ b/Master/texmf-dist/source/latex/endheads/endheads.dtx @@ -18,11 +18,11 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01] %<package>\ProvidesPackage{endheads} -%<package> [2008/04/12 v1.4 endheads file] +%<package> [2008/04/14 v1.45 endheads file] % %<*driver> \documentclass{ltxdoc} -\usepackage{makeidx,multicol,keyval,ifthen,needspace,titleref} +\usepackage{makeidx,multicol,keyval,ifthen} \EnableCrossrefs \CodelineIndex \RecordChanges @@ -32,7 +32,7 @@ %</driver> % \fi % -% \CheckSum{487} +% \CheckSum{535} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -62,6 +62,8 @@ % \changes{v1.3}{2007/12/12}{Added commands for multilingual use} % \changes{v1.4}{2008/04/12}{Added compatibility with memoir class. Added % commands for multilingual use} +%\changes{v1.45}{2008/04/14}{Corrected problem with putting entry for +%endnotes in table of contents} % \GetFileInfo{endheads.sty} % % \DoNotIndex{\newcommand,\newenvironment,\def,\edef,\else,\renewcommand,\makeatletter,\makeatother} @@ -97,13 +99,13 @@ % \textsc, \unskip} % \setcounter{IndexColumns}{2} % \MakeShortVerb{|} -% \def\fileversion{1.4} -% \def\filedate{12 April 2008} -% \def\docdate{12 April 2008} +% \def\fileversion{1.45} +% \def\filedate{14 April 2008} +% \def\docdate{14 April 2008} % \title{Running Headers for Endnotes\thanks{This document % corresponds to \textsf{endheads}~\fileversion, dated \filedate.}} % \author{John Burt \\ \texttt{burt@brandeis.edu}} -% \date{April 12, 2008} +% \date{April 14, 2008} % \maketitle % \begin{abstract} % \textsf{endheads} provides running headers of the form ``Notes to @@ -205,7 +207,6 @@ % \section{Using \textsf{endheads} in a Multilingual World} % % \begin{sloppypar} -% \DescribeMacro{\changecontentsname} % By default, \textsf{endheads} uses English language running headers. % As of version 1.2 these % are easily changed. \end{sloppypar} @@ -215,11 +216,25 @@ % section for notes (the default is Notes), issue % |\changenotesname{your version}|. To change the running header (by % default ``Notes to'') issue |\changenotesheader{your version}|. - +% +% \DescribeMacro{\changenotescontentsname} %To % change the name for the notes in the table of contents ( by % default ``Notes'') issue |\changenotescontentsname{your version}|. % +% \DescribeMacro{\notesincontents} If you do not wish to include a line for the endnotes +% in the table of contents, issue |\notesincontentsonfalse| (This is the default). To include a line +% for the endnotes in the table of contents, issue |\notesincontents| +% or (toggling the boolean) |\notesincontentsontrue|. If you wish to +% rethink how to present the notes in the table of contents, include +% an |\addtocontents| line just before you issue |\theendnotes|, the command which +% will read all of your endnotes into your document at that point. For instance, I set the +% word ``Notes'' in the table of contents flush with the left margin, just where the numbers +% in the preceding chapters are. You might, however, wish to indent that word just a bit, so +% that it will be flush with the chapter titles above, rather than with the chapter numbers. +% If you wish to do this, just before issuing |\theendnotes|, issue +% |\addcontentsline{toc}{chapter}{\protect\numberline{} \the\notescontentsname}|. +% % \begin{sloppypar} % \DescribeMacro{\changesinglepageabbrev} % \DescribeMacro{\changemultiplepageabbrev} Running headers refer to @@ -340,7 +355,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}} @@ -398,6 +413,12 @@ r@#2\endcsname{}{}\@nil % \end{macrocode} % \end{macro} % \subsection{User Code} +% \begin{macro}{\notesincontents} +% \begin{macrocode} +\newif\ifnotesincontentson \notesincontentsonfalse +\newcommand{\notesincontents}{\notesincontentsontrue} +% \end{macrocode} +% \end{macro} % \begin{macro}{\setupendnoteheaders} % |\setupendnoteheaders| turns on processing of running headers, and % adds two lines to the definition of |\endnote| @@ -409,6 +430,13 @@ 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{\string\notescontentsname\string}}% +%\string{\string\protect\string\numberline +%\string{\string} \string\notescontentsname \string} +\immediate\write\@enotes{\string\fi} \def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}% % my addition begins \stepcounter{allendnotes}\label{notl\theallendnotes}% 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}% |