diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/atveryend.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/atveryend.dtx | 194 |
1 files changed, 165 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx b/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx index 1479518f2be..0338c827444 100644 --- a/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/atveryend.dtx @@ -1,11 +1,12 @@ % \iffalse meta-comment -% +% % File: atveryend.dtx -% Version: 2011/04/23 v1.7 -% +% Version: 2011/06/30 v1.8 +% Info: Hooks at the very end of document +% % Copyright (C) 2009-2011 by % Heiko Oberdiek <heiko.oberdiek at googlemail.com> -% +% % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3c of this license or (at your option) any later @@ -15,20 +16,20 @@ % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of % LaTeX version 2005/12/01 or later. -% +% % This work has the LPPL maintenance status "maintained". -% +% % This Current Maintainer of this work is Heiko Oberdiek. -% +% % This work consists of the main source file atveryend.dtx % and the derived files % atveryend.sty, atveryend.pdf, atveryend.ins, atveryend.drv, % atveryend-test1.tex. -% +% % Distribution: % CTAN:macros/latex/contrib/oberdiek/atveryend.dtx % CTAN:macros/latex/contrib/oberdiek/atveryend.pdf -% +% % Unpacking: % (a) If atveryend.ins is present: % tex atveryend.ins @@ -37,7 +38,7 @@ % (c) If you insist on using LaTeX % latex \let\install=y\input{atveryend.dtx} % (quote the arguments according to the demands of your shell) -% +% % Documentation: % (a) If atveryend.drv is present: % latex atveryend.drv @@ -47,14 +48,14 @@ % if available. Here you can specify further options, e.g. % use A4 as paper format: % \PassOptionsToClass{a4paper}{article} -% +% % Programm calls to get the documentation (example): % pdflatex atveryend.dtx % makeindex -s gind.ist atveryend.idx % pdflatex atveryend.dtx % makeindex -s gind.ist atveryend.idx % pdflatex atveryend.dtx -% +% % Installation: % TDS:tex/latex/oberdiek/atveryend.sty % TDS:doc/latex/oberdiek/atveryend.pdf @@ -76,7 +77,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: atveryend 2011/04/23 v1.7 Hooks at very end of document (HO)} +\Msg{* Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)} \Msg{************************************************************************} \keepsilent @@ -88,7 +89,7 @@ This is a generated file. Project: atveryend -Version: 2011/04/23 v1.7 +Version: 2011/06/30 v1.8 Copyright (C) 2009-2011 by Heiko Oberdiek <heiko.oberdiek at googlemail.com> @@ -122,6 +123,10 @@ and the derived files \file{atveryend.sty}{\from{atveryend.dtx}{package}}% \usedir{doc/latex/oberdiek/test}% \file{atveryend-test1.tex}{\from{atveryend.dtx}{test1}}% + \nopreamble + \nopostamble + \usedir{source/latex/oberdiek/catalogue}% + \file{atveryend.xml}{\from{atveryend.dtx}{catalogue}}% } \catcode32=13\relax% active space @@ -148,16 +153,16 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atveryend.drv}% - [2011/04/23 v1.7 Hooks at very end of document (HO)]% + [2011/06/30 v1.8 Hooks at the very end of document (HO)]% \documentclass{ltxdoc} -\usepackage{holtxdoc}[2011/02/04] +\usepackage{holtxdoc}[2011/11/22] \begin{document} \DocInput{atveryend.dtx}% \end{document} %</driver> % \fi % -% \CheckSum{1084} +% \CheckSum{1203} % % \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 @@ -178,7 +183,7 @@ and the derived files % \GetFileInfo{atveryend.drv} % % \title{The \xpackage{atveryend} package} -% \date{2011/04/23 v1.7} +% \date{2011/06/30 v1.8} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -268,7 +273,7 @@ and the derived files % \item Hooks that are provided by others are used (package % \xpackage{scrlfile} or class \xclass{revtex4-1}. % \item It redefines \cs{@checkend} and \cs{@dofilelist} to insert -% the hooks similar to package{scrlfile}. +% the hooks similar to package \xpackage{scrlfile}. % \item The hook execution is wrapped in a macro that % is redefined by its first call to prevent calling the hook % more than once. @@ -334,7 +339,7 @@ and the derived files % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{atveryend}% - [2011/04/23 v1.7 Hooks at very end of document (HO)] + [2011/06/30 v1.8 Hooks at the very end of document (HO)] % \end{macrocode} % % \subsection{Tools} @@ -589,6 +594,94 @@ and the derived files % \end{macrocode} % \end{macro} % +% \subsubsection{\LaTeX\ kernel 2011/06/27} +% +% The \hologo{LaTeX2e} release 2011/06/27 has changed \cs{enddocument} +% (\cs{input} is replaced by \cs{@@input}). +% \begin{macro}{\AtVeryEnd@test@standard20110627} +% \begin{macrocode} +\expandafter\def\csname AtVeryEnd@test@standard20110627\endcsname{% + \let\AtEndDocument\@firstofone + \@enddocumenthook + \@checkend{document}% + \clearpage + \begingroup + \if@filesw + \immediate\closeout\@mainaux + \let\@setckpt\@gobbletwo + \let\@newl@bel\@testdef + \@tempswafalse + \makeatletter + \@@input\jobname.aux % + \fi + \@dofilelist + \ifdim \font@submax >\fontsubfuzz\relax + \@font@warning{Size substitutions with differences\MessageBreak + up to \font@submax\space have occurred.\@gobbletwo}% + \fi + \@defaultsubs + \@refundefined + \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 + \endgroup + \deadcycles\z@ + \@@end +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\AtVeryEnd@enddocument@standard20110627} +% \begin{macrocode} +\expandafter\def\csname AtVeryEnd@enddocument@standard20110627\endcsname{% + \let\AtEndDocument\@firstofone + \@enddocumenthook + \@checkend{document}% + \Call@BeforeClearDocument + \clearpage + \Call@AfterLastShipout + \begingroup + \if@filesw + \immediate\closeout\@mainaux + \let\@setckpt\@gobbletwo + \let\@newl@bel\@testdef + \@tempswafalse + \makeatletter + \@@input\jobname.aux % + \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}% + \fi + \@defaultsubs + \@refundefined + \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 + \endgroup + \deadcycles\z@ + \Call@AtVeryVeryEnd + \@@end +} +% \end{macrocode} +% \end{macro} +% % \subsubsection{Package \xpackage{booklet}, file \xpackage{2up.tex}} % % \begin{macro}{\AtVeryEnd@test@booklet} @@ -866,6 +959,7 @@ and the derived files \def\AtVeryEnd@RedefEndDocument#1{% \ifx#1\@undefined \else + \AtVeryEnd@Test#1{standard20110627}% \AtVeryEnd@Test#1{standard}% \AtVeryEnd@Test#1{booklet}% \AtVeryEnd@Test#1{dinbrief}% @@ -1378,8 +1472,46 @@ and the derived files %\end{verbatim} % \end{quote} % +% \section{Catalogue} +% +% The following XML file can be used as source for the +% \href{http://mirror.ctan.org/help/Catalogue/catalogue.html}{\TeX\ Catalogue}. +% The elements \texttt{caption} and \texttt{description} are imported +% from the original XML file from the Catalogue. +% The name of the XML file in the Catalogue is \xfile{atveryend.xml}. +% \begin{macrocode} +%<*catalogue> +<?xml version='1.0' encoding='us-ascii'?> +<!DOCTYPE entry SYSTEM 'catalogue.dtd'> +<entry datestamp='$Date$' modifier='$Author$' id='atveryend'> + <name>atveryend</name> + <caption>Hooks at the very end of a document.</caption> + <authorref id='auth:oberdiek'/> + <copyright owner='Heiko Oberdiek' year='2009-2011'/> + <license type='lppl1.3'/> + <version number='1.8'/> + <description> + This LaTeX packages provides two hooks for <tt>\end{document}</tt> + that are executed after the hook of <tt>\AtEndDocument</tt>: + <tt>\AfterLastShipout</tt> can be used for code that is to be executed + right after the last <tt>\clearpage</tt> before the `<tt>.aux</tt>' file + is closed. <tt>\AtVeryEndDocument</tt> is used for code after closing + and final reading of the `<tt>.aux</tt>' file. + <p/> + The package is part of the <xref refid='oberdiek'>oberdiek</xref> bundle. + </description> + <documentation details='Package documentation' + href='ctan:/macros/latex/contrib/oberdiek/atveryend.pdf'/> + <ctan file='true' path='/macros/latex/contrib/oberdiek/atveryend.dtx'/> + <miktex location='oberdiek'/> + <texlive location='oberdiek'/> + <install path='/macros/latex/contrib/oberdiek/oberdiek.tds.zip'/> +</entry> +%</catalogue> +% \end{macrocode} +% % \section{Acknowledgement} -% +% % \begin{description} % \item[Arthur Ogawa:] He proposed the new API with \cs{AfterLastShipout} % and gave me much feedback, comprehensive class/package lists, many @@ -1387,49 +1519,49 @@ and the derived files % \end{description} % % \begin{thebibliography}{9} -% +% % \bibitem{clsguide} % The \LaTeX3 Project: % \textit{\LaTeX2e\ for class and package writers} % 2006/02/15; % \CTAN{macros/latex/doc/clsguide.pdf}. -% +% % \bibitem{endfloat} % James Darrell McCauley, Jeff Goldberg: % \textit{The \xpackage{endfloat} package}; % 1995/10/11 v2.4i; % \CTAN{macros/latex/contrib/endfloat/endfloat.pdf}. -% +% % \bibitem{etoolbox} % Philipp Lehmann: % \textit{The \xpackage{etoolbox} package}; % 2009/08/06 v1.8; % \CTAN{macros/latex/contrib/etoolbox/etoolbox.pdf}. -% +% % \bibitem{hyperref} % Sebastian Rahtz, Heiko Oberdiek: % \textit{The \xpackage{hyperref} package}; % 2009/12/05 v6.79l; % \CTAN{macros/latex/contrib/hyperref/}. -% +% % \bibitem{koma} % Markus Kohm: % \textit{KOMA-Script}; % 2009/07/24 v3.04a; % \url{http://www.komascript.de/}. -% +% % \bibitem{lastpage} % Jeff Goldberg: % \textit{The \xpackage{lastpage} package}; % 1994/07/20 v0.1b; % \CTAN{macros/latex/contrib/lastpage/lastpage.pdf}. -% +% % \bibitem{revtex} % APS, AIP, Arthur Orgawa; % ReVTeX 4.1; % 2009/10/13 v4.1; % \url{http://authors.aps.org/revtex4/}. -% +% % \end{thebibliography} % % \begin{History} @@ -1473,6 +1605,10 @@ and the derived files % to avoid error because of undefined control sequence % in some circumstances (thanks to D.P. Story for bug report). % \end{Version} +% \begin{Version}{2011/06/30 v1.8} +% \item +% Support of changed \cs{enddocument} of \hologo{LaTeX2e} 2011/06/27. +% \end{Version} % \end{History} % % \PrintIndex |