<?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="MPdefinitions" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-instance-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPextensions" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-instance-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPinitializations" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl"/>

    <cd:command name="MPinclusions" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="+"/>
            </cd:keywords>
            <cd:resolve name="argument-instance-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPinclusions" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="+"/>
            </cd:keywords>
            <cd:resolve name="argument-instance-optional"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="defineMPinstance" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupMPinstance"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPinstance" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="format">
                    <cd:constant type="metafun" default="yes"/>
                    <cd:constant type="minifun"/>
                    <cd:constant type="mpost"/>
                </cd:parameter>
                <cd:parameter name="initializations">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="textstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="textcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="extensions">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="binary"/>
                    <cd:constant type="decimal"/>
                    <cd:constant type="double"/>
                    <cd:constant type="scaled"/>
                    <cd:constant type="default" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPinstance" level="system" category="graphics" keywords="metapost" file="mlib-ctx.lmt">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processMPfigurefile" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPdrawing" type="environment" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="-"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPdrawing" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl"/>

    <cd:command name="getMPdrawing" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl"/>

    <cd:command name="MPdrawing" level="system" type="environment" begin="push" end="pop" category="graphics" keywords="metapost" file="meta-ini.mkxl"/>

    <cd:command name="MPdrawing" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPclip" type="environment" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPfontsizehskip" level="system" category="graphics" keywords="metapost fonts" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPvariables" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPvariables" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPvariable" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-userdata"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPrawvar" level="system" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPvariable" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPvar" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPvariables" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-key-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPgraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPgraphic" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPgraphic" variant="assignment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="instance">
                    <cd:resolve name="value-instance"/>
                </cd:parameter>
                <cd:parameter name="descriptiontext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alternativetext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPgraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPgraphic" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPgraphic" variant="assignment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="instance">
                    <cd:resolve name="value-instance"/>
                </cd:parameter>
                <cd:parameter name="descriptiontext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alternativetext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usableMPgraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reuseMPgraphic" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="reuseMPgraphic" variant="assignment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="instance">
                    <cd:resolve name="value-instance"/>
                </cd:parameter>
                <cd:parameter name="descriptiontext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alternativetext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reusableMPgraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reusableMPgraphic" variant="assignment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="instance">
                    <cd:resolve name="value-instance"/>
                </cd:parameter>
                <cd:parameter name="descriptiontext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alternativetext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reusableMPgraphic" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlayMPgraphic" type="environment" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPoverlaydata" type="environment" file="meta-ini.mkxl"/>

    <cd:command name="includeMPoverlaydata" file="meta-ini.mkxl"/>

    <cd:command name="resetMPoverlaydata" file="meta-ini.mkxl"/>

    <cd:command name="uniqueMPpagegraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPpagegraphic" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="processMPbuffer" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="runMPbuffer" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPenvironment" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="reset"/>
                <cd:constant type="global"/>
                <cd:constant type="+"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPenvironment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl"/>

    <cd:command name="useMPenvironmentbuffer" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPcode" type="environment" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-instance-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPcode" type="environment" variant="assignment" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="instance">
                    <cd:resolve name="value-instance"/>
                </cd:parameter>
                <cd:parameter name="stacking">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="descriptiontext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="alternativetext">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPcode" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:resolve name="value-instance"/>
            </cd:keywords>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPrun" type="environment" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPrun" level="document" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPlibrary" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPtext" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPtext" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPstring" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPbetex" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseMPgraphic" level="style" category="graphics" keywords="metapost conditional" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifMPgraphicelse" level="style" category="graphics" keywords="metapost conditional" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="staticMPfigure" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="staticMPgraphic" type="environment" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usestaticMPfigure" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupscale"/>
            </cd:assignments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPgraphics" level="style" category="graphics" keywords="metapost" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="color">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                </cd:parameter>
                <cd:parameter name="mpy">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="getMPdata" file="meta-ini.lmt"/>

    <cd:command name="rawMPdata" file="meta-ini.lmt"/>

    <cd:command name="MPdpar" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPnpar" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPspar" file="meta-ini.mkxl">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tx" type="environment" begin="b" end="e" file="mlib-ctx.mkxl"/>

</cd:interface>
