<?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="setups" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setups" variant="direct" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setup" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setup" variant="direct" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="directsetup" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="fastsetup" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="texsetup" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="luasetup" level="style" category="lua" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="systemsetups" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetsetups" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="copysetups" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="showsetupsdefinition" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupwithargument" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="fastsetupwithargument" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupwithargumentswapped" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:content/>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="fastsetupwithargumentswapped" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:content/>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usesetupsparameter" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="autosetups" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doprocesslocalsetups" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsesetups" level="system" category="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifsetupselse" level="system" category="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifsetups" level="system" category="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotsetups" level="system" category="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="luasetups" type="environment" level="system" category="lua" file="core-env.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="grid"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="luasetups" type="environment" variant="string" level="system" category="lua" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="string-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xmlsetups" type="environment" level="style" category="xml" file="core-env.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="grid"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="xmlsetups" type="environment" variant="string" level="style" category="xml" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="string-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rawsetups" type="environment" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="grid"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rawsetups" type="environment" variant="string" level="system" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="string-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="localsetups" type="environment" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="grid"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="localsetups" type="environment" variant="string" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="string-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setups" type="environment" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="grid"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setups" type="environment" variant="string" level="style" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="string-name"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
