From fcf8bfb5aead020a85bae7884c8e5a91c7695f02 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 19 Dec 2007 08:03:10 +0000 Subject: endheads update 07-12-19 git-svn-id: svn://tug.org/texlive/trunk@5809 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/endheads/endheads.sty | 25 +++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/endheads') 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} -- cgit v1.2.3