1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Graphic Macros Merging Goodies}
15
16\unprotect
17
18\registerctxluafile{grphepd}{}
19
20\def\figurereference{\clf_figurestatus{reference}{}}
21
22\defineoverlay[system:graphics:epdf][\directsetup{system:graphics:epdf}]
23
24\startsetups system:graphics:epdf
25 \clf_figure_mergegoodies{\externalfigureparameter\c!interaction}
26 \reference[\figurereference]{}
27\stopsetups
28
29\defineframed
30 [systemgraphicsepdf]
31 [\c!frame=\v!off,
32 \c!offset=\v!overlay,
33 \c!background={\v!foreground,system:graphics:epdf}]
34
35\unexpanded\def\grph_epdf_add_overlay
36 {\global\setbox\foundexternalfigure\vbox\bgroup
37 \system_graphics_epdf{\box\foundexternalfigure}
38 \egroup}
39
40\appendtoks
41 \iflocation
42 \doif\figurefiletype{pdf}{\doifnot{\externalfigureparameter\c!interaction}\v!none\grph_epdf_add_overlay}
43 \fi
44\to \externalfigurepostprocessors
45
46\defineframed
47 [epdfstampsymbol]
48 [\c!foregroundstyle=\v!mono,
49 \c!background=\c!color,
50 \c!rulethickness=.125\exheight,
51 \c!offset=.250\exheight,
52 \c!backgroundcolor=lightgray,
53 \c!framecolor=darkgray,
54 \c!corner=\v!round]
55
56\definesymbol[Stamped] [\epdfstampsymbol{Stamped}]
57
58\definesymbol[Approved] [\epdfstampsymbol{Approved}]
59\definesymbol[Experimental] [\epdfstampsymbol{Experimental}]
60\definesymbol[NotApproved] [\epdfstampsymbol{NotApproved}]
61\definesymbol[AsIs] [\epdfstampsymbol{AsIs}]
62\definesymbol[Expired] [\epdfstampsymbol{Expired}]
63\definesymbol[NotForPublicRelease] [\epdfstampsymbol{NotForPublicRelease}]
64\definesymbol[Confidential] [\epdfstampsymbol{Confidential}]
65\definesymbol[Final] [\epdfstampsymbol{Final}]
66\definesymbol[Sold] [\epdfstampsymbol{Sold}]
67\definesymbol[Departmental] [\epdfstampsymbol{Departmental}]
68\definesymbol[ForComment] [\epdfstampsymbol{ForComment}]
69\definesymbol[TopSecret] [\epdfstampsymbol{TopSecret}]
70\definesymbol[Draft] [\epdfstampsymbol{Draft}]
71\definesymbol[ForPublicRelease] [\epdfstampsymbol{ForPublicRelease}]
72
73
74\protect \endinput
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93 |