diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/endheads/endheads.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/endheads/endheads.dtx | 48 |
1 files changed, 38 insertions, 10 deletions
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}% |