<?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" level="style" category="tables" 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" level="style" category="tables" 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:parameter name="aligncharacter">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="alignmentleftsample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alignmentrightsample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alignmentleftwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="alignmentrightwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="alignmentcharacter">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtable" type="environment" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="embeddedxtable" type="environment" level="style" category="tables" 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" level="style" category="tables" 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" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xrow" type="environment" level="document" category="tables" 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="xcolumn" type="environment" level="document" category="tables" 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="xcolumn" type="environment" level="document" category="tables" 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="xcolumn" type="environment" variant="name" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xcell" type="environment" level="document" category="tables" 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" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablefoot" type="environment" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablenext" type="environment" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xtablebody" type="environment" level="document" category="tables" 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" level="document" category="tables" file="tabl-xtb.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xgroup" type="environment" level="document" category="tables" 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" level="document" category="tables" 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" level="document" category="tables" 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" level="system" category="tables" file="tabl-xtb.mkvi"/>

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

</cd:interface>
