<?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="definepairedbox" file="pack-com.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuppairedbox" file="pack-com.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="left"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right"/>
                    <cd:constant type="top"/>
                    <cd:constant type="bottom"/>
                    <cd:constant type="high"/>
                    <cd:constant type="low"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="bodyfont">
                    <cd:inherit name="setupbodyfont"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxheight">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="placepairedbox" file="pack-com.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
            <cd:content/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placepairedbox" type="environment" file="pack-com.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuppairedbox" generated="yes" variant="instance" file="pack-com.mkiv">
        <cd:sequence>
            <cd:string value="setup"/>
            <cd:instance value="pairedbox"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-pairedbox"/>
        </cd:instances>
    </cd:command>

    <cd:command name="placepairedbox" generated="yes" variant="instance" file="pack-com.mkiv">
        <cd:sequence>
            <cd:string value="place"/>
            <cd:instance value="pairedbox"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
            <cd:content/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-pairedbox"/>
        </cd:instances>
    </cd:command>

    <cd:command name="placepairedbox" type="environment" generated="yes" variant="instance" file="pack-com.mkiv">
        <cd:sequence>
            <cd:string value="place"/>
            <cd:instance value="pairedbox"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppairedbox"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-pairedbox"/>
        </cd:instances>
    </cd:command>

    <!--

        <cd:command name="setuplegend" file="pack-com.mkiv">
            <cd:arguments>
                <cd:assignments list="yes">
                    <cd:inherit name="setuppairedbox"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="placelegend" file="pack-com.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppairedbox"/>
                </cd:assignments>
                <cd:content/>
                <cd:resolve name="argument-text"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="placelegend" type="environment" file="pack-com.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppairedbox"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="placeontopofeachother" file="pack-com.mkiv">
        <cd:arguments>
            <cd:content/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placesidebyside" file="pack-com.mkiv">
        <cd:arguments>
            <cd:content/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

</cd:interface>
