diff options
author | Karl Berry <karl@freefriends.org> | 2011-04-17 22:42:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-04-17 22:42:13 +0000 |
commit | ad1e4d8e6581af6cb4c9a35f02f09ffda2d97df7 (patch) | |
tree | 62d972bb50afece3227f1ab7a79a67cd254389ce /Master/texmf-dist/source/latex/oberdiek/atveryend.dtx | |
parent | 45824df4db55ca98caef21d38b00d54ccdb5be4c (diff) |
oberdiek (17apr11)
git-svn-id: svn://tug.org/texlive/trunk@22111 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/atveryend.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/atveryend.dtx | 159 |
1 files changed, 151 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx b/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx index f76dbac3f8b..dc5076a61e2 100644 --- a/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2009, 2010 by +% Copyright (C) 2009-2011 by % Heiko Oberdiek <heiko.oberdiek at googlemail.com> % % This work may be distributed and/or modified under the @@ -73,7 +73,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: atveryend 2010/03/24 v1.5 Hooks at very end of document (HO)} +\Msg{* Package: atveryend 2011/04/15 v1.6 Hooks at very end of document (HO)} \Msg{************************************************************************} \keepsilent @@ -84,7 +84,7 @@ This is a generated file. -Copyright (C) 2009, 2010 by +Copyright (C) 2009-2011 by Heiko Oberdiek <heiko.oberdiek at googlemail.com> This work may be distributed and/or modified under the @@ -142,7 +142,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atveryend.drv}% - [2010/03/24 v1.5 Hooks at very end of document (HO)]% + [2011/04/15 v1.6 Hooks at very end of document (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2011/02/04] \begin{document} @@ -151,7 +151,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{937} +% \CheckSum{1065} % % \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 @@ -172,7 +172,7 @@ and the derived files % \GetFileInfo{atveryend.drv} % % \title{The \xpackage{atveryend} package} -% \date{2010/03/24 v1.5} +% \date{2011/04/15 v1.6} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -227,6 +227,16 @@ and the derived files % The code is called after the \xext{aux} file is closed and read in again. % It is the place for final checks, rerun hints, final messages. % +% \begin{declcs}{AtEndAfterFileList} \M{code} +% \end{declcs} +% After the \xext{aux} file closing and reading \hologo{LaTeX} +% prints the file list if requested by \cs{listfiles}. +% Then this hook is executed. +% +% \begin{declcs}{AtVeryVeryEnd} \M{code} +% \end{declcs} +% This code is called right before the final \cs{@@end}. +% % \subsection{Related work} % % \begin{description} @@ -318,7 +328,7 @@ and the derived files % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{atveryend}% - [2010/03/24 v1.5 Hooks at very end of document (HO)] + [2011/04/15 v1.6 Hooks at very end of document (HO)] % \end{macrocode} % % \subsection{Hooks} @@ -338,6 +348,17 @@ and the derived files \let\AtVeryEnd@AtVeryEndDocumentHook\@empty % \end{macrocode} % \end{macro} +% \begin{macro}{\AtVeryEnd@AtEndAfterFileListHook} +% \begin{macrocode} +\let\AtVeryEnd@AtEndAfterFileListHook\@empty +% \end{macrocode} +% \end{macro} +% \begin{macro}{\AtVeryEnd@AtVeryVeryEndHook} +% \begin{macrocode} +\let\AtVeryEnd@AtVeryVeryEndHook\@empty +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\BeforeClearDocument} % \begin{macrocode} \newcommand*{\BeforeClearDocument}{% @@ -359,6 +380,21 @@ and the derived files } % \end{macrocode} % \end{macro} +% \begin{macro}{\AtEndAfterFileList} +% \begin{macrocode} +\newcommand*{\AtEndAfterFileList}{% + \g@addto@macro\AtVeryEnd@AtEndAfterFileListHook +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\AtVeryVeryEnd} +% \begin{macrocode} +\newcommand*{\AtVeryVeryEnd}{% + \g@addto@macro\AtVeryEnd@AtVeryVeryEndHook +} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\Call@BeforeClearDocument} % \begin{macrocode} \newcommand*{\Call@BeforeClearDocument}{% @@ -405,6 +441,40 @@ and the derived files % \end{macrocode} % \end{macro} % +% \begin{macro}{\Call@AtEndAfterFileList} +% \begin{macrocode} +\newcommand*{\Call@AtEndAfterFileList}{% + \Call@AtVeryEndDocument + \let\AtEndAfterFileList\@firstofone + \ifx\AtVeryEnd@AtEndAfterFileListHook\@empty + \PackageInfo{atveryend}{Empty hook `AtEndAfterFileList'}% + \else + \PackageInfo{atveryend}{Executing hook `AtEndAfterFileList'}% + \AtVeryEnd@AtEndAfterFileListHook + \fi + \global\let\AtVeryEnd@AtEndAfterFileListHook\@undefined + \global\let\Call@AtEndAfterFileList\relax +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\Call@AtVeryVeryEnd} +% \begin{macrocode} +\newcommand*{\Call@AtVeryVeryEnd}{% + \Call@AtEndAfterFileList + \let\AtVeryVeryEnd\@firstofone + \ifx\AtVeryEnd@AtVeryVeryEndHook\@empty + \PackageInfo{atveryend}{Empty hook `AtVeryVeryEnd'}% + \else + \PackageInfo{atveryend}{Executing hook `AtVeryVeryEnd'}% + \AtVeryEnd@AtVeryVeryEndHook + \fi + \global\let\AtVeryEnd@AtVeryVeryEndHook\@undefined + \global\let\Call@AtVeryVeryEnd\relax +} +% \end{macrocode} +% \end{macro} +% % \subsection{Redefining \cs{enddocument}} % % This approach looks for known versions of \cs{enddocument} @@ -473,6 +543,7 @@ and the derived files \fi \Call@AtVeryEndDocument \@dofilelist + \Call@AtEndAfterFileList \ifdim \font@submax >\fontsubfuzz\relax \@font@warning{Size substitutions with differences\MessageBreak up to \font@submax\space have occurred.\@gobbletwo}% @@ -491,6 +562,7 @@ and the derived files \fi \endgroup \deadcycles\z@ + \Call@AtVeryVeryEnd \@@end } % \end{macrocode} @@ -556,8 +628,11 @@ and the derived files \immediate\closeout\@mainaux \fi \Call@AtVeryEndDocument + \csname @dofilelist\endcsname + \Call@AtEndAfterFileList \endgroup \deadcycles\z@ + \Call@AtVeryVeryEnd \@@end } % \end{macrocode} @@ -610,11 +685,68 @@ and the derived files \@refundefined \endgroup \deadcycles\z@ + \Call@AtVeryVeryEnd \@@end } % \end{macrocode} % \end{macro} % +% \begin{macro}{\AtVeryEnd@test@c@lenddoca} +% \begin{macrocode} +\long\def\AtVeryEnd@test@c@lenddoca{% + \@dofilelist + \ifdim\font@submax>\fontsubfuzz\relax + \@font@warning{% + Size substitutions with differences\MessageBreak + up to \font@submax\space have occured.\@gobbletwo + }% + \fi + \@defaultsubs + \if@filesw + \ifx\@multiplelabels\relax + \if@tempswa + \@latex@warning@no@line{% + Label(s) may have changed. % + Rerun to get cross-references right% + }% + \fi + \else + \@multiplelabels + \fi + \fi +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\c@lenddoca} +% \begin{macrocode} +\ifx\AtVeryEnd@c@lenddoca\c@lenddoca + \def\c@lenddoca{% + \@dofilelist + \Call@AtEndAfterFileList + \ifdim\font@submax>\fontsubfuzz\relax + \@font@warning{% + Size substitutions with differences\MessageBreak + up to \font@submax\space have occured.\@gobbletwo + }% + \fi + \@defaultsubs + \if@filesw + \ifx\@multiplelabels\relax + \if@tempswa + \@latex@warning@no@line{% + Label(s) may have changed. % + Rerun to get cross-references right% + }% + \fi + \else + \@multiplelabels + \fi + \fi + }% +\fi +% \end{macrocode} +% \end{macro} +% % \subsubsection{Class \xpackage{jpsj2}} % % \begin{macro}{\AtVeryEnd@test@jpsj} @@ -674,8 +806,11 @@ and the derived files \fi \fi \Call@AtVeryEndDocument + \csname @dofilelist\endcsname + \Call@AtEndAfterFileList \endgroup \deadcycles\z@ + \Call@AtVeryVeryEnd \@@end } % \end{macrocode} @@ -794,13 +929,17 @@ and the derived files % \begin{macrocode} \AtEndDocument{% \@ifundefined{@dofilelist}{% - \gdef\@dofilelist{\Call@AtVeryEndDocument}% + \gdef\@dofilelist{% + \Call@AtVeryEndDocument + \Call@AtEndAfterFileList + }% }{% \begingroup \toks@\expandafter{\@dofilelist}% \xdef\@dofilelist{% \noexpand\Call@AtVeryEndDocument \the\toks@ + \noexpand\Call@AtEndAfterFileList }% \endgroup }% @@ -1299,6 +1438,10 @@ and the derived files % \item % \cs{Call@BeforeClearDocument} fixed (Ahmed Musa). % \end{Version} +% \begin{Version}{2011/04/15 v1.6} +% \item +% \cs{Call@AtEndAfterFileList} and \cs{Call@AtVeryVeryEnd} added. +% \end{Version} % \end{History} % % \PrintIndex |