; TeX output 1997.03.10:1146soDtGGcmr17The7tGGcmss17everyshipacqkage!", cmsy10eXQ cmr12MartinScrhr oderUK`y cmr10CrGusemannalleeUU3QD-28213UUBremengMS@Dream.HB.North.DEUU(INTERNET)DȌ 1997/03/09'!Kt : cmbx9Abstract s͍oo cmr9Thispac9k|ragede nesanewcommandߤN cmtt9\EveryShipoutanalogousto b\AtBeginDocumentTetc.,whoseargumen9tisexecutedbAeforeeach\shipout. I Nff cmbx12ContentsI!"V cmbx101XIn9troQduction1I2XUsage0Az1I3XOptions&|2I4XRequiredTpac9k\rages2I5XTheTimplemen9tationUz2I6XAc9knowledgementsU3I1aLIntros3ductionIThis4packqageprovidesthehoGok"'ExXprimitiveIwhoseargumentisahb}'ox4Di. /solutionweusehereisbGorrowedfromquire.texbyMarcelR.vqanderGoGot.IItUUisbasedupGon\afterassignmentand\aftergroup.S\@EveryShipout@ShipoutI\@EveryShipout@ShipoutUUisourreplacementfor\shipout.Ls4S\newcommand{\@EveryShipout@Shipout}{% Ls5ap\afterassignment\@EveryShipout@TestLs6ap\global\setbox\@cclv=%Ls7ap}OI\box255,issettowhatevercomesafter\shipout; butafterthatassignment I\@EveryShipout@TestUUiscalled.H\@EveryShipout@TestI\@EveryShipout@TestDzdeterminesifZ\shipoutiscalledwithanargumentlikeI\box255~orsomethinglike\vboxf...g.)CInthelatercasewedelaythecallofI\@EveryShipout@Output8(wheretheoriginal\shipoutiscalled)via\aftergroup.Ls8S\newcommand{\@EveryShipout@Test}{% Ls9ap\ifvoid\@cclv\relaxI10p2\aftergroup\@EveryShipout@OutputI11ap\elseI12p2\@EveryShipout@OutputI13ap\fi%I14ap} \@EveryShipout@OutputI\@EveryShipout@OutputվdoGestheactualwork.Firstthehc}'ode[i(Qaccumu- Ilatedvia\EveryShipoutiscalledandthentheoriginal\shipoutstoredinI\@EveryShipout@Org@ShipoutUUiscalledto nallyshipout\box255. sI6 ACKNOWLEDGEMENTS 3oI15S\newcommand{\@EveryShipout@Output}{% I16ap\@EveryShipout@Hook%I17ap\@EveryShipout@Org@Shipout\box\@cclv%I18ap}m.\@EveryShipout@Org@ShipoutIThe8original\shipoutisstoredin\@EveryShipout@Org@Shipoutby\p\@EveryShipout@Init. IHereUUwealloGcateit.I19S\newcommand{\@EveryShipout@Org@Shipout}{}H\@EveryShipout@InitI\@EveryShipout@Init8storestheoriginal\shipoutin\@EveryShipout@Org@ShipoutIand Vsets\shipoutto\@EveryShipout@Shipout.v#ThisisdoneatI\beginfdocumentgUUvia\AtBeginDocument.I20S\newcommand*{\@EveryShipout@Init}{% I21ap\let\@EveryShipout@Org@Shipout\shipoutI22ap\let\shipout\@EveryShipout@ShipoutI23ap}I24S\AtBeginDocument{\@EveryShipout@Init}I25Sh%5" cmmi9=pack9age#g i!čI6aLAcknowledgementsIV*ersion%{2.0ofeveryshibGorrowsheavilyfromquire.texoftheMidnightMacrosIbyMarcelR.vqanderGoGot(marcel@cs.caltech.edu). ThepointertoquireIwas\providedbyLotharMeyer-Lerbs(T?'E/XSatz@zfn.uni-bremen.de).AsusualIRebGeccaStielsimprovedthequalityofthisdocumentation.IfyouneedIaԽtranslatorfromEnglishorF*ran9caistoGerman,sendherane-mailtoIRebecca@Andurg.HB.North.DE.AndifyouneedaTU>'ExXnicianorcomputersci-Ientist,UUsendmeane-mail;I'mloGokingforajob.IIndexINumbGers`writteninitalic:refertothepagewherethecorrespondingentryisde-IscribGed,8the[onesunderlinedfe.#6tothede nition,theresttotheplaceswheretheIentryUUisused.ǍIafterassignmen9t=X\subitem*+\afterassignment+,5 Iaftergroup=X\subitem*+\aftergroup+,10IA9tBeginDoAcument=X\subitem*+\AtBeginDocument+,24@IbAo9x=X\subitem*+\box+,17Ielse=X\subitem*+\else+,11 IEv9eryShipAout=X\subitem*+\EveryShipout+,\main{3}I =X\subitem*+\fi+,13Iglobal=X\subitem*+\global+,6L͟zffifv9oid=X\subitem*+\ifvoid+,9v'let=X\subitem*+\let+,2,21,22new9command=X\subitem*+\newcommand+,3,4,8,15,19,20relax=X\subitem*+\relax+,9setbAo9x=X\subitem*+\setbox+,6 'bshipAout=X\subitem*+\shipout+,21,22;,p0J cmsl10+