<?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="defineparagraph" level="style" category="structure" file="strc-tag.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupparagraph"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupparagraph" level="style" category="structure" file="strc-tag.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="paragraph" type="environment" level="document" category="structure" file="strc-tag.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupparagraph"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="par" type="environment" level="document" category="structure" file="strc-tag.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupparagraph"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="par" type="environment" begin="b" end ="e" level="document" category="structure" file="strc-tag.mkiv"/>

    <cd:command name="setupparagraphintro" level="style" category="structure" file="spac-par.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:constant type="reset"/>
                <cd:constant type="each"/>
                <cd:constant type="first"/>
                <cd:constant type="next"/>
            </cd:keywords>
            <cd:keywords>
                <cd:constant type="cd:command"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

</cd:interface>