<?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="definelinenumbering" level="style" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinenumbering"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinenumbering" level="style" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="start">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="step">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="page"/>
                    <cd:constant type="first" default="yes"/>
                    <cd:constant type="next"/>
                </cd:parameter>
                <cd:parameter name="conversion">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="continue">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="text"/>
                    <cd:constant type="begin"/>
                    <cd:constant type="end"/>
                    <cd:constant type="default" default="yes"/>
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="inner"/>
                    <cd:constant type="outer"/>
                    <cd:constant type="inleft"/>
                    <cd:constant type="inright"/>
                    <cd:constant type="margin"/>
                    <cd:constant type="inmargin"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:constant type="inner"/>
                    <cd:constant type="outer"/>
                    <cd:constant type="flushleft"/>
                    <cd:constant type="flushright"/>
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="auto" default="yes"/>
                </cd:parameter>
                <cd:parameter name="command">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="left">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="margin">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="margin"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linenumbering" type="environment" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="continue">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="start">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="step">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="page"/>
                    <cd:constant type="first" default="yes"/>
                    <cd:constant type="next"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linenumbering" type="environment" variant="argument" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:keywords optional="yes">
                <cd:constant type="continue"/>
                <cd:constant type="cd:number"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="someline" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="startline" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="stopline" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsesamelinereference" level="system" category="structure" keywords="conditional" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-reference"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifsamelinereferenceelse" level="system" category="structure" keywords="conditional" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-reference"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="inline" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text-optional"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="inlinerange" level="document" category="structure" file="page-lin.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
