summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
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/source
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/source')
-rw-r--r--Master/texmf-dist/source/latex/endheads/endheads.dtx65
1 files changed, 53 insertions, 12 deletions
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
%<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
%<package>\ProvidesPackage{endheads}
-%<package> [2006/11/09 v1.152 endheads file]
+%<package> [2007/01/18 v1.2 endheads file]
%
%<*driver>
\documentclass{ltxdoc}
@@ -32,7 +32,7 @@
%</driver>
% \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}}}