From 16b1721b6156255ee494d66e293a306e3d753846 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 19 Jan 2007 01:15:05 +0000 Subject: endheads update (19jan07) git-svn-id: svn://tug.org/texlive/trunk@3580 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/endheads/README | 6 ++ Master/texmf-dist/doc/latex/endheads/endheads.pdf | Bin 131248 -> 138060 bytes .../texmf-dist/source/latex/endheads/endheads.dtx | 65 +++++++++++++++++---- Master/texmf-dist/tex/latex/endheads/endheads.sty | 28 +++++++-- Master/texmf-dist/tpm/endheads.tpm | 11 ++-- Master/texmf/lists/endheads | 1 + 6 files changed, 89 insertions(+), 22 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/endheads/README diff --git a/Master/texmf-dist/doc/latex/endheads/README b/Master/texmf-dist/doc/latex/endheads/README new file mode 100644 index 00000000000..6872b17bca0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/endheads/README @@ -0,0 +1,6 @@ +Endheads provides running headers of the form "Notes to +pp. xx--yy" for endnotes sections. It also enables one to +reset the endnotes counter, and put a line marking the +chapter change in the endnotes, at the beginning of every +chapter. Endheads requires the fancyhdr, needspace, +ifthen, and endnotes packages. \ 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 a9bc1a89a52..5e29c33468d 100644 Binary files a/Master/texmf-dist/doc/latex/endheads/endheads.pdf and b/Master/texmf-dist/doc/latex/endheads/endheads.pdf differ diff --git a/Master/texmf-dist/source/latex/endheads/endheads.dtx b/Master/texmf-dist/source/latex/endheads/endheads.dtx index b2ca2f85a75..21ea3413b15 100644 --- a/Master/texmf-dist/source/latex/endheads/endheads.dtx +++ b/Master/texmf-dist/source/latex/endheads/endheads.dtx @@ -18,7 +18,7 @@ % \iffalse %\NeedsTeXFormat{LaTeX2e}[1997/12/01] %\ProvidesPackage{endheads} -% [2006/11/09 v1.152 endheads file] +% [2007/01/18 v1.2 endheads file] % %<*driver> \documentclass{ltxdoc} @@ -32,7 +32,7 @@ % % \fi % -% \CheckSum{286} +% \CheckSum{327} % % \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 @@ -58,6 +58,7 @@ % notes} % \changes{v1.151}{2005/09/25}{Corrections to user's guide} % \changes{v1.152}{2006/11/10}{Fixed strange white space error} +% \changes{v1.2}{2006/11/10}{Added commands for multilingual use} % \GetFileInfo{endheads.sty} % % \DoNotIndex{\newcommand,\newenvironment,\def,\edef,\else,\renewcommand,\makeatletter,\makeatother} @@ -93,13 +94,13 @@ % \textsc, \unskip} % \setcounter{IndexColumns}{2} % \MakeShortVerb{|} -% \def\fileversion{1.152} -% \def\filedate{9 November 2006} -% \def\docdate{9 November 2006} +% \def\fileversion{1.2} +% \def\filedate{18 January 2007} +% \def\docdate{18 January 2007} % \title{Running Headers for Endnotes\thanks{This document % corresponds to \textsf{endheads}~\fileversion, dated \filedate.}} % \author{John Burt \\ \texttt{burt@brandeis.edu}} -% \date{November 9, 2006} +% \date{January 18, 2007} % \maketitle % \begin{abstract} % \textsf{endheads} provides running headers of the form ``Notes to @@ -119,7 +120,7 @@ % % \textsf{endheads} requires the following packages to work correctly: % \textsf{endnotes} (obviously), \textsf{fancyhdr} (also obviously), -% \textsf{ifthem} (for comparing page numbers), \textsf{needspace} (to +% \textsf{ifthen} (for comparing page numbers), \textsf{needspace} (to % prevent widowed chapter titles in notes sections when resetting % notes by chapter using either |\notesbychapter| or % |\resetendnotes|), and \textsf{titleref} (to send the chapter titles @@ -161,6 +162,30 @@ % |\notesbychapter| in the preamble if you have a bibliography, or odd % results will follow. % +% \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} +% +% \begin{sloppypar} +% \DescribeMacro{\changenotesname} To change the name for the endnote +% section for notes (the default is Notes), issue +% |\changenotesname{your version}|. To change the running header (by +% default ``Notes to'') issue |\changenotesheader{your version}|. To +% change the name for the notes in the table of contents ( by +% default ``Notes'') issue |\changenotescontentsname{your version}|. +% \DescribeMacro{\changesinglepageabbrev} +% \DescribeMacro{\changemultiplepageabbrev} Running headers refer to +% single pages with the English abbreviation ``p.'' and to multiple +% pages with the English abbreviation ``pp.'' To change these issue +% |\changesinglepageabbrev{new abbrev}| or +% |\changemultiplepageabbrev{new abbrev}| respectively. The ultimate +% outcome is to translate a header of the form ``Notes to +% pp.~xx-yy'' to the form appropriate for your +% language.\end{sloppypar} % % \StopEventually{\PrintChanges\PrintIndex} % \section{Implementation} @@ -232,10 +257,16 @@ r@#2\endcsname{}{}\@nil % \begin{macro}{\mymarks} % A command to set the marks. This will be called by the page style. % \begin{macrocode} +\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 % \end{macrocode} % \end{macro} % \begin{macro}{\endnotespagestyle} @@ -243,6 +274,16 @@ r@#2\endcsname{}{}\@nil % want to change some aspects of this, such as where to put the page % number, to make it consistent with the rest of your document. % \begin{macrocode} + +\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}}} @@ -251,8 +292,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}}} 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}}} diff --git a/Master/texmf-dist/tpm/endheads.tpm b/Master/texmf-dist/tpm/endheads.tpm index 218b2982222..0e040c12113 100644 --- a/Master/texmf-dist/tpm/endheads.tpm +++ b/Master/texmf-dist/tpm/endheads.tpm @@ -3,7 +3,7 @@ endheads Package - 2006/11/25 03:58:41 + 2007/01/18 16:25:00 karl The endheads package. @@ -12,12 +12,15 @@ 153211 - + texmf-dist/tex/latex/endheads/endheads.sty texmf-dist/tpm/endheads.tpm - texmf-dist/doc/latex/endheads/endheads.pdf - + +texmf-dist/doc/latex/endheads/README +texmf-dist/doc/latex/endheads/endheads.pdf + + texmf-dist/source/latex/endheads/endheads.dtx texmf-dist/source/latex/endheads/endheads.ins diff --git a/Master/texmf/lists/endheads b/Master/texmf/lists/endheads index b1c5079b2da..aae87580e62 100644 --- a/Master/texmf/lists/endheads +++ b/Master/texmf/lists/endheads @@ -1,3 +1,4 @@ +texmf-dist/doc/latex/endheads/README texmf-dist/doc/latex/endheads/endheads.pdf texmf-dist/source/latex/endheads/endheads.dtx texmf-dist/source/latex/endheads/endheads.ins -- cgit v1.2.3