<?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" level="system" category="structure notes" 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" level="style" category="structure notes" 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="stretch">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="shrink">
                    <cd:constant type="cd:number"/>
                </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>
                <cd:parameter name="aligntitle">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <!-- end construction values -->
                <cd:inherit name="setupcounter"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupnotations" level="style" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="style" category="structure notes" 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" level="style" category="structure notes" 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>
                <!-- begin root only -->
                <cd:parameter name="spacebefore">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <cd:parameter name="spaceinbetween">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <!-- end root only -->
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupnotes" level="style" category="structure notes" 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="setupfootnotes" level="style" category="structure notes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setnote" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placelocalnotes" level="document" category="structure notes" 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" level="style" category="structure notes" file="strc-not.mkvi"/>

    <cd:command name="flushnotes" level="style" category="structure notes" file="strc-not.mkvi"/>

    <cd:command name="postponingnotes" type="environment" category="structure notes" file="strc-not.mkvi"/>

    <cd:command name="doifelsenoteonsamepage" level="system" category="structure notes conditional" 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" level="system" category="structure notes conditional" 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" level="system" category="structure notes conditional" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="notesymbol" level="system" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list-optional"/>
            </cd:arguments>
        </cd:command>

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

        <cd:command name="footnote" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="footnotetext" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
        <cd:arguments>
            <cd:resolve name="assignment-constructiondata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placefootnotes" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi"/>

    <cd:command name="placelocalfootnotes" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list-optional"/>
            </cd:arguments>
        </cd:command>

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

        <cd:command name="endnote" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-not.mkvi">
            <cd:arguments>
                <cd:resolve name="assignment-constructiondata-list"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definelinenote" level="style" category="structure notes" 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" level="style" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" 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" level="document" category="structure notes" file="strc-lnt.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

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

    <!--

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

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

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

    -->

    <cd:command name="definetextnote" level="style" category="structure notes" file="strc-tnt.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptextnote"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuptextnote" level="style" category="structure notes" file="strc-tnt.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="rule">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="note">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="*"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="empty">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                    <cd:constant type="none"/>
                    <cd:constant type="number"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="textnote" generated="yes" level="document" category="structure notes" file="strc-tnt.mkiv">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptextnote"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

</cd:interface>