<?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="definenotation" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupnotation"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupnotation" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="title">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="number">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="type">
                    <cd:constant type="note"/>
                </cd:parameter>
                <cd:parameter name="numbercommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="titledistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="titlestyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="titlecolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="titlecommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="titleleft">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="titleright">
                    <cd:constant type="cd:command"/>
                </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="symbol">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="starter">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="stopper">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="coupling">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="counter">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <!-- begin construction values -->
                <cd:parameter name="level">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="text">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="headcommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="inmargin"/>
                    <cd:constant type="inleft"/>
                    <cd:constant type="inright"/>
                    <cd:constant type="margin"/>
                    <cd:constant type="leftmargin"/>
                    <cd:constant type="rightmargin"/>
                    <cd:constant type="innermargin"/>
                    <cd:constant type="outermargin"/>
                    <cd:constant type="serried"/>
                    <cd:constant type="hanging"/>
                    <cd:constant type="top"/>
                    <cd:constant type="command"/>
                    <cd:constant type="note" default="yes"/>
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="headalign">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="indenting">
                    <cd:inherit name="setupindenting"/>
                </cd:parameter>
                <cd:parameter name="display">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="indentnext">
                    <cd:resolve name="value-indentnext"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="fit"/>
                    <cd:constant type="broad"/>
                    <cd:constant type="line"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="none"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="hang">
                    <cd:constant type="fit"/>
                    <cd:constant type="broad"/>
                    <cd:constant type="none"/>
                    <cd:constant type="margin"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="closesymbol">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="closecommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="expansion">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                    <cd:constant type="xml"/>
                </cd:parameter>
                <cd:parameter name="referenceprefix">
                    <cd:resolve name="value-referenceprefix"/>
                </cd:parameter>
                <cd:parameter name="sample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="margin">
                    <cd:resolve name="value-leftskip"/>
                </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:parameter name="headstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="headcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <!-- end construction values -->
                <cd:inherit name="setupcounter"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupnotations" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupnotation"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="note" type="environment" generated="yes" variant="instance:assignment" file="strc-not.mkvi">
        <cd:sequence>
            <cd:instance value="note"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="assignment-constructiondata-list-optional"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-note"/>
        </cd:instances>
    </cd:command>

    <cd:command name="note" type="environment" generated="yes" variant="instance" file="strc-not.mkvi">
        <cd:sequence>
            <cd:instance value="note"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-reference-list-optional"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-note"/>
        </cd:instances>
    </cd:command>

    <cd:command name="note" generated="yes" variant="instance" file="strc-not.mkvi">
        <cd:sequence>
            <cd:instance value="note"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-reference-list-optional"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-note"/>
        </cd:instances>
    </cd:command>

    <cd:command name="note" generated="yes" variant="instance:assignment" file="strc-not.mkvi">
        <cd:sequence>
            <cd:instance value="note"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="assignment-constructiondata-list"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-note"/>
        </cd:instances>
    </cd:command>

    <cd:command name="definenote" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupnote" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="interaction">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="number"/>
                    <cd:constant type="text"/>
                    <cd:constant type="all"/>
                </cd:parameter>
                <cd:parameter name="symbolcommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="textcommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="indicator">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="textseparator">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rulecommand">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="rule">
                    <cd:constant type="on" default="yes"/>
                    <cd:constant type="off"/>
                    <cd:constant type="normal"/>
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="command"/>
                    <cd:constant type="paragraph"/>
                </cd:parameter>
                <cd:parameter name="split">
                    <cd:constant type="tolerant" default="yes"/>
                    <cd:constant type="strict"/>
                    <cd:constant type="verystrict"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="factor">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="text"/>
                    <cd:constant type="page"/>
                    <cd:constant type="high"/>
                    <cd:constant type="bottom"/>
                    <cd:constant type="none"/>
                    <cd:constant type="columns"/>
                    <cd:constant type="firstcolumn"/>
                    <cd:constant type="lastcolumn"/>
                </cd:parameter>
                <cd:parameter name="next">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="rulecolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="interlinespace">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="paragraph">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="scope">
                    <cd:constant type="page"/>
                </cd:parameter>
                <cd:parameter name="columndistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="continue">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="grid"/>
                    <cd:constant type="fixed"/>
                    <cd:constant type="columns"/>
                    <cd:constant type="note" default="yes"/>
                    <cd:constant type="none"/>
                </cd:parameter>
                <cd:parameter name="criterium">
                    <cd:constant type="page"/>
                </cd:parameter>
                <cd:parameter name="bodyfont">
                    <cd:inherit name="setupbodyfont"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </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="anchor">
                    <cd:constant type="next"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupnotes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setnote" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-reference-list-optional"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setnote" variant="assignment" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-constructiondata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setnotetext" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-reference-list-optional"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setnotetext" variant="assignment" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-constructiondata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placenotes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="localnotes" type="environment" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placelocalnotes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="postponenotes" file="strc-not.mkvi"/>

    <cd:command name="flushnotes" file="strc-not.mkvi"/>

    <cd:command name="doifelsenoteonsamepage" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnoteonsamepageelse" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotescollected" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="notesymbol" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-reference-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="note" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="footnote" type="environment" variant="assignment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="footnote" type="environment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference-list-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="footnote" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference-list-optional"/>
                <cd:resolve name="argument-text"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="footnote" variant="assignment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="footnotetext" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference-list-optional"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="footnotetext" variant="assignment" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="assignment-constructiondata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placefootnotes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="localfootnotes" type="environment" file="strc-not.mkvi"/>

    <cd:command name="placelocalfootnotes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="endnote" type="environment" variant="assignment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="endnote" type="environment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference-list-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="endnote" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference-list-optional"/>
                <cd:resolve name="argument-text"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="endnote" variant="assignment" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definelinenote" file="strc-lnt.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinenote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinenote" file="strc-lnt.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="compress">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="compressmethod">
                    <cd:constant type="separator"/>
                    <cd:constant type="stopper"/>
                    <cd:constant type="space"/>
                </cd:parameter>
                <cd:parameter name="compressseparator">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="compressdistance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linenote" generated="yes" variant="instance" file="strc-lnt.mkvi">
        <cd:sequence>
            <cd:instance value="linenote"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-linenote"/>
        </cd:instances>
    </cd:command>

    <cd:command name="startlinenote" generated="yes" variant="instance" file="strc-lnt.mkvi">
        <cd:sequence>
            <cd:string value="start"/>
            <cd:instance value="linenote"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-linenote"/>
        </cd:instances>
    </cd:command>

    <cd:command name="stoplinenote" generated="yes" variant="instance" file="strc-lnt.mkvi">
        <cd:sequence>
            <cd:string value="stop"/>
            <cd:instance value="linenote"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-linenote"/>
        </cd:instances>
    </cd:command>

    <cd:command name="fromlinenote" file="strc-lnt.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tolinenote" file="strc-lnt.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="linenote" file="strc-lnt.mkvi">
            <cd:arguments>
                <cd:resolve name="argument-text"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="startlinenote" file="strc-lnt.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
                <cd:resolve name="argument-text"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="stoplinenote" file="strc-lnt.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
