<?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="defineanchor" level="style" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayer"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayer"/>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="anchor" level="document" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayer"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayer"/>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="syncanchor" level="document" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="alignanchor" level="document" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="r"/>
                <cd:constant type="right"/>
                <cd:constant type="c"/>
                <cd:constant type="m"/>
                <cd:constant type="middle"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="markanchor" level="document" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlocalanchoring" level="document" category="graphics" file="anch-loc.mkxl"/>

    <cd:command name="anchoring" type="environment" level="document" category="graphics" file="anch-loc.mkxl"/>

    <cd:command name="synchronizing" type="environment" level="document" category="graphics" file="anch-loc.mkxl"/>

    <cd:command name="autosync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="mathsync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="mordsync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="mrelsync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="mbinsync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="localanchors" type="environment" begin="push" end="pop" level="system" category="graphics" file="anch-loc.lmt"/>

    <cd:command name="analyzelocalanchors" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="string-box"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="synchronizelocalanchors" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="string-box"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlocalsyncanchor" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:resolve name="string-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlocalalignanchor" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:resolve name="string-number"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="r"/>
                <cd:constant type="right"/>
                <cd:constant type="c"/>
                <cd:constant type="m"/>
                <cd:constant type="middle"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlocalmarkanchor" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:resolve name="string-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="localanchorx" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:resolve name="string-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="localanchory" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:resolve name="string-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="sync" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="async" level="system" category="graphics" file="anch-loc.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="string-number"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="r"/>
                <cd:constant type="right"/>
                <cd:constant type="c"/>
                <cd:constant type="m"/>
                <cd:constant type="middle"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

</cd:interface>
