blob: e957ebd35e0742c0f5c7399334ac2ecc95735a45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Module: ZzTeX Page Overlay Facilities
%
% Synopsis: This file provides the ability to overlay text and rules
% on each page.
%
% Author: Paul C. Anagnostopoulos
% Created: 29 March 2006
%
% Copyright 1989--2020 by Paul C. Anagnostopoulos
% under The MIT License (opensource.org/licenses/MIT)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Overlay & Proof Identification
% ------- - ----- --------------
\setflag \zoverlayset = \false
\definetoks{\zoverlay}
\zoverlay = {blind}
\definetoks{\zproofid}
\zproofid = {}
\def \setpageoverlay #1{% {name}
\global\setflag \zoverlayset = \true
\global\zoverlay = {#1}}
\def \proofidentification #1{% {text}
\zproofid = {#1}}
\def \zproofidfile {%
\immediate\openout \zwritea = \jobname.zzq\relax
\immediate\write \zwritea {\the\zproofid}%
\immediate\closeout \zwritea}
% Builtin Overlays
% ------- --------
\definedimen{\zoverlaythickness}{.4pt}
\def \pageoverlayblind {}
\def \pageoverlaytrimbox {%
\smashbox{%
\vbox to \trimheight{%
\topcornermarks{\trimwidth}{.5\trimheight}{\zoverlaythickness}%
\vss
\bottomcornermarks{\trimwidth}{.5\trimheight}{\zoverlaythickness}}}%
\zpagelengthmarks
\zslugline}
\def \pageoverlaytrimmarks {%
\smashbox{%
\vbox to \trimheight{%
\topcornermarks{\trimwidth}{.75pc}{\zoverlaythickness}%
\vss
\bottomcornermarks{\trimwidth}{.75pc}{\zoverlaythickness}}}%
\zpagelengthmarks
\zslugline}
% Page Length Marks
% ---- ------ -----
\def \zpagelengthmarks {%
\smashbox{%
\calculate \tdimena = {\headmargin,+,\typeareaheight,-,\footerheight}%
\vskip \tdimena
\hbox to \trimwidth{%
\llap{\vrule height \zoverlaythickness width .75pc}\hfil
\rlap{\vrule height \zoverlaythickness width .75pc}}}}
% Slug Line
% ---- ----
\definedimen{\zslugindent}{.25in}
\def \zslugline {%
\if \notp{\emptytoksp{\zproofid}}%
\kern \trimheight
\if \dimgtrp{\trimheight}{10.75in}\kern -.25in \fi
\kern -8pt
\hbox to \trimwidth{%
\hspace{\zslugindent}%
\zannofont
\the\zproofid \quad
\number\year/\number\month/\number\day\space \formattime \quad
p. \folio \hspace{5pt}%
\if \notp{\emptytoksp{\divisionname}}(\the\divisionname)\fi
\hfill
\inicompositor, \iniinitials \quad
\ZzTeX\ \ZzTeXversion
\hspace{\zslugindent}}%
\fi}
|