summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/endheads
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-19 01:15:05 +0000
committerKarl Berry <karl@freefriends.org>2007-01-19 01:15:05 +0000
commit16b1721b6156255ee494d66e293a306e3d753846 (patch)
tree7a0423efbf38aaa7826865c5f627ac852af5625c /Master/texmf-dist/tex/latex/endheads
parent34d97661b6a6e80101f81b56c53dc4c9690d039f (diff)
endheads update (19jan07)
git-svn-id: svn://tug.org/texlive/trunk@3580 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/endheads')
-rw-r--r--Master/texmf-dist/tex/latex/endheads/endheads.sty28
1 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/endheads/endheads.sty b/Master/texmf-dist/tex/latex/endheads/endheads.sty
index 90175613be5..70121b66ebf 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}
- [2006/11/09 v1.152 endheads file]
+ [2007/01/18 v1.2 endheads file]
\providecommand*{\ifrefundefined}[1]{%
\expandafter\ifx\csname r@#1\endcsname\relax
\expandafter\@firstoftwo
@@ -73,10 +73,26 @@ r@#2\endcsname{}{}\@nil
\newcounter{allendnotes}
\setcounter{allendnotes}{1}
\newcounter{notepageholder}
+\newtoks{\singlepageabbrev}
+\singlepageabbrev={p.}
+\newcommand{\changesinglepageabbrev}[1]{\singlepageabbrev={#1}}
+\newtoks{\multiplepageabbrev}
+\newcommand{\changemultiplepageabbrev}[1]{\multiplepageabbrev={#1}}
+\multiplepageabbrev{pp.}
\newcommand{\mymarks}{%
- \ifthenelse{\equal{\firstmark}{\botmark}}
- {to p.~\firstmark} % if equal
- {to pp.~\firstmark--\botmark}}%if not equal
+ \ifthenelse{\equal{\firstmark}{\botmark}}%
+ {\unskip ~\the\singlepageabbrev~\firstmark}% if equal
+ {\unskip ~\the\multiplepageabbrev~\firstmark--\botmark}}%if not equal
+
+\newtoks{\endnotesname}
+\endnotesname={Notes}
+\newcommand{\changenotesname}[1]{\def\notesname{#1}}
+\newtoks{\notesheadername}
+\notesheadername={Notes to}
+\newcommand{\changenotesheader}[1]{\notesheadername={#1}}
+\newtoks{\notescontentsname}
+\notescontentsname={Notes}
+\newcommand{\changenotescontentsname}[1]{\textnotescontentsname={#1}}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyhead[RO,LE]{{\small\textrm{\thepage}}}
@@ -85,8 +101,8 @@ r@#2\endcsname{}{}\@nil
}
\fancypagestyle{endnotesstyle}{%
\fancyhf{}
-\fancyhead[CO]{{\small{\em Notes~\mymarks}}}
-\fancyhead[CE]{{\small{\em Notes~\mymarks}}}
+\fancyhead[CO]{{\small{\em \the\notesheadername~\mymarks}}}
+\fancyhead[CE]{{\small{\em \the\notesheadername~\mymarks}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[RO,LE]{{\small\textrm{\thepage}}}