<?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="definetabulation" level="style" category="tables" file="tabl-tbl.mkxl">
                <cd:arguments>
                    <cd:resolve name="keyword-name"/>
                    <cd:resolve name="keyword-name-optional"/>
                    <cd:assignments list="yes" optional="yes">
                        <cd:inherit name="setuptabulation"/>
                    </cd:assignments>
                </cd:arguments>
            </cd:command>

        <cd:command name="setuptabulation" level="style" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:parameter name="format">
                        <cd:constant type="cd:template"/>
                        <cd:constant type="none"/>
                    </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="small"/>
                        <cd:constant type="medium" default="yes"/>
                        <cd:constant type="big"/>
                        <cd:constant type="none"/>
                        <cd:constant type="blank"/>
                        <cd:constant type="depth" default="yes"/>
                        <cd:constant type="grid"/>
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="blank">
                        <cd:resolve name="value-blank"/>
                    </cd:parameter>
                    <cd:parameter name="headstyle">
                        <cd:resolve name="value-style"/>
                    </cd:parameter>
                    <cd:parameter name="headcolor">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="background">
                        <cd:constant type="cd:name"/>
                    </cd:parameter>
                    <cd:parameter name="backgroundcolor">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="foregroundstyle">
                        <cd:resolve name="value-style"/>
                    </cd:parameter>
                    <cd:parameter name="foregroundcolor">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="align">
                        <cd:constant type="left"/>
                        <cd:constant type="middle"/>
                        <cd:constant type="right"/>
                        <cd:constant type="dimension"/>
                    </cd:parameter>
                    <cd:parameter name="rule">
                        <cd:constant type="line"/>
                        <cd:constant type="normal" default="yes"/>
                    </cd:parameter>
                    <cd:parameter name="rulecolor">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="rulethickness">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="bodyfont">
                        <cd:inherit name="setupbodyfont"/>
                    </cd:parameter>
                    <cd:parameter name="indenting">
                        <cd:constant type="yes"/>
                        <cd:constant type="no" default="yes"/>
                    </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="unit">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="margin">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="inner">
                        <cd:constant type="cd:command"/>
                    </cd:parameter>
                    <cd:parameter name="EQ">
                        <cd:constant type="cd:command"/>
                    </cd:parameter>
                    <cd:parameter name="header">
                        <cd:constant type="yes" default="yes"/>
                        <cd:constant type="repeat"/>
                        <cd:constant type="text"/>
                    </cd:parameter>
                    <cd:parameter name="frame">
                        <cd:constant type="on"/>
                        <cd:constant type="off" default="yes"/>
                    </cd:parameter>
                    <cd:parameter name="title">
                        <cd:constant type="cd:text"/>
                    </cd:parameter>
                    <cd:parameter name="keeptogether">
                        <cd:constant type="yes" default="yes"/>
                        <cd:constant type="no"/>
                    </cd:parameter>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="tabulation" type="environment" generated="yes" variant="example" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:sequence>
                <cd:variable value="tabulation"/>
            </cd:sequence>
            <cd:arguments>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuptabulation"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definetabulate" level="style" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:template optional="yes"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuptabulate" level="style" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-name-optional"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes">
                    <cd:inherit name="setuptabulation"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setuptabulate" level="style" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="format">
                    <cd:constant type="cd:template"/>
                    <cd:constant type="none"/>
                </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="small"/>
                    <cd:constant type="medium" default="yes"/>
                    <cd:constant type="big"/>
                    <cd:constant type="none"/>
                    <cd:constant type="blank"/>
                    <cd:constant type="depth" default="yes"/>
                    <cd:constant type="grid"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="blank">
                    <cd:resolve name="value-blank"/>
                </cd:parameter>
                <cd:parameter name="headstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="headcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="background">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="backgroundcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="foregroundstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="foregroundcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:constant type="left"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right"/>
                    <cd:constant type="dimension"/>
                </cd:parameter>
                <cd:parameter name="rule">
                    <cd:constant type="line"/>
                    <cd:constant type="normal" default="yes"/>
                </cd:parameter>
                <cd:parameter name="rulecolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="bodyfont">
                    <cd:inherit name="setupbodyfont"/>
                </cd:parameter>
                <cd:parameter name="indenting">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </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="unit">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="margin">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="inner">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="EQ">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="header">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="repeat"/>
                    <cd:constant type="text"/>
                </cd:parameter>
                <cd:parameter name="frame">
                    <cd:constant type="on"/>
                    <cd:constant type="off" default="yes"/>
                </cd:parameter>
                <cd:parameter name="title">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="keeptogether">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="dashstep">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
        </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="tabulate" type="environment" level="document" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:template optional="yes"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptabulate"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="tabulate" type="environment" generated="yes" variant="instance" level="document" category="tables" file="tabl-tbl.mkxl">
        <cd:sequence>
            <cd:instance value="tabulate"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptabulate"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-tabulate"/>
        </cd:instances>
    </cd:command>

    <cd:command name="tabulatehead" type="environment" level="document" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tabulatetail" type="environment" level="document" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tabulaterule" level="document" category="tables" file="tabl-tbl.mkxl"/>

    <cd:command name="tabulateline" level="document" category="tables" file="tabl-tbl.mkxl"/>

    <cd:command name="tabulateautorule" level="document" category="tables" file="tabl-tbl.mkxl"/>

    <cd:command name="tabulateautoline" level="document" category="tables" file="tabl-tbl.mkxl"/>

    <!--

        <cd:command name="VL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="NC" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="NI" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="RC" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="HC" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="EQ" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="RQ" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="HQ" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="NG" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="NN" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="ND" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="NR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="NB" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="CC" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-color-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="CL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-color-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="CM" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-color-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="CR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-color-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="SR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="FR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="MR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="LR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="AR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="FL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="ML" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="LL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="TL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="BL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="HL" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

        <cd:command name="HR" scope="tabulate" level="document" category="tables" file="tabl-tbl.mkxl"/>

    -->

    <cd:command name="definetabulatemove" level="style" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptabulatemove"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuptabulatemove" level="style" category="tables" file="tabl-tbl.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="xoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="yoffset">
                    <cd:constant type="height"/>
                    <cd:constant type="depth"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="orientation">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
