i-offset.xml /size: 2848 b    last modification: 2021-10-28 13:51
1<?xml version="1.0" encoding="UTF-8"?>
2
3<?context-directive job ctxfile x-setups.ctx ?>
4
5<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">
6
7    <cd:command name="setupoffsetbox" level="style" category="boxes" keywords="layout" file="pack-box.mkiv">
8        <cd:arguments>
9            <cd:assignments list="yes">
10                <cd:parameter name="x">
11                    <cd:constant type="cd:dimension"/>
12                </cd:parameter>
13                <cd:parameter name="y">
14                    <cd:constant type="cd:dimension"/>
15                </cd:parameter>
16                <cd:parameter name="leftoffset">
17                    <cd:constant type="cd:dimension"/>
18                </cd:parameter>
19                <cd:parameter name="rightoffset">
20                    <cd:constant type="cd:dimension"/>
21                </cd:parameter>
22                <cd:parameter name="topoffset">
23                    <cd:constant type="cd:dimension"/>
24                </cd:parameter>
25                <cd:parameter name="bottomoffset">
26                    <cd:constant type="cd:dimension"/>
27                </cd:parameter>
28                <cd:parameter name="method">
29                    <cd:constant type="fixed"/>
30                </cd:parameter>
31                <cd:parameter name="width">
32                    <cd:constant type="cd:dimension"/>
33                </cd:parameter>
34                <cd:parameter name="height">
35                    <cd:constant type="cd:dimension"/>
36                </cd:parameter>
37                <cd:parameter name="depth">
38                    <cd:constant type="cd:dimension"/>
39                </cd:parameter>
40                <cd:parameter name="location">
41                    <cd:resolve name="value-aligned"/>
42                </cd:parameter>
43            </cd:assignments>
44        </cd:arguments>
45    </cd:command>
46
47    <cd:command name="setupoffset" level="style" category="boxes" keywords="layout" file="pack-box.mkiv">
48        <cd:arguments>
49            <cd:assignments list="yes">
50                <cd:inherit name="setupoffsetbox"/>
51            </cd:assignments>
52        </cd:arguments>
53    </cd:command>
54
55    <cd:command name="offsetbox" level="system" category="boxes" keywords="layout" file="pack-box.mkiv">
56        <cd:arguments>
57            <cd:assignments list="yes" optional="yes">
58                <cd:inherit name="setupoffsetbox"/>
59            </cd:assignments>
60            <cd:csname/>
61            <cd:content/>
62        </cd:arguments>
63    </cd:command>
64
65    <cd:command name="offset" level="document" category="boxes" keywords="layout" file="pack-box.mkiv">
66        <cd:arguments>
67            <cd:assignments list="yes" optional="yes">
68                <cd:inherit name="setupoffset"/>
69            </cd:assignments>
70            <cd:content/>
71        </cd:arguments>
72    </cd:command>
73
74</cd:interface>
75