summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/interface/mkiv/i-background.xml
blob: 400e014542405fe1fdea4928704e3b880664a6ef (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="definebackground" file="pack-bck.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbackground"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbackground" file="pack-bck.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:parameter name="leftoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="topoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="bottomoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="background" type="environment" generated="yes" variant="generated" file="pack-bck.mkvi">
        <cd:sequence>
            <cd:variable value="background"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbackground"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="background" type="environment" file="pack-bck.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbackground"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="background" generated="yes" variant="generated" file="pack-bck.mkvi">
        <cd:sequence>
            <cd:variable value="background"/>
        </cd:sequence>
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="background" file="pack-bck.mkvi">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="backgroundline" file="pack-bck.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-color"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbackgrounds" variant="1" file="page-bck.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:constant type="top"/>
                <cd:constant type="header"/>
                <cd:constant type="text"/>
                <cd:constant type="footer"/>
                <cd:constant type="bottom"/>
            </cd:keywords>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="leftedge"/>
                <cd:constant type="leftmargin"/>
                <cd:constant type="text"/>
                <cd:constant type="rightmargin"/>
                <cd:constant type="rightedge"/>
            </cd:keywords>
            <cd:assignments list="yes">
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbackgrounds" variant="2" file="page-bck.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="paper"/>
                <cd:constant type="page"/>
                <cd:constant type="leftpage"/>
                <cd:constant type="rightpage"/>
                <cd:constant type="text"/>
                <cd:constant type="hidden"/>
            </cd:keywords>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="background" type="environment" begin="push" end="pop" file="page-bck.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsesomebackground" file="page-bck.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifsomebackgroundelse" file="page-bck.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifsomebackground" file="page-bck.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

</cd:interface>