Debian Codegraph @

texmf-dist/tex/latex/base/atbegshi-ltx.sty

raw
1 %%
2 %% This is file `atbegshi-ltx.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltshipout.dtx (with options: `atbegshi-ltx')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs.html
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2025
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the LaTeX base system.
21 %% --------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2008 or later.
30 %%
31 %% This file has the LPPL maintenance status "maintained".
32 %%
33 %% This file may only be distributed together with a copy of the LaTeX
34 %% base system. You may however distribute the LaTeX base system without
35 %% such generated files.
36 %%
37 %% The list of all files belonging to the LaTeX base distribution is
38 %% given in the file `manifest.txt'. See also `legal.txt' for additional
39 %% information.
40 %%
41 %% The list of derived (unpacked) files belonging to the distribution
42 %% and covered by LPPL is defined by the unpacking scripts (with
43 %% extension .ins) which are part of the distribution.
44 %%
45 %% Copyright (C) 2020-2025
46 %% Frank Mittelbach, The LaTeX Project
47 %%
48 %%% From File: ltshipout.dtx
49 \ProvidesPackage{atbegshi-ltx}
50 [2021/01/10 v1.0c
51 Emulation of the original atbegshi^^Jpackage with kernel methods]
52 \let \AtBeginShipoutBox \ShipoutBox
53 \let \AtBeginShipoutInit \@empty
54 \protected\long\def\AtBeginShipout #1{\AddToHook{shipout/before}{#1}}
55 \protected\long\def\AtBeginShipoutNext #1{\AddToHookNext{shipout/before}{#1}}
56 \protected \def \AtBeginShipoutFirst
57 {\@expl@@@shipout@add@firstpage@material@@Nn \AtBeginShipoutFirst}
58 \let \AtBeginShipoutDiscard \DiscardShipoutBox
59 \let \AtBeginShipoutAddToBox
60 \@expl@@@shipout@add@background@box@@n
61 \let \AtBeginShipoutAddToBoxForeground
62 \@expl@@@shipout@add@foreground@box@@n
63 \let \AtBeginShipoutUpperLeft
64 \@expl@@@shipout@add@background@picture@@n
65 \let \AtBeginShipoutUpperLeftForeground
66 \@expl@@@shipout@add@foreground@picture@@n
67 \ExplSyntaxOn
68 \cs_new_eq:NN \AtBeginShipoutOriginalShipout \tex_shipout:D
69 \cs_new:Npn \ShipoutBoxHeight { \dim_use:N \l_shipout_box_ht_dim }
70 \cs_new:Npn \ShipoutBoxDepth { \dim_use:N \l_shipout_box_dp_dim }
71 \cs_new:Npn \ShipoutBoxWidth { \dim_use:N \l_shipout_box_wd_dim }
72 \ExplSyntaxOff
73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
74 \endinput
75 %%
76 %% End of file `atbegshi-ltx.sty'.