<?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="definextable" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupxtable" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="textwidth">
                    <cd:constant type="cd:dimension"/>
                    <cd:constant type="local" default="yes"/>
                </cd:parameter>
                <cd:parameter name="bodyfont">
                    <cd:inherit name="setupbodyfont"/>
                </cd:parameter>
                <cd:parameter name="spaceinbetween">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <cd:parameter name="option">
                    <cd:constant type="tight"/>
                    <cd:constant type="max"/>
                    <cd:constant type="stretch"/>
                    <cd:constant type="width"/>
                    <cd:constant type="height"/>
                    <cd:constant type="fixed"/>
                </cd:parameter>
                <cd:parameter name="textheight">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="columndistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="leftmargindistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightmargindistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="header">
                    <cd:constant type="repeat"/>
                </cd:parameter>
                <cd:parameter name="footer">
                    <cd:constant type="repeat"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="split">
                    <cd:constant type="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="repeat"/>
                    <cd:constant type="auto" default="yes"/>
                </cd:parameter>
                <cd:parameter name="splitoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="samepage">
                    <cd:constant type="before"/>
                    <cd:constant type="after"/>
                    <cd:constant type="both"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtable" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtable" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="embeddedxtable" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="embeddedxtable" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtable" type="environment" generated="yes" variant="example" file="tabl-xtb.mkvi">
        <cd:sequence>
            <cd:variable value="xtable"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="processxtablebuffer" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xrow" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xcell" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="nx">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="ny">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="nc">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="nr">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablehead" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablehead" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablefoot" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablefoot" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablenext" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablenext" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablebody" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablebody" type="environment" variant="name" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xgroup" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xrowgroup" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xcellgroup" type="environment" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupxtable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="currentxtablerow" file="tabl-xtb.mkvi"/>

    <cd:command name="currentxtablecolumn" file="tabl-xtb.mkvi"/>

</cd:interface>
