<?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="definemixedcolumns" file="page-mix.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmixedcolumns"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupmixedcolumns" file="page-mix.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="grid">
                    <cd:inherit name="definegridsnapping"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="otr"/>
                    <cd:constant type="box"/>
                </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:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="maxheight">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="step">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="profile">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="balance">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="splitmethod">
                    <cd:constant type="none"/>
                    <cd:constant type="fixed"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                </cd:parameter>
                <cd:parameter name="internalgrid">
                    <cd:constant type="line" default="yes"/>
                    <cd:constant type="halfline"/>
                </cd:parameter>
                <cd:parameter name="separator">
                    <cd:constant type="rule"/>
                </cd:parameter>
                <cd:parameter name="strut">
                    <cd:constant type="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="rulecolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="direction">
                    <cd:constant type="normal" default="yes"/>
                    <cd:constant type="reverse"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="mixedcolumns" type="environment" file="page-mix.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmixedcolumns"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="mixedcolumns" type="environment" generated="yes" variant="instance" file="page-mix.mkiv">
        <cd:sequence>
            <cd:instance value="mixedcolumns"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmixedcolumns"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-mixedcolumns"/>
        </cd:instances>
    </cd:command>

    <!--

        <cd:command name="boxedcolumns" type="environment" file="page-mix.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupmixedcolumns"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
