summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/endheads/README4
-rw-r--r--Master/texmf-dist/doc/latex/endheads/endheads.pdfbin146285 -> 245129 bytes
-rw-r--r--Master/texmf-dist/source/latex/endheads/endheads.dtx79
-rw-r--r--Master/texmf-dist/tex/latex/endheads/endheads.sty51
4 files changed, 45 insertions, 89 deletions
diff --git a/Master/texmf-dist/doc/latex/endheads/README b/Master/texmf-dist/doc/latex/endheads/README
index 0e2b716db37..1d9e630d0ca 100644
--- a/Master/texmf-dist/doc/latex/endheads/README
+++ b/Master/texmf-dist/doc/latex/endheads/README
@@ -2,4 +2,6 @@ Readme for endheads
Endheads makes running headers of the form ``Notes to pp.~xx--yy'' for
users of endnotes.sty. It also enables one to reset the endnotes counter
-by chapter. endheads requires fancyhdr, endnotes, and ifthen. \ No newline at end of file
+by chapter. endheads requires fancyhdr, endnotes, and ifthen. Endheads will also work for memoir class, but in that case it won't require fancyhdr.
+
+This material is subject to the LaTeX Project Public License. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/endheads/endheads.pdf b/Master/texmf-dist/doc/latex/endheads/endheads.pdf
index 0f1f3aff8a7..f9c81b1d379 100644
--- a/Master/texmf-dist/doc/latex/endheads/endheads.pdf
+++ b/Master/texmf-dist/doc/latex/endheads/endheads.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/endheads/endheads.dtx b/Master/texmf-dist/source/latex/endheads/endheads.dtx
index ee7da13e200..1cd7090c6a9 100644
--- a/Master/texmf-dist/source/latex/endheads/endheads.dtx
+++ b/Master/texmf-dist/source/latex/endheads/endheads.dtx
@@ -18,7 +18,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
%<package>\ProvidesPackage{endheads}
-%<package> [2009/03/12 v1.53 endheads file]
+%<package> [2011/12/29 v1.5 endheads file]
%
%<*driver>
\documentclass{ltxdoc}
@@ -32,7 +32,7 @@
%</driver>
% \fi
%
-% \CheckSum{563}
+% \CheckSum{514}
%
% \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
@@ -64,9 +64,8 @@
% commands for multilingual use}
%\changes{v1.45}{2008/04/14}{Corrected problem with putting entry for
%endnotes in table of contents}
-%\changes{v1.5}{2009/03/09}{Corrected resetendnotes command for frontmatter}
-%\changes{v1.52}{2009/03/11}{Endnote sections from frontmatter can put roman numerals in the running headers}
-%\changes{v1.53}{2009/03/12}{Made ``appendtomacro'' local, per Ulrich Diez}
+%\changes{v1.5}{2011/12/29}{Corrected problem with page styles for
+%first pages of chapters}
% \GetFileInfo{endheads.sty}
%
% \DoNotIndex{\newcommand,\newenvironment,\def,\edef,\else,\renewcommand,\makeatletter,\makeatother}
@@ -102,13 +101,13 @@
% \textsc, \unskip}
% \setcounter{IndexColumns}{2}
% \MakeShortVerb{|}
-% \def\fileversion{1.52}
-% \def\filedate{12 March 2009}
-% \def\docdate{12 March 2009}
+% \def\fileversion{1.5}
+% \def\filedate{29 December 2011}
+% \def\docdate{29 December 2011}
% \title{Running Headers for Endnotes\thanks{This document
% corresponds to \textsf{endheads}~\fileversion, dated \filedate.}}
% \author{John Burt \\ \texttt{burt@brandeis.edu}}
-% \date{March 12, 2009}
+% \date{December 29, 2011}
% \maketitle
% \begin{abstract}
% \textsf{endheads} provides running headers of the form ``Notes to
@@ -310,13 +309,11 @@ r@#2\endcsname{}{}\@nil
\setcounter{#1}{\@extractpageref{#2}}%
}%
}
-\newtoks\romannumeralholder
-\long\def\localappendtomacro#1#2{%
+\long\def\appendtomacro#1#2{%
\begingroup
-\toks@{\endgroup\def#1}%
-\the\expandafter\toks@
- \expandafter{#1#2}%
-}%
+ \toks@\expandafter{#1#2}%
+ \xdef#1{\the\toks@}%
+ \endgroup}
% \end{macrocode}
% \subsection{Building Blocks}
% First, define some counters:
@@ -364,26 +361,17 @@ r@#2\endcsname{}{}\@nil
\newtoks{\chapternoteslinename}
\chapternoteslinename={Chapter}
\newcommand{\changechapternotesline}[1]{\chapternoteslinename={#1}}
-\@ifclassloaded{memoir}{\makepagestyle{plain}
-\makeevenhead{plain}{}{}{{\small\textrm{\thepage}}}
-\makeoddhead{plain}{{\small\textrm{\thepage}}}{}{}
-\makeevenfoot{plain}{}{}{}
-\makeoddfoot{plain}{}{}{}
+\@ifclassloaded{memoir}{
\makepagestyle{endnotesstyle}
\makeevenhead{endnotesstyle}{{\small\textrm{\thepage}}}{{\small{\em \the\notesheadername~\mymarks}}}{}
\makeoddhead{endnotesstyle}{}{{\small{\em \the\notesheadername~\mymarks}}}{{\small\textrm{\thepage}}}
\makeevenfoot{}{}{}
\makeoddfoot{}{}{}
-}{\fancypagestyle{plain}{%
-\fancyhf{}
-\fancyhead[RO,LE]{{\small\textrm{\thepage}}}
-\renewcommand{\headrulewidth}{0pt}
-\renewcommand{\footrulewidth}{0pt}
-}
+}{
\fancypagestyle{endnotesstyle}{%
\fancyhf{}
\fancyhead[CO]{{\small{\em \the\notesheadername~\mymarks}}}
-\fancyhead[CE]{{\small{\em \the\notesheadername~\mymarks}}}
+\fancyhead[CE]{{\small{\em \the\notesheadername~\mymarks}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[RO,LE]{{\small\textrm{\thepage}}}
@@ -415,13 +403,6 @@ r@#2\endcsname{}{}\@nil
}
}
-\@ifclassloaded{memoir}{\newcommand{\checknoteheadersroman}{%
-\string\romannumeralholder={\@extractpageref{notl\theallendnotes}}
-\string\markboth\string{\string\the\string\romannumeralholder\string}\string{\string\the\string\romannumeralholder\string}%
-}}{\newcommand{\checknoteheadersroman}{%
-\string\romannumeralholder={\@extractpageref{notl\theallendnotes}}
-\string\mark\string{\string\the\string\romannumeralholder\string}%
-}}
% \end{macrocode}
% \end{macro}
% \subsection{User Code}
@@ -451,12 +432,8 @@ r@#2\endcsname{}{}\@nil
\immediate\write\@enotes{\string\fi}
\def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}%
% my addition begins
- \stepcounter{allendnotes}\label{notl\theallendnotes}%
-\if@mainmatter
+ \stepcounter{allendnotes}\label{notl\theallendnotes}%
\immediate\write\@enotes{\checknoteheaders}%
-\else
- \immediate\write\@enotes{\checknoteheadersroman}%
-\fi
% my addition ends
\protected@xdef\@theenmark{\theendnote}%
\@endnotemark\@endnotetext}}
@@ -491,7 +468,6 @@ r@#2\endcsname{}{}\@nil
\renewcommand{\styleforchapternoteend}{#1}}%
\setstyleforchapternotebegin{\begin{center}}
\setstyleforchapternoteend{\end{center}}
-
\newcommand{\resetendnotes}{%
\label{chapter\thechapter}%
\setcounter{endnote}{0}%
@@ -500,22 +476,27 @@ r@#2\endcsname{}{}\@nil
\immediate\write\@enotes{\string\goodbreak}
\immediate\write\@enotes{\string\Needspace\string{5\string\baselineskip\string}}
\immediate\write\@enotes{\string\styleforchapternotebegin}
-\ifthenelse{\equal{\thechapter}{0}}{%
- \immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}%
- }{%
- \immediate\write\@enotes{\the\chapternoteslinename\string\ \thechapter\string~}%
- \iftitleinnotes%
- \immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}%
- \fi%
- }%
+% \immediate\write\@enotes{\string\begin\string{center\string}}
+%\immediate\write\@enotes{\string{}
+\immediate\write\@enotes{\the\chapternoteslinename\string\ \thechapter\string~}
+\iftitleinnotes
+\immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}
+\fi
+%\immediate\write\@enotes{\string}}
\immediate\write\@enotes{\string\styleforchapternoteend}
+% \immediate\write\@enotes{\string\end\string{center\string}}
\immediate\write\@enotes{\string\nopagebreak}
\immediate\write\@enotes{\string\endgroup}
-}
+}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\notesbychapter}
% \begin{macrocode}
+% \newcommand{\notesbychapter}{%
+% \appendtomacro{\chapter}{%
+% \relax
+% \resetendnotes}%
+% }
\newif\ifnotesbychapteron \notesbychapteronfalse
\@ifclassloaded{memoir}{\newcommand{\notesbychapter}{\notesbychapterontrue
\addtoiargdef{\chapter}{}{ \iftitleinnotes%
diff --git a/Master/texmf-dist/tex/latex/endheads/endheads.sty b/Master/texmf-dist/tex/latex/endheads/endheads.sty
index 24139d6601d..6463d72eb33 100644
--- a/Master/texmf-dist/tex/latex/endheads/endheads.sty
+++ b/Master/texmf-dist/tex/latex/endheads/endheads.sty
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{endheads}
- [2009/03/12 v1.53 endheads file]
+ [2011/12/29 v1.5 endheads file]
\providecommand*{\ifrefundefined}[1]{%
\expandafter\ifx\csname r@#1\endcsname\relax
\expandafter\@firstoftwo
@@ -65,13 +65,11 @@ r@#2\endcsname{}{}\@nil
\setcounter{#1}{\@extractpageref{#2}}%
}%
}
-\newtoks\romannumeralholder
-\long\def\localappendtomacro#1#2{%
+\long\def\appendtomacro#1#2{%
\begingroup
-\toks@{\endgroup\def#1}%
-\the\expandafter\toks@
- \expandafter{#1#2}%
-}%
+ \toks@\expandafter{#1#2}%
+ \xdef#1{\the\toks@}%
+ \endgroup}
\newcounter{allendnotes}
\setcounter{allendnotes}{1}
\newcounter{notepageholder}
@@ -104,22 +102,13 @@ r@#2\endcsname{}{}\@nil
\newtoks{\chapternoteslinename}
\chapternoteslinename={Chapter}
\newcommand{\changechapternotesline}[1]{\chapternoteslinename={#1}}
-\@ifclassloaded{memoir}{\makepagestyle{plain}
-\makeevenhead{plain}{}{}{{\small\textrm{\thepage}}}
-\makeoddhead{plain}{{\small\textrm{\thepage}}}{}{}
-\makeevenfoot{plain}{}{}{}
-\makeoddfoot{plain}{}{}{}
+\@ifclassloaded{memoir}{
\makepagestyle{endnotesstyle}
\makeevenhead{endnotesstyle}{{\small\textrm{\thepage}}}{{\small{\em \the\notesheadername~\mymarks}}}{}
\makeoddhead{endnotesstyle}{}{{\small{\em \the\notesheadername~\mymarks}}}{{\small\textrm{\thepage}}}
\makeevenfoot{}{}{}
\makeoddfoot{}{}{}
-}{\fancypagestyle{plain}{%
-\fancyhf{}
-\fancyhead[RO,LE]{{\small\textrm{\thepage}}}
-\renewcommand{\headrulewidth}{0pt}
-\renewcommand{\footrulewidth}{0pt}
-}
+}{
\fancypagestyle{endnotesstyle}{%
\fancyhf{}
\fancyhead[CO]{{\small{\em \the\notesheadername~\mymarks}}}
@@ -142,13 +131,6 @@ r@#2\endcsname{}{}\@nil
}
}
-\@ifclassloaded{memoir}{\newcommand{\checknoteheadersroman}{%
-\string\romannumeralholder={\@extractpageref{notl\theallendnotes}}
-\string\markboth\string{\string\the\string\romannumeralholder\string}\string{\string\the\string\romannumeralholder\string}%
-}}{\newcommand{\checknoteheadersroman}{%
-\string\romannumeralholder={\@extractpageref{notl\theallendnotes}}
-\string\mark\string{\string\the\string\romannumeralholder\string}%
-}}
\newif\ifnotesincontentson \notesincontentsonfalse
\newcommand{\notesincontents}{\notesincontentsontrue}
\newif\ifendnoteheaderson \endnoteheadersonfalse
@@ -163,12 +145,8 @@ r@#2\endcsname{}{}\@nil
\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}%
-\if@mainmatter
+ \stepcounter{allendnotes}\label{notl\theallendnotes}%
\immediate\write\@enotes{\checknoteheaders}%
-\else
- \immediate\write\@enotes{\checknoteheadersroman}%
-\fi
\protected@xdef\@theenmark{\theendnote}%
\@endnotemark\@endnotetext}}
\let\oldtheendnotes=\theendnotes
@@ -196,7 +174,6 @@ r@#2\endcsname{}{}\@nil
\renewcommand{\styleforchapternoteend}{#1}}%
\setstyleforchapternotebegin{\begin{center}}
\setstyleforchapternoteend{\end{center}}
-
\newcommand{\resetendnotes}{%
\label{chapter\thechapter}%
\setcounter{endnote}{0}%
@@ -205,14 +182,10 @@ r@#2\endcsname{}{}\@nil
\immediate\write\@enotes{\string\goodbreak}
\immediate\write\@enotes{\string\Needspace\string{5\string\baselineskip\string}}
\immediate\write\@enotes{\string\styleforchapternotebegin}
-\ifthenelse{\equal{\thechapter}{0}}{%
-\immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}%
-}{%
-\immediate\write\@enotes{\the\chapternoteslinename\string\ \thechapter\string~}%
-\iftitleinnotes%
-\immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}%
-\fi%
-}%
+\immediate\write\@enotes{\the\chapternoteslinename\string\ \thechapter\string~}
+\iftitleinnotes
+\immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}}
+\fi
\immediate\write\@enotes{\string\styleforchapternoteend}
\immediate\write\@enotes{\string\nopagebreak}
\immediate\write\@enotes{\string\endgroup}