diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/endheads/endheads.pdf | bin | 138060 -> 141042 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/endheads/endheads.dtx | 68 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/endheads/endheads.sty | 25 |
3 files changed, 83 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/endheads/endheads.pdf b/Master/texmf-dist/doc/latex/endheads/endheads.pdf Binary files differindex 5e29c33468d..c440ac85504 100644 --- a/Master/texmf-dist/doc/latex/endheads/endheads.pdf +++ b/Master/texmf-dist/doc/latex/endheads/endheads.pdf diff --git a/Master/texmf-dist/source/latex/endheads/endheads.dtx b/Master/texmf-dist/source/latex/endheads/endheads.dtx index 21ea3413b15..3b1006c886f 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> [2007/01/18 v1.2 endheads file] +%<package> [2007/12/12 v1.3 endheads file] % %<*driver> \documentclass{ltxdoc} @@ -32,7 +32,7 @@ %</driver> % \fi % -% \CheckSum{327} +% \CheckSum{392} % % \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 @@ -59,6 +59,7 @@ % \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} +% \changes{v1.3}{2007/12/12}{Added commands for multilingual use} % \GetFileInfo{endheads.sty} % % \DoNotIndex{\newcommand,\newenvironment,\def,\edef,\else,\renewcommand,\makeatletter,\makeatother} @@ -94,13 +95,13 @@ % \textsc, \unskip} % \setcounter{IndexColumns}{2} % \MakeShortVerb{|} -% \def\fileversion{1.2} -% \def\filedate{18 January 2007} -% \def\docdate{18 January 2007} +% \def\fileversion{1.3} +% \def\filedate{12 December 2007} +% \def\docdate{12 December 2007} % \title{Running Headers for Endnotes\thanks{This document % corresponds to \textsf{endheads}~\fileversion, dated \filedate.}} % \author{John Burt \\ \texttt{burt@brandeis.edu}} -% \date{January 18, 2007} +% \date{December 12, 2007} % \maketitle % \begin{abstract} % \textsf{endheads} provides running headers of the form ``Notes to @@ -152,6 +153,32 @@ % to the end of the command. If some other package does the same, you % will need to reconcile them. % +% \begin{sloppypar} +% \DescribeMacro{\setstyleforchapternotebegin} +% \DescribeMacro{\setstyleforchapternoteend} +% |\setstyleforchapternotebegin| and |\setstyleforchapternoteend| +% allows you to customize the appearance of the line that separates +% chapters in the endnotes. If, for instance, rather having a +% centered line in the small font size, you want a flushleft line in +% the large fontsize, issue +% |\setstyleforchapternotebegin{\begin{flushleft}\large}| and +% |\setstyleforchapternoteend{\end{flushleft}}| in your preamble. +% To set these lines in italic or bold, issue +% |\setstyleforchapternotebegin{\em}| or +% |\setstyleforchapternotebegin{\bf}| in your preamble. (It's safe, +% indeed required, to use the old style font commands here, since the +% chapter title line in the notes is confined to a group, which +% restricts the scope of the font style command to the line.) +% Remember that if you open an environment with +% |\setstyleforchapternotebegin| you must close it in +% |\setstyleforchapternoteend|. So, for instance, if you wish the +% chapter line to be set flushleft, in boldface, in normal font size, +% you would issue +% |\setstyleforchapternotebegin{\begin{flushleft}\begin{bf}\normalsize}| and +% |\setstyleforchapternoteend{\end{bf}\end{flushleft}}| in your +% preamble. +% \end{sloppypar} +% % \DescribeMacro{\resetendnotes} Conceivably you might wish to do what % |\notesbychapter| does for each chapter individually. For instance, % there may be a chapter without endnotes, in which case @@ -348,19 +375,44 @@ r@#2\endcsname{}{}\@nil % Tells the |\chapter| macro to reset the note counter and to % put a line with the chapter number in the endnotes. % \begin{macrocode} +\def\strip#1>{} +\newcommand{\literalendnote}[1]{\if@enotesopen \else +\@openenotes\setupendnoteheaders \fi + \begingroup + \def\next{#1}% + \newlinechar='40 + \immediate\write\@enotes{\expandafter\strip\meaning\next}% + \endgroup% +} \newif\iftitleinnotes \titleinnotestrue +\newcommand{\styleforchapternotebegin}{% +} +\newcommand{\styleforchapternoteend}{% +} +\newcommand{\setstyleforchapternotebegin}[1]{% +\renewcommand{\styleforchapternotebegin}{#1}} +\newcommand{\setstyleforchapternoteend}[1]{% +\renewcommand{\styleforchapternoteend}{#1}}% +\setstyleforchapternotebegin{\begin{center}} +\setstyleforchapternoteend{\end{center}} \newcommand{\resetendnotes}{% \setcounter{endnote}{0}% \if@enotesopen \else \@openenotes \fi +\immediate\write\@enotes{\string\begingroup} \immediate\write\@enotes{\string\goodbreak} \immediate\write\@enotes{\string\Needspace\string{5\string\baselineskip\string}} -\immediate\write\@enotes{\string\begin\string{center\string}} +\immediate\write\@enotes{\string\styleforchapternotebegin} +% \immediate\write\@enotes{\string\begin\string{center\string}} +%\immediate\write\@enotes{\string{} \immediate\write\@enotes{Chapter \thechapter\string~} \iftitleinnotes \immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}} \fi -\immediate\write\@enotes{\string\end\string{center\string}} +%\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} diff --git a/Master/texmf-dist/tex/latex/endheads/endheads.sty b/Master/texmf-dist/tex/latex/endheads/endheads.sty index 70121b66ebf..e456bdd30b9 100644 --- a/Master/texmf-dist/tex/latex/endheads/endheads.sty +++ b/Master/texmf-dist/tex/latex/endheads/endheads.sty @@ -129,19 +129,40 @@ r@#2\endcsname{}{}\@nil \immediate\write\@enotes{\string\thispagestyle\string{endnotesstyle\string}} \oldtheendnotes} } +\def\strip#1>{} +\newcommand{\literalendnote}[1]{\if@enotesopen \else +\@openenotes\setupendnoteheaders \fi + \begingroup + \def\next{#1}% + \newlinechar='40 + \immediate\write\@enotes{\expandafter\strip\meaning\next}% + \endgroup% +} \newif\iftitleinnotes \titleinnotestrue +\newcommand{\styleforchapternotebegin}{% +} +\newcommand{\styleforchapternoteend}{% +} +\newcommand{\setstyleforchapternotebegin}[1]{% +\renewcommand{\styleforchapternotebegin}{#1}} +\newcommand{\setstyleforchapternoteend}[1]{% +\renewcommand{\styleforchapternoteend}{#1}}% +\setstyleforchapternotebegin{\begin{center}} +\setstyleforchapternoteend{\end{center}} \newcommand{\resetendnotes}{% \setcounter{endnote}{0}% \if@enotesopen \else \@openenotes \fi +\immediate\write\@enotes{\string\begingroup} \immediate\write\@enotes{\string\goodbreak} \immediate\write\@enotes{\string\Needspace\string{5\string\baselineskip\string}} -\immediate\write\@enotes{\string\begin\string{center\string}} +\immediate\write\@enotes{\string\styleforchapternotebegin} \immediate\write\@enotes{Chapter \thechapter\string~} \iftitleinnotes \immediate\write\@enotes{\string\titleref\string{chapter\thechapter\string}} \fi -\immediate\write\@enotes{\string\end\string{center\string}} +\immediate\write\@enotes{\string\styleforchapternoteend} \immediate\write\@enotes{\string\nopagebreak} +\immediate\write\@enotes{\string\endgroup} } \newif\ifnotesbychapteron \notesbychapteronfalse \newcommand{\notesbychapter}{\notesbychapterontrue} |