diff options
author | Norbert Preining <preining@logic.at> | 2007-12-19 08:03:10 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-12-19 08:03:10 +0000 |
commit | fcf8bfb5aead020a85bae7884c8e5a91c7695f02 (patch) | |
tree | 0fbd44919ffca1431de142800726811382588fff /Master/texmf-dist/tex | |
parent | 5156af706e056831582e444e83f036d9c0a9d963 (diff) |
endheads update 07-12-19
git-svn-id: svn://tug.org/texlive/trunk@5809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/endheads/endheads.sty | 25 |
1 files changed, 23 insertions, 2 deletions
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} |