<?xml version="1.0" encoding="UTF-8"?>

<!-- versions:

     comment  : user interface definitions of ConTeXt

     authors  : Hans Hagen, Taco Hoekwater, Patrick Gundlach, Wolfgang Schuster, and others

     versions : 2004.11.17 : initial version
                2006.08.02 : define + resolve

-->

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands" name="context test" language="en" version="2006.08.02">

  <!-- there are some more -->

  <cd:define name="align">
    <cd:constant type="inner"/>
    <cd:constant type="outer"/>
    <cd:constant type="left"/>
    <cd:constant type="right"/>
    <cd:constant type="flushleft"/>
    <cd:constant type="flushright"/>
    <cd:constant type="middle"/>
    <cd:constant type="center"/>
    <cd:constant type="normal"/>
    <cd:constant type="no"/>
    <cd:constant type="yes"/>
    <cd:constant type="broad"/>
    <cd:constant type="last"/>
    <cd:constant type="r2l"/>
    <cd:constant type="l2r"/>
  </cd:define>

  <cd:define name="symalign">
    <cd:constant type="left"/>
    <cd:constant type="right"/>
    <cd:constant type="flushleft"/>
    <cd:constant type="flushright"/>
    <cd:constant type="middle"/>
    <cd:constant type="center"/>
  </cd:define>

  <cd:define name="indenting">
    <cd:constant type="never"/>
    <cd:constant type="none"/>
    <cd:constant type="not"/>
    <cd:constant type="no"/>
    <cd:constant type="yes"/>
    <cd:constant type="always"/>
    <cd:constant type="first"/>
    <cd:constant type="next"/>
    <cd:constant type="small"/>
    <cd:constant type="medium"/>
    <cd:constant type="big"/>
    <cd:constant type="normal"/>
    <cd:constant type="odd"/>
    <cd:constant type="even"/>
    <cd:constant type="cd:dimension"/>
  </cd:define>

  <cd:define name="indentnext">
    <cd:constant type="yes"/>
    <cd:constant type="no"/>
  </cd:define>

  <cd:define name="style">
    <cd:constant type="normal"/>
    <cd:constant type="bold"/>
    <cd:constant type="slanted"/>
    <cd:constant type="boldslanted"/>
    <cd:constant type="type"/>
    <cd:constant type="cap"/>
    <cd:constant type="small..."/>
    <cd:constant type="cd:command"/>
  </cd:define>

  <cd:define name="language">
    <cd:constant type="nl"/>
    <cd:constant type="fr"/>
    <cd:constant type="en"/>
    <cd:constant type="uk"/>
    <cd:constant type="de"/>
    <cd:constant type="es"/>
    <cd:constant type="cz"/>
    <cd:constant type=".."/>
  </cd:define>

  <cd:define name="texts">
    <cd:constant type="cd:text"/>
    <cd:constant type="cd:section"/>
    <cd:constant type="date"/>
    <cd:constant type="cd:mark"/>
    <cd:constant type="pagenumber"/>
  </cd:define>

  <cd:define name="layout-h">
    <cd:constant type="text" default="yes"/>
    <cd:constant type="margin"/>
    <cd:constant type="edge"/>
  </cd:define>

  <cd:define name="layout-v">
    <cd:constant type="top"/>
    <cd:constant type="header"/>
    <cd:constant type="text" default="yes"/>
    <cd:constant type="footer"/>
    <cd:constant type="bottom"/>
  </cd:define>

  <cd:define name="bodyfont">
    <cd:constant type="5pt"/>
    <cd:constant type="..."/>
    <cd:constant type="12pt"/>
    <cd:constant type="small"/>
    <cd:constant type="big"/>
  </cd:define>

  <cd:command name="installlanguage" file="lang-ini.tex" category="language">
    <cd:sequence>
      <cd:string value="installlanguage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="spacing">
          <cd:constant type="packed" default="yes"/>
          <cd:constant type="broad"/>
        </cd:parameter>
        <cd:parameter name="lefthyphenmin">
          <cd:constant type="cd:number" default="2"/>
        </cd:parameter>
        <cd:parameter name="righthyphenmin">
          <cd:constant type="cd:number" default="2"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="leftsentence">
          <cd:constant type="cd:command" default="---"/>
        </cd:parameter>
        <cd:parameter name="rightsentence">
          <cd:constant type="cd:command" default="---"/>
        </cd:parameter>
        <cd:parameter name="leftsubsentence">
          <cd:constant type="cd:command" default="---"/>
        </cd:parameter>
        <cd:parameter name="rightsubsentence">
          <cd:constant type="cd:command" default="---"/>
        </cd:parameter>
        <cd:parameter name="leftquote">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="rightquote">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="leftquotation">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="rightquotation">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="leftspeech">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="middlespeech">
          <cd:constant type="cd:command" default=""/>
        </cd:parameter>
        <cd:parameter name="rightspeech">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="limittext">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="date">
          <cd:constant type="cd:text"/> <!-- TODO -->
        </cd:parameter>
        <cd:parameter name="compoundhyphen">
          <cd:constant type="cd:command" default="\compoundhyphen"/>
        </cd:parameter>
        <cd:parameter name="leftcompoundhyphen">
          <cd:constant type="cd:command" default="\compoundhyphen"/>
        </cd:parameter>
        <cd:parameter name="rightcompoundhyphen">
          <cd:constant type="cd:command" default=""/>
        </cd:parameter>
        <cd:parameter name="default">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplanguage" file="lang-ini.tex" category="language">
    <cd:sequence>
      <cd:string value="setuplanguage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="language"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="installlanguage" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="language" file="lang-ini.tex" category="language">
    <cd:sequence>
      <cd:string value="language"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="language"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="mainlanguage" file="lang-ini.tex" category="language">
    <cd:sequence>
      <cd:string value="mainlanguage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="language"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="translate" file="lang-lab.tex" category="language">
    <cd:sequence>
      <cd:string value="translate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="cd:name">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="useencoding" file="enco-ini.tex" category="encoding"> <!-- engine="pdftex" -->
    <cd:sequence>
      <cd:string value="useencoding"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="usespecials" file="spec-ini.tex">
    <cd:sequence>
      <cd:string value="usespecials"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="reset"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineoutput" file="spec-ini.tex">
    <cd:sequence>
      <cd:string value="defineoutput"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupoutput" file="spec-ini.tex">
    <cd:sequence>
      <cd:string value="setupoutput"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definebodyfontenvironment" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definebodyfontenvironment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes"> <!-- it's possible to use 1+2+3, 2+3, what about 1+2? -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="no"> <!-- have to force no, otherwise \showsetup is wrong ! -->
        <cd:constant type="5pt"/> <!-- TODO: maybe <cd:resolve name="bodyfont"/> -->
        <cd:constant type="..."/>
        <cd:constant type="12pt"/>
        <cd:constant type="default"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:parameter name="text">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="script">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="scriptscript">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="x">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="xx">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="a">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="b">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="c">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="d">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="small">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="big">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="interlinespace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="em">
          <cd:resolve name="style"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbodyfontenvironment" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="setupbodyfontenvironment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes"> <!-- same as definebodyfontenvironment; you can define the whole commant to inherit, not only parameters-->
        <cd:inherit name="definebodyfontenvironment" n="1"/>
      </cd:keywords>
      <cd:keywords n="2" optional="no">
        <cd:inherit name="definebodyfontenvironment" n="2" optional="no"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="definebodyfontenvironment" n="3"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="showbodyfontenvironment" file="font-run.tex" category="fonts"> <!-- and debug -->
    <cd:sequence>
      <cd:string value="showbodyfontenvironment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:inherit name="setupbodyfont" n="1"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definebodyfont" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definebodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes"> <!-- <cd:constant type="default"/> -->
        <cd:resolve name="bodyfont"/> <!-- TODO: check this -->
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="rm" default="yes"/>
        <cd:constant type="ss"/>
        <cd:constant type="tt"/>
        <cd:constant type="hw"/>
        <cd:constant type="cg"/>
        <cd:constant type="mm"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="tf">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="bf">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="sl">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="it">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="bs">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="bi">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="sc">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="mr">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="ex">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="mi">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="sy">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="ma">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="mb">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="mc">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="md">
          <cd:constant type="cd:file"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definebodyfontDEF" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definebodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:inherit name="setupbodyfont" n="2"/>
      </cd:keywords>
      <cd:keywords n="1">
        <cd:inherit name="setupbodyfont" n="3"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definebodyfontREF" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definebodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:inherit name="setupbodyfont" n="1"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:inherit name="setupbodyfont" n="2"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>


  <cd:command name="showbodyfont" file="font-run.tex" category="fonts"> <!-- visual debugging -->
    <cd:sequence>
      <cd:string value="showbodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:inherit name="setupbodyfont" n="1"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbodyfont" file="font-run.tex" category="fonts">
    <cd:sequence>
      <cd:string value="setupbodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes"> <!-- TODO: many missing, maybe also <cd:resolve name="bodyfont"/> -->
        <cd:constant type="cd:name"/>
        <cd:constant type="serif"/>
        <cd:constant type="regular"/>
        <cd:constant type="roman"/>
        <cd:constant type="sans"/>
        <cd:constant type="support"/>
        <cd:constant type="sansserif"/>
        <cd:constant type="mono"/>
        <cd:constant type="type"/>
        <cd:constant type="teletype"/>
        <cd:constant type="handwritten"/>
        <cd:constant type="calligraphic"/>
        <cd:constant type="5pt"/>
        <cd:constant type="..."/>
        <cd:constant type="12pt"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="switchtobodyfont" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="switchtobodyfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
        <cd:constant type="serif"/>
        <cd:constant type="regular"/>
        <cd:constant type="roman"/>
        <cd:constant type="sans"/>
        <cd:constant type="support"/>
        <cd:constant type="sansserif"/>
        <cd:constant type="mono"/>
        <cd:constant type="type"/>
        <cd:constant type="teletype"/>
        <cd:constant type="handwritten"/>
        <cd:constant type="calligraphic"/>
        <cd:constant type="5pt"/>
        <cd:constant type="..."/>
        <cd:constant type="12pt"/>
        <cd:constant type="small"/>
        <cd:constant type="big"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefont" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definefont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:file"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcolor" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="setupcolor"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcolors" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="setupcolors"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="global"/>
          <cd:constant type="local"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="always"/>
          <cd:constant type="never"/>
        </cd:parameter>
        <cd:parameter name="reduction">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="rgb">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="cmyk">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="mpcmyk">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="mpspot">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="textcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="split">
          <cd:constant type="c"/>
          <cd:constant type="m"/>
          <cd:constant type="y"/>
          <cd:constant type="k"/>
          <cd:constant type="p"/>
          <cd:constant type="s"/>
          <cd:constant type="no"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="all"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="intent">
          <cd:constant type="none"/>
          <cd:constant type="overprint"/>
          <cd:constant type="knockout"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definecolor" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="definecolor"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="r">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="g">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="b">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="c">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="m">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="y">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="k">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="s">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="h">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="t">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="a">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="p">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="e">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="color" type="environment" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="color"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="color" file="colo-ini.tex">
    <cd:sequence>
      <cd:string value="color"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="graycolor" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="graycolor"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="showcolor" file="colo-run.tex" category="colors"> <!-- and debug -->
    <cd:sequence>
      <cd:string value="showcolor"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definepalet" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="definepalet"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="cd:name">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppalet" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="setuppalet"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definecolorgroup" file="colo-ini.tex" category="colors">
    <cd:sequence>
      <cd:string value="definecolorgroup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="rgb" default="yes"/>
        <cd:constant type="cmyk"/>
        <cd:constant type="gray"/>
        <cd:constant type="s"/>
      </cd:keywords>
      <cd:triplet n="3" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="showpalet" file="colo-run.tex" category="colors"> <!-- and debug -->
    <cd:sequence>
      <cd:string value="showpalet"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="horizontal"/>
        <cd:constant type="vertical"/>
        <cd:constant type="name"/>
        <cd:constant type="value"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="showcolorgroup" file="colo-run.tex" category="colors"> <!-- and debug-->
    <cd:sequence>
      <cd:string value="showcolorgroup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="horizontal"/>
        <cd:constant type="vertical"/>
        <cd:constant type="name"/>
        <cd:constant type="value"/>
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="comparepalet" file="colo-run.tex" category="colors"> <!-- and debug? -->
    <cd:sequence>
      <cd:string value="comparepalet"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="comparecolorgroup" file="colo-run.tex" category="colors">
    <cd:sequence>
      <cd:string value="comparecolorgroup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="showmakeup" file="supp-vis.tex" category="debug">
    <cd:sequence>
      <cd:string value="showmakeup"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="definetype" file="core-ver.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="definetype"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setuptype" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptype" file="core-ver.tex" category="verbatim"> <!-- TODO -->
    <cd:sequence>
      <cd:string value="setuptype"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="space">
          <cd:constant type="on"/>
          <cd:constant type="off" default="yes"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="slanted"/>
          <cd:constant type="normal"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name" default=""/>
        </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="command">
          <cd:constant type="cd:command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="type" file="verb-ini.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="type"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="typ" file="core-ver.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="typ"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="tex" file="core-ver.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="tex"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <!-- cd:command name="arg" file="core-ver.tex"> command broken
  <cd:sequence>
    <cd:string value="arg"/>
  </cd:sequence>
  <cd:arguments>
    <cd:content/>
  </cd:arguments>
</cd:command -->

  <cd:command name="definetyping" file="core-ver.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="definetyping"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:inherit name="setuptyping" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setuptyping" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptyping" file="core-ver.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="setuptyping"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="file"/>
        <cd:constant type="typing"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="space">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="slanted"/>
          <cd:constant type="normal"/>
          <cd:constant type="commands" version="mkiv"/>
          <cd:constant type="color"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="icommand">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="vcommand">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="ccommand">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command" default="\blank"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command" default="\blank"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="standard"/>
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="evenmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="oddmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="blank">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="standard"/>
          <cd:constant type="halfline"/>
          <cd:constant type="line"/>
        </cd:parameter>
        <cd:parameter name="escape">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="space">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="tab">
          <cd:constant type="cd:number"/>
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="palet">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="range">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="lines">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="hyphenated"/>
        </cd:parameter>
        <cd:parameter name="empty">
          <cd:constant type="yes"/>
          <cd:constant type="all"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="numbering">
          <cd:constant type="line"/>
          <cd:constant type="file"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="strip">
          <cd:constant type="no"/>
          <cd:constant type="auto"/>
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="typing" type="environment" generated="yes" file="verb-ini.tex"
    category="verbatim">
    <cd:sequence>
      <cd:variable value="typing"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="typefile" file="verb-ini.tex" category="verbatim">
    <cd:sequence>
      <cd:string value="typefile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfootnotes" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="setupfootnotes"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
        </cd:parameter>
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="page"/>
          <cd:constant type="cd:text"/>
          <cd:constant type="columns"/>
          <cd:constant type="firstcolumn"/>
          <cd:constant type="lastcolumn"/>
          <cd:constant type="high"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="rule">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </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="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="columndistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="margindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="numbercommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="textcommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="split">
          <cd:constant type="tolerant"/>
          <cd:constant type="strict"/>
          <cd:constant type="verystrict"/>
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="textstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="textcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="paragraph">
          <cd:constant type="yes"/>
          <cd:constant type="no" default="yes"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfootnotedefinition" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="setupfootnotedefinition"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:inherit name="setupdescriptions" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="footnote" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="footnote"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="footnotetext" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="footnotetext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="note" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="note"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" interactive="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="localfootnotes" type="environment" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="localfootnotes"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="placelocalfootnotes" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="placelocalfootnotes"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfootnotes" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placefootnotes" file="core-not.tex" category="footnotes">
    <cd:sequence>
      <cd:string value="placefootnotes"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfootnotes" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupunderbar" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="setupunderbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="c"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bottomoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rulecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="underbar" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="underbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="underbars" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="underbars"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overbar" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="overbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overbars" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="overbars"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overstrike" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="overstrike"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overstrikes" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="overstrikes"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="romannumerals" file="core-con.tex">
    <cd:sequence>
      <cd:string value="romannumerals"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Romannumerals" file="core-con.tex">
    <cd:sequence>
      <cd:string value="Romannumerals"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="numbers" file="core-con.tex">
    <cd:sequence>
      <cd:string value="numbers"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="character" file="core-con.tex">
    <cd:sequence>
      <cd:string value="character"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Character" file="core-con.tex">
    <cd:sequence>
      <cd:string value="Character"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="characters" file="core-con.tex">
    <cd:sequence>
      <cd:string value="characters"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Characters" file="core-con.tex">
    <cd:sequence>
      <cd:string value="Characters"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="mediaeval" file="core-con.tex">
    <cd:sequence>
      <cd:string value="mediaeval"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="month" file="core-con.tex">
    <cd:sequence>
      <cd:string value="month"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="MONTH" file="core-con.tex">
    <cd:sequence>
      <cd:string value="MONTH"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="weekday" file="core-con.tex">
    <cd:sequence>
      <cd:string value="weekday"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="WEEKDAY" file="core-con.tex">
    <cd:sequence>
      <cd:string value="WEEKDAY"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcapitals" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="setupcapitals"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="title">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="sc">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="cap" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="cap"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="nocap" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="nocap"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="CAP" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="CAP"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Cap" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="Cap"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Caps" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="Caps"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="WORD" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="WORD"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="WORDS" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="WORDS"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Word" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="Word"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="Words" file="core-fnt.tex" category="Fonts">
    <cd:sequence>
      <cd:string value="Words"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="stretched" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="stretched"/>
    </cd:sequence>
    <cd:arguments>
      <cd:word n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definesymbol" file="symb-ini.tex">
    <cd:sequence>
      <cd:string value="definesymbol"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefiguresymbol" file="symb-ini.tex">
    <cd:sequence>
      <cd:string value="definefiguresymbol"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupexternalfigures" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="symbol" file="symb-ini.tex">
    <cd:sequence>
      <cd:string value="symbol"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="symbolset" type="environment" file="symb-ini.tex" category="symbols">
    <cd:sequence>
      <cd:string value="symbolset"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsymbolset" file="symb-ini.tex" category="symbols">
    <cd:sequence>
      <cd:string value="setupsymbolset"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="usesymbols" file="symb-ini.tex" category="symbols">
    <cd:sequence>
      <cd:string value="usesymbols"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="showsymbolset" file="symb-run.tex" category="symbols"> <!-- and symbols -->
    <cd:sequence>
      <cd:string value="showsymbolset"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineconversion" file="core-con.tex">
    <cd:sequence>
      <cd:string value="defineconversion"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:command"/>
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="convertnumber" file="core-con.tex">
    <cd:sequence>
      <cd:string value="convertnumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupheadtext" file="lang-lab.tex">
    <cd:sequence>
      <cd:string value="setupheadtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="language"/>
      </cd:keywords>
      <cd:assignments n="2">
        <cd:parameter name="cd:name">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplabeltext" file="lang-lab.tex">
    <cd:sequence>
      <cd:string value="setuplabeltext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="language"/>
      </cd:keywords>
      <cd:assignments n="2">
        <cd:parameter name="cd:name">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="headtext" file="lang-lab.tex">
    <cd:sequence>
      <cd:string value="headtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="labeltext" file="lang-lab.tex">
    <cd:sequence>
      <cd:string value="labeltext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupmarginrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupmarginrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1">
        <cd:parameter name="level">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="marginrule" type="environment" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="marginrule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="marginrule" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="marginrule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplinewidth" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setuplinewidth"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupframed" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupframed"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/> <!-- defines a command with that name -->
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="height">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="fixed"/>
          <cd:constant type="local"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="autowidth">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="force"/>
        </cd:parameter>
        <cd:parameter name="offset">
          <cd:constant type="none"/>
          <cd:constant type="overlay"/>
          <cd:constant type="default"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="depth"/>
          <cd:constant type="hanging"/>
          <cd:constant type="high"/>
          <cd:constant type="lohi"/>
          <cd:constant type="low"/>
          <cd:constant type="top"/>
          <cd:constant type="middle"/>
          <cd:constant type="bottom"/>
          <cd:constant type="keep"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="none"/>
          <cd:constant type="empty"/>
        </cd:parameter>
        <cd:parameter name="strut">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="global"/>
          <cd:constant type="local"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="bottom">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="top">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="frame">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
          <cd:constant type="none"/>
          <cd:constant type="overlay"/>
        </cd:parameter>
        <cd:parameter name="topframe">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="bottomframe">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="leftframe">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="rightframe">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="frameoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="framedepth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="framecorner">
          <cd:constant type="round"/>
          <cd:constant type="rectangular"/>
        </cd:parameter>
        <cd:parameter name="frameradius">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="framecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="background">
          <cd:constant type="screen"/>
          <cd:constant type="color"/>
          <cd:constant type="none"/>
          <cd:constant type="foreground"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="backgroundscreen">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="backgroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="backgroundoffset">
          <cd:constant type="frame"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="backgrounddepth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="backgroundcorner">
          <cd:constant type="round"/>
          <cd:constant type="rectangular"/>
        </cd:parameter>
        <cd:parameter name="backgroundradius">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="corner">
          <cd:constant type="round"/>
          <cd:constant type="rectangular"/>
        </cd:parameter>
        <cd:parameter name="radius">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="empty">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="foregroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="foregroundstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="framed" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="framed"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inframed" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="inframed"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="thinrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="thinrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes">
        <cd:inherit name="setupthinrules" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupthinrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupthinrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1">
        <cd:parameter name="interlinespace">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="backgroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="c"/>
          <cd:constant type="d"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="background">
          <cd:constant type="color"/>
        </cd:parameter>
        <cd:parameter name="backgroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="hairline" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="hairline"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="thinrule" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="thinrule"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="defineframedtext" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="defineframedtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupframedtexts" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineframed" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="defineframed"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupframedtexts" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupframedtexts" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupframedtexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </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="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inner">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="linecorrection">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="depthcorrection">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="standard"/>
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="middle"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="indenting">
          <cd:resolve name="indenting"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="framedtext" type="environment" generated="yes" file="core-rul.tex">
    <cd:sequence>
      <cd:variable value="framedtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="middle"/>
        <cd:constant type="none"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupframedtexts" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="framedtext" generated="yes" file="core-rul.tex">
    <cd:sequence>
      <cd:variable value="framedtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupframedtexts" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="background" type="environment" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="background"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="background" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="background"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbackground" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupbackground"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="leftoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bottomoffset">
          <cd:constant type="cd:dimension"/>
        </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="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="fillinrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="fillinrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfillinrules" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
      <cd:content n="3" optional="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="fillintext" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="fillintext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfillinrules" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
      <cd:content n="3" optional="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfillinrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupfillinrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </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="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="interlinespace">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="fillinline" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="fillinline"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfillinlines" n="1"/>
      </cd:assignments>
      <cd:nothing n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfillinlines" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupfillinlines"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptextrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setuptextrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="inmargin"/>
        </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="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="rulecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="textrule" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="textrule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
      </cd:keywords>
      <cd:content n="2" optional="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="textrule" type="environment" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="textrule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
      </cd:keywords>
      <cd:content n="2" optional="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="blackrule" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="blackrule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupblackrules" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="blackrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="blackrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:inherit name="setupblackrules" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupblackrules" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupblackrules"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="width">
          <cd:constant type="cd:dimension" default="1em"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension" default="1ex"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="a" default="yes"/>
          <cd:constant type="b"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension" default=".25ex"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number" default="3"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name" default=""/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineoverlay" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="defineoverlay"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:command"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="usemodule" file="core-fil.tex"> <!-- TODO -->
    <cd:sequence>
      <cd:string value="usemodule"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="reset" file="core-num.tex">
    <cd:sequence>
      <cd:string value="reset"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <!-- <cd:command name="donttest">
  <cd:sequence>
    <cd:string value="donttest"/>
  </cd:sequence>
</cd:command> -->

  <cd:command name="localenvironment" type="environment" file="core-job.tex">
    <cd:sequence>
      <cd:string value="localenvironment"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupsystem" file="core-sys.tex">
    <cd:sequence>
      <cd:string value="setupsystem"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="resolution">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="file">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="directory">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="random">
          <cd:constant type="normal"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="usedirectory" file="core-job.mkii"> <!-- usepath, todo: more than one file -->
    <cd:sequence>
      <cd:string value="usedirectory"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
        <cd:constant type="reset"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="low" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="low"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="high" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="high"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="lohi" file="core-fnt.tex">
    <cd:sequence>
      <cd:string value="lohi"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="showframe" file="page-run.tex">
    <cd:sequence>
      <cd:string value="showframe"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
        <cd:constant type="margin"/>
        <cd:constant type="edge"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="leftaligned" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="leftaligned"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="rightaligned" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="rightaligned"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="midaligned" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="midaligned"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="wordright" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="wordright"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inmargin" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="inmargin"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inothermargin" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="inothermargin"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inleft" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="inleft"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inright" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="inright"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="ininner" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="ininner"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inouter" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="inouter"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="column" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="column"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="showstruts" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="showstruts"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="showsetups" file="page-run.tex">
    <cd:sequence>
      <cd:string value="showsetups"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="showlayout" file="page-run.tex">
    <cd:sequence>
      <cd:string value="showlayout"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="margintext" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="margintext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="+"/>
        <cd:constant type="-"/>
        <cd:constant type="low"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupmarginblocks" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="setupmarginblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="inmargin"/>
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="top">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="bottom">
          <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="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="marginblock" type="environment" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="marginblock"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="part" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="part"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="title" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="title"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="chapter" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="chapter"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="section" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="section"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="subsection" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="subsection"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="subsubsection" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="subsubsection"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="subject" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="subject"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="subsubject" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="subsubject"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="subsubsubject" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="subsubsubject"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="appendix" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="appendix"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="in" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="in"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="yes"/>
      <cd:content n="2" interactive="yes"/>
      <cd:reference n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="at" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="at"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="yes"/>
      <cd:content n="2" interactive="yes"/>
      <cd:reference n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="about" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="about"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="yes"/>
      <cd:reference n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="somewhere" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="somewhere"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
      <cd:reference n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="atpage" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="atpage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="ref" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="ref"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="t"/>
        <cd:constant type="p"/>
        <cd:constant type="r"/>
        <cd:constant type="s"/>
        <cd:constant type="e"/>
      </cd:keywords>
      <cd:reference n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="textreference" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="textreference"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="pagereference" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="pagereference"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="reference" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="reference"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="usereferences" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="usereferences"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:file"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definereference" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="definereference"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:reference n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definereferenceformat" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="definereferenceformat"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="left">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="label">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="hl" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="hl"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="vl" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="vl"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="godown" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="godown"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="whitespace" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="whitespace"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="nowhitespace" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="nowhitespace"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="crlf" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="crlf"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="space" file="syst-pln.tex">
    <cd:sequence>
      <cd:string value="space"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="fixedspaces" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="fixedspaces"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="emptylines" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="emptylines"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="nospace" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="nospace"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="packed" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="packed"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupdescriptions" file="core-des.tex">
    <cd:sequence>
      <cd:string value="setupdescriptions"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="style">
          <cd:resolve name="style"/> <!-- TODO: style=normal -->
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name" default=""/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="cd:dimension" default="8em"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="sample">
          <cd:constant type="cd:text" default=""/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="closesymbol">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="closecommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="closesymbol">
          <cd:constant type="cd:text" default=""/>
        </cd:parameter>
        <cd:parameter name="titleleft">
          <cd:constant type="cd:text" default="("/>
        </cd:parameter>
        <cd:parameter name="titleright">
          <cd:constant type="cd:text" default=")"/>
        </cd:parameter>
        <cd:parameter name="titledistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="titlestyle">
          <cd:resolve name="style"/> <!-- TODO: default=bold -->
        </cd:parameter>
        <cd:parameter name="titlecolor">
          <cd:constant type="cd:name" default=""/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="standard"/>
          <cd:constant type="yes"/>
          <cd:constant type="no" default="yes"/> <!-- TODO: this is default; conflicting syntax? -->
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left" default="yes"/>
          <cd:constant type="right"/>
          <cd:constant type="top"/>
          <cd:constant type="serried"/>
          <cd:constant type="inmargin"/>
          <cd:constant type="inleft"/>
          <cd:constant type="inright"/>
          <cd:constant type="hanging"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/> <!-- TODO: default=bold -->
        </cd:parameter>
        <cd:parameter name="headcolor">
          <cd:constant type="cd:name" default=""/>
        </cd:parameter>
        <cd:parameter name="headcommand">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="hang">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command" default="\blank"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command" default="\blank"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command" default="\blank"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/> <!-- default=yes -->
        </cd:parameter>
        <cd:parameter name="indenting">
          <cd:resolve name="indenting"/> <!-- default=never -->
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="display">
          <cd:constant type="yes" default="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupenumerations" file="core-des.tex">
    <cd:sequence>
      <cd:string value="setupenumerations"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupdescriptions" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineenumeration" file="core-des.tex">
    <cd:sequence>
      <cd:string value="defineenumeration"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupenumerations" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="enumeration" generated="yes" file="core-des.tex">
    <cd:sequence>
      <cd:variable value="enumeration"/>
    </cd:sequence>
    <cd:arguments>
      <cd:nothing n="1" interactive="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="enumeration" type="environment" generated="yes" file="core-des.tex">
    <cd:sequence>
      <cd:variable value="enumeration"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="definedescription" file="core-des.tex">
    <cd:sequence>
      <cd:string value="definedescription"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupdescriptions" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="description" generated="yes" file="core-des.tex">
    <cd:sequence>
      <cd:variable value="description"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:nothing n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="description" type="environment" generated="yes" file="core-des.tex">
    <cd:sequence>
      <cd:variable value="description"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupindentedtext" file="strc-des.tex">
    <cd:sequence>
      <cd:string value="setupindentedtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="sample">
          <cd:constant type="cd:text"/>
        </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="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineindentedtext" file="strc-des.tex">
    <cd:sequence>
      <cd:string value="defineindentedtext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupindentedtext" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="indentation" generated="yes" file="core-spa.tex">
    <cd:sequence>
      <cd:variable value="indentation"/>
    </cd:sequence>
    <cd:arguments>
      <cd:nothing n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definelabel" file="core-des.tex">
    <cd:sequence>
      <cd:string value="definelabel"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="text">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="inmargin"/>
          <cd:constant type="intext"/>
        </cd:parameter>
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="blockway">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="headcolor">
          <cd:constant type="cd:name"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="labeling" generated="yes" file="core-des.tex">
    <cd:sequence>
      <cd:variable value="labeling"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcolumns" file="page-mul.tex">
    <cd:sequence>
      <cd:string value="setupcolumns"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes"> <!-- no idea why it is optional -->
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ntop">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="rule">
          <cd:constant type="on"/>
          <cd:constant type="off"/> <!-- default and unknown missing -->
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="tolerance">
          <cd:constant type="verystrict"/>
          <cd:constant type="strict"/>
          <cd:constant type="tolerant"/>
          <cd:constant type="verytolerant"/>
          <cd:constant type="stretch"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="balance">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:constant type="text"/>
          <!-- cd:constant type="yes"/ -->
          <!-- cd:constant type="no"/ -->
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="blank">
          <cd:constant type="fixed"/>
          <cd:constant type="halfline"/>
          <cd:constant type="line"/>
          <cd:constant type="flexible"/>
          <cd:constant type="big"/>
          <cd:constant type="medium"/>
          <cd:constant type="small"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="background"/>
        </cd:parameter>
        <cd:parameter name="direction">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="columns" type="environment" file="page-mul.tex">
    <cd:sequence>
      <cd:string value="columns"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupcolumns" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definetext" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="definetext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="header"/>
        <cd:constant type="footer"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="4" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="5" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupheader" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupheader"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text" default="yes"/>
        <cd:constant type="margin"/>
        <cd:constant type="edge"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="state">
          <cd:constant type="normal"/>
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
          <cd:constant type="empty"/>
          <cd:constant type="high"/>
          <cd:constant type="none"/>
          <cd:constant type="nomarking"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="strut">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="leftstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="rightstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="leftwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightwidth">
          <cd:constant type="cd:dimension"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfooter" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupfooter"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:inherit name="setupheader" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupheader" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptext" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setuptext"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:inherit name="setupheader" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupheader" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptop" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setuptop"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:inherit name="setupheader" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupheader" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbottom" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupbottom"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:inherit name="setupheader" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupheader" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="noheaderandfooterlines" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="noheaderandfooterlines"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="notopandbottomlines" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="notopandbottomlines"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupheadertexts" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupheadertexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfootertexts" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupfootertexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptexttexts" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setuptexttexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptoptexts" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setuptoptexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbottomtexts" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="setupbottomtexts"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="settextcontent" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="settextcontent"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="layout-v"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="4" optional="yes">
        <cd:resolve name="texts"/>
      </cd:keywords>
      <cd:keywords n="5" optional="yes">
        <cd:resolve name="texts"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="resettextcontent" file="page-txt.tex">
    <cd:sequence>
      <cd:string value="resettextcontent"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="layout-v"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:resolve name="layout-h"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:constant type="lefttext"/>
        <cd:constant type="middletext"/>
        <cd:constant type="righttext"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definemarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="definemarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="couplemarking" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="couplemarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="decouplemarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="decouplemarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="resetmarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="resetmarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupmarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="setupmarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="marking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="marking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="getmarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="getmarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="first"/>
        <cd:constant type="last"/>
        <cd:constant type="previous"/>
        <cd:constant type="both"/>
        <cd:constant type="all"/>
        <cd:constant type="current"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="nomarking" file="core-mar.tex">
    <cd:sequence>
      <cd:string value="nomarking"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplayout" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="setuplayout"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="middle"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="middle"/>
        </cd:parameter>
        <cd:parameter name="backspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="leftmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="header">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="footer">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="top">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bottom">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="leftedge">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightedge">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="headerdistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="footerdistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topdistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bottomdistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="leftmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="leftedgedistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightedgedistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="horoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="veroffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="marking">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
          <cd:constant type="color"/>
          <cd:constant type="screen"/>
          <cd:constant type="cd:text"/>
          <cd:constant type="page"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
          <cd:constant type="right"/>
          <cd:constant type="bottom"/>
          <cd:constant type="top"/>
          <cd:constant type="singlesided"/>
          <cd:constant type="doublesided"/>
        </cd:parameter>
        <cd:parameter name="scale">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="nx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ny">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="dx">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="dy">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="lines">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="columns">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="columndistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="grid">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="bottomspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="cutspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="textdistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="textwidth">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="textmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="clipoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="paper">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="adaptlayout" file="page-lay.tex">
    <cd:sequence>
      <cd:string value="adaptlayout"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:number"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="lines">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="showgrid" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="showgrid"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="reset"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="none"/>
        <cd:constant type="all"/>
        <cd:constant type="lines"/>
        <cd:constant type="frame"/>
        <cd:constant type="nonumber"/>
        <cd:constant type="right"/>
        <cd:constant type="left"/>
        <cd:constant type="outer"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placeongrid" file="core-grd.tex">
    <cd:sequence>
      <cd:string value="placeongrid"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:inherit name="moveongrid" n="1"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="moveongrid" file="core-grd.tex">
    <cd:sequence>
      <cd:string value="moveongrid"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="standard" default="yes"/> <!-- also 'normal', 'yes' and 'force' -->
        <cd:constant type="top"/>
        <cd:constant type="both"/>
        <cd:constant type="bottom"/>
        <cd:constant type="-top"/>
        <cd:constant type="-both"/>
        <cd:constant type="-bottom"/>
        <cd:constant type="cd:text"/>
        <cd:constant type="high"/>
        <cd:constant type="middle"/>
        <cd:constant type="low"/>
        <cd:constant type="page"/>
        <cd:constant type="broad"/>
        <cd:constant type="fit"/>
        <cd:constant type="depth"/>
        <cd:constant type="line"/>
        <cd:constant type="reset"/>
        <cd:constant type="none"/>
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="project" type="environment" file="core-job.tex">
    <cd:sequence>
      <cd:string value="project"/>
    </cd:sequence>
    <cd:arguments>
      <cd:file n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="environment" type="environment" file="core-job.tex">
    <cd:sequence>
      <cd:string value="environment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:file n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="product" type="environment" file="core-job.tex">
    <cd:sequence>
      <cd:string value="product"/>
    </cd:sequence>
    <cd:arguments>
      <cd:file n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="component" type="environment" file="core-job.tex">
    <cd:sequence>
      <cd:string value="component"/>
    </cd:sequence>
    <cd:arguments>
      <cd:file n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="nomorefiles" file="core-job.tex">
    <cd:sequence>
      <cd:string value="nomorefiles"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupinterlinespace" variant="1" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setupinterlinespace"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="reset"/>
        <cd:constant type="small" default="yes"/>
        <cd:constant type="medium"/>
        <cd:constant type="auto"/>
        <cd:constant type="big"/>
        <cd:constant type="on"/>
        <cd:constant type="off"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinterlinespace2" variant="2" file="core-spa.tex">
     <!-- attached a 2 to make this definition usable with \showsetup -->
    <cd:sequence>
      <cd:string value="setupinterlinespace"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="height">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="line">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="top">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="bottom">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppagenumbering" file="page-num.tex">
    <cd:sequence>
      <cd:string value="setuppagenumbering"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="singlesided"/>
          <cd:constant type="doublesided"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="header"/>
          <cd:constant type="footer"/>
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="middle"/>
          <cd:constant type="margin"/>
          <cd:constant type="marginedge"/>
          <cd:constant type="inleft"/>
          <cd:constant type="inright"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="left">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="numberseparator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="textseparator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="cd:sectionnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="strut">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="last"/>
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupnarrower" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setupnarrower"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="left">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="middle">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="define" file="syst-ext.tex">
    <cd:sequence>
      <cd:string value="define"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:number"/>
      </cd:keywords>
      <cd:csname n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="usecommands" file="core-sys.tex">
    <cd:sequence>
      <cd:string value="usecommands"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definestartstop" file="core-sys.tex">
    <cd:sequence>
      <cd:string value="definestartstop"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="commands">
          <cd:constant type="cd:command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupheads" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="setupheads"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="sectionnumber">
          <cd:constant type="yes"/>
          <cd:constant type="cd:number"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="normal"/>
          <cd:constant type="margin"/>
          <cd:constant type="middle"/>
          <cd:constant type="cd:text"/>
          <cd:constant type="paragraph"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="stopper">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="aligntitle">
          <cd:constant type="yes"/>
          <cd:constant type="float"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="tolerance">
          <cd:constant type="verystrict"/>
          <cd:constant type="strict"/>
          <cd:constant type="tolerant"/>
          <cd:constant type="verytolerant"/>
          <cd:constant type="stretch"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:twoarguments"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcaptions" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="setupcaptions"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="top"/>
          <cd:constant type="bottom"/>
          <cd:constant type="none"/>
          <cd:constant type="high"/>
          <cd:constant type="low"/>
          <cd:constant type="middle"/>
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
          <cd:constant type="right"/>
          <cd:constant type="lefthanging"/>
          <cd:constant type="righthanging"/>
          <cd:constant type="leftmargin"/>
          <cd:constant type="rightmargin"/>
          <cd:constant type="innermargin"/>
          <cd:constant type="outermargin"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="max"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="minwidth">
          <cd:constant type="fit"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="number">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
        </cd:parameter>
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="stopper">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcaption" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="setupcaption"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupcaptions" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfloats" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="setupfloats"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="middle"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="fit"/>
          <cd:constant type="cd:dimension"/>
        </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="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="spacebefore">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="spaceafter">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="sidespacebefore">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="sidespaceafter">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/>
        </cd:parameter>
        <cd:parameter name="ntop">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="nbottom">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="nlines">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="default">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="tolerance">
          <cd:constant type="0"/>
          <cd:constant type="1"/>
          <cd:constant type="2"/>
        </cd:parameter>
        <cd:parameter name="leftmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="sidealign">
          <cd:constant type="normal"/>
          <cd:constant type="line"/>
        </cd:parameter>
        <cd:parameter name="numbering">
          <cd:constant type="yes"/>
          <cd:constant type="nocheck"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfloatsplitting" file="core-tsp.tex">
    <cd:sequence>
      <cd:string value="setupfloatsplitting"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
        </cd:parameter>
        <cd:parameter name="lines">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="splitfloat" file="core-tsp.tex">
    <cd:sequence>
      <cd:string value="splitfloat"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupfloatsplitting" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupoppositeplacing" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="setupoppositeplacing"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="opposite" type="environment" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="opposite"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setuphyphenmark" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setuphyphenmark"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1">
        <cd:parameter name="sign">
          <cd:constant type="--"/>
          <cd:constant type="---"/>
          <cd:constant type="-"/>
          <cd:constant type="~"/>
          <cd:constant type="("/>
          <cd:constant type=")"/>
          <cd:constant type="="/>
          <cd:constant type="/"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppositioning" file="page-lyr.tex">
    <cd:sequence>
      <cd:string value="setuppositioning"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="overlay"/>
        </cd:parameter>
        <cd:parameter name="unit">
          <cd:constant type="cm"/>
          <cd:constant type="pt"/>
          <cd:constant type="em"/>
          <cd:constant type="mm"/>
          <cd:constant type="ex"/>
          <cd:constant type="es"/>
          <cd:constant type="in"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="scale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="offset">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="xstep">
          <cd:constant type="absolute"/>
          <cd:constant type="relative"/>
        </cd:parameter>
        <cd:parameter name="ystep">
          <cd:constant type="absolute"/>
          <cd:constant type="relative"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="positioning" type="environment" file="page-lyr.tex">
    <cd:sequence>
      <cd:string value="positioning"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="grid" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="grid"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="x">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="y">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="nx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ny">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="dx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="dy">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="xstep">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ystep">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="offset">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="scale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="unit">
          <cd:constant type="cm"/>
          <cd:constant type="pt"/>
          <cd:constant type="em"/>
          <cd:constant type="mm"/>
          <cd:constant type="ex"/>
          <cd:constant type="es"/>
          <cd:constant type="in"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="page" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="page"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="yes" default="yes"/>
        <cd:constant type="makeup"/>
        <cd:constant type="no"/>
        <cd:constant type="preference"/>
        <cd:constant type="bigpreference"/>
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="disable"/>
        <cd:constant type="last"/>
        <cd:constant type="quadruple"/>
        <cd:constant type="even"/>
        <cd:constant type="odd"/>
        <cd:constant type="blank"/>
        <cd:constant type="empty"/>
        <cd:constant type="reset"/>
        <cd:constant type="start"/>
        <cd:constant type="stop"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupreferencing" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="setupreferencing"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="cd:sectionnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="+"/>
          <cd:constant type="-"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="label"/>
          <cd:constant type="cd:text"/>
          <cd:constant type="all"/>
          <cd:constant type="symbol"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </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="convertfile">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="small"/>
          <cd:constant type="big"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="autofile">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="page"/>
        </cd:parameter>
        <cd:parameter name="global">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="export">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupurl" file="core-ref.tex" category="references">
    <cd:sequence>
      <cd:string value="setupurl"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="urlalternative">
          <cd:constant type="none"/>
          <cd:constant type="both"/>
          <cd:constant type="before"/>
          <cd:constant type="after"/>
        </cd:parameter>
        <cd:parameter name="urlspace">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="writetoreferencelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="writetoreferencelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placereferencelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="placereferencelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definereferencelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="definereferencelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupreferencelist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupreferencelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="setupreferencelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="cd:section"/>
          <cd:constant type="local"/>
          <cd:constant type="previous"/>
          <cd:constant type="all"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="writetolist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="writetolist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:section"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="location">
          <cd:constant type="here"/>
          <cd:constant type="none"/>
        </cd:parameter>
      </cd:assignments>
      <cd:content n="3"/>
      <cd:content n="4"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="writebetweenlist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="writebetweenlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:section"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="location">
          <cd:constant type="here"/>
          <cd:constant type="none"/>
        </cd:parameter>
      </cd:assignments>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="nolist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="nolist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="listsymbol" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="listsymbol"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="placelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setuplist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="determinelistcharacteristics" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="determinelistcharacteristics"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setuplist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placecombinedlist" variant="1" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="placecombinedlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupcombinedlist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definelist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="definelist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes"> <!-- inherits from -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setuplist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="setuplist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="c"/>
          <cd:constant type="..."/>
          <cd:constant type="none"/>
          <cd:constant type="command"/>
        </cd:parameter>
        <cd:parameter name="coupling">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="cd:section"/>
          <cd:constant type="local"/>
          <cd:constant type="previous"/>
          <cd:constant type="current"/>
          <cd:constant type="here"/>
          <cd:constant type="intro"/>
          <cd:constant type="all"/>
        </cd:parameter>
        <cd:parameter name="extras">
          <cd:constant type="cd:list"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="numberstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="textstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="pagestyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:threearguments"/>
        </cd:parameter>
        <cd:parameter name="numbercommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="textcommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="pagecommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="sectionnumber"/>
          <cd:constant type="text"/>
          <cd:constant type="pagenumber"/>
          <cd:constant type="all"/>
          <cd:constant type="none"/>
        </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="left">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="label">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="pagenumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="headnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="cd:sectionnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="aligntitle">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="stopper">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="none"/>
          <cd:constant type="1"/>
          <cd:constant type="2"/>
          <cd:constant type="3"/>
          <cd:constant type="..."/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="command"/>
        </cd:parameter>
        <cd:parameter name="maxwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="order">
          <cd:constant type="command"/>
          <cd:constant type="all"/>
          <cd:constant type="normal"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplistalternative" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="setuplistalternative"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="no">
        <cd:constant type="a"/>
        <cd:constant type="b"/>
        <cd:constant type="c"/>
        <!-- cd:constant type="cd:name"/ -->
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="stretch">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definecombinedlist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="definecombinedlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:list"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupcombinedlist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcombinedlist" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="setupcombinedlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="level">
          <cd:constant type="1"/>
          <cd:constant type="2"/>
          <cd:constant type="3"/>
          <cd:constant type="4"/>
          <cd:constant type="cd:section"/>
          <cd:constant type="current"/>
        </cd:parameter>
        <cd:inherit name="setuplist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placecombinedlist" variant="2" generated="yes" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="place"/>
      <cd:variable value="combinedlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupcombinedlist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="completecombinedlist" generated="yes" file="core-lst.tex">
    <cd:sequence>
      <cd:string value="complete"/>
      <cd:variable value="combinedlist"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupcombinedlist" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupnumbering" file="core-num.tex">
    <cd:sequence>
      <cd:string value="setupnumbering"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupformulas" file="core-mat.tex">
    <cd:sequence>
      <cd:string value="setupformulas"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:parameter name="left">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="middle"/>
        </cd:parameter>
        <cd:parameter name="strut">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="standard"/>
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:constant type="flushleft"/>
          <cd:constant type="flushright"/>
          <cd:constant type="middle"/>
          <cd:constant type="center"/>
        </cd:parameter>
        <cd:parameter name="leftmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="spacebefore">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="publication" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="publication"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppublications" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setuppublications"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="apa"/>
          <cd:constant type="normal"/>
        </cd:parameter>
        <cd:inherit name="setupenumerations" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplines" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="setuplines"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <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="indenting">
          <cd:resolve name="indenting"/>
        </cd:parameter>
        <cd:parameter name="space">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="packed"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="lines" type="environment">
    <cd:sequence>
      <cd:string value="lines"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupparagraphnumbering" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="setupparagraphnumbering"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="reset"/>
          <cd:constant type="line"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplinenumbering" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="setuplinenumbering"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
          <cd:constant type="cd:text"/>
        </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="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="middle"/>
          <cd:constant type="left"/>
          <cd:constant type="margin"/>
          <cd:constant type="inmargin"/>
          <cd:constant type="inleft"/>
          <cd:constant type="right"/>
          <cd:constant type="inright"/>
          <cd:constant type="inner"/>
          <cd:constant type="outer"/>
          <cd:constant type="text"/>
          <cd:constant type="begin"/>
          <cd:constant type="end"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="referencing">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="linenumbering" type="environment" file="page-lin.tex"> <!-- mkii/mkiv -->
    <cd:sequence>
      <cd:string value="linenumbering"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="continue"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="line" type="environment">
    <cd:sequence>
      <cd:string value="line"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="someline" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="someline"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="inline" file="page-lin.tex">
    <cd:sequence>
      <cd:string value="inline"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinmargin" file="page-mar.tex">
    <cd:sequence>
      <cd:string value="setupinmargin"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="cd:number"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="both"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </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="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="line">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="separator">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="stack">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppagenumber" file="page-num.tex">
    <cd:sequence>
      <cd:string value="setuppagenumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="number">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="keep"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsubpagenumber" file="page-num.tex">
    <cd:sequence>
      <cd:string value="setupsubpagenumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="way">
          <cd:constant type="bytext"/>
          <cd:constant type="bycd:section"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="none"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupblank" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setupblank"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="normal" default="yes"/>
        <cd:constant type="default"/>
        <cd:constant type="standard"/>
        <cd:constant type="line"/>
        <cd:constant type="halfline"/>
        <cd:constant type="cd:dimension"/>
        <cd:constant type="big"/>
        <cd:constant type="medium"/>
        <cd:constant type="small"/>
        <cd:constant type="fixed"/>
        <cd:constant type="flexible"/>
        <cd:constant type="global"/>
        <cd:constant type="unknown"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineblank" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="defineblank"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:inherit name="setupblank" n="1"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definepapersize" file="page-lay.tex">
    <cd:sequence>
      <cd:string value="definepapersize"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="offset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="scale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppaper" file="page-lay.tex">
    <cd:sequence>
      <cd:string value="setuppaper"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="paper">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="nx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ny">
          <cd:constant type="cd:number"/>
        </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="topspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="backspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="max"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="method">
          <cd:constant type="normal"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuppapersize" file="page-lay.tex">
    <cd:sequence>
      <cd:string value="setuppapersize"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="A3"/>
        <cd:constant type="A4" default="yes"/>
        <cd:constant type="A5"/>
        <cd:constant type="A6"/>
        <cd:constant type="letter"/>
        <cd:constant type="..."/>
        <cd:constant type="CD"/>
        <cd:constant type="cd:name"/>
        <cd:constant type="landscape"/>
        <cd:constant type="mirrored"/>
        <cd:constant type="rotated"/>
        <cd:constant type="90"/>
        <cd:constant type="180"/>
        <cd:constant type="270"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="negative"/>
        <cd:inherit name="setuppapersize" n="1"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuparranging" file="page-imp.tex">
    <cd:sequence>
      <cd:string value="setuparranging"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="disable"/>
        <cd:constant type="2*16"/>
        <cd:constant type="2*8"/>
        <cd:constant type="2*4"/>
        <cd:constant type="2*2"/>
        <cd:constant type="2**2"/>
        <cd:constant type="2*2*4"/>
        <cd:constant type="2*4*2"/>
        <cd:constant type="2UP"/>
        <cd:constant type="2DOWN"/>
        <cd:constant type="2SIDE"/>
        <cd:constant type="2TOP"/>
        <cd:constant type="mirrored"/>
        <cd:constant type="rotated"/>
        <cd:constant type="doublesided"/>
        <cd:constant type="negative"/>
        <cd:constant type="background"/>
        <cd:constant type="90"/>
        <cd:constant type="180"/>
        <cd:constant type="270"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="showprint" file="page-run.tex"> <!-- page-lay.tex -->
    <cd:sequence>
      <cd:string value="showprint"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:inherit name="setuppapersize" n="1"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:inherit name="setuppapersize" n="2"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:inherit name="setuplayout" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definelogo" file="page-log.tex">
    <cd:sequence>
      <cd:string value="definelogo"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="top"/>
        <cd:constant type="header"/>
        <cd:constant type="footer"/>
        <cd:constant type="bottom"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="none"/>
        <cd:constant type="page"/>
        <cd:constant type="leftedge"/>
        <cd:constant type="leftmargin"/>
        <cd:constant type="left"/>
        <cd:constant type="middle"/>
        <cd:constant type="right"/>
        <cd:constant type="rightmargin"/>
        <cd:constant type="rightedge"/>
      </cd:keywords>
      <cd:assignments n="4" list="yes">
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placelogos" file="page-log.tex">
    <cd:sequence>
      <cd:string value="placelogos"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupwhitespace">
    <cd:sequence>
      <cd:string value="setupwhitespace"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="none" default="yes"/>
        <cd:constant type="small"/>
        <cd:constant type="medium"/>
        <cd:constant type="big"/>
        <cd:constant type="line"/>
        <cd:constant type="fixed"/>
        <cd:constant type="fix"/>
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupindenting">
    <cd:sequence>
      <cd:string value="setupindenting"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:resolve name="indenting"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definesectionblock" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="definesectionblock"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:inherit name="setupsectionblock" n="1"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupsectionblock" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsectionblock" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="setupsectionblock"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="number">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="yes"/>
          <cd:constant type="right"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definesection" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="definesection"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsection" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="setupsection"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="conversion">
          <cd:constant type="numbers"/>
          <cd:constant type="characters"/>
          <cd:constant type="Characters"/>
          <cd:constant type="romannumerals"/>
          <cd:constant type="Romannumerals"/>
        </cd:parameter>
        <cd:parameter name="previousnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuphead" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="setuphead"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:section"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="textstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="numberstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="textcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="numbercolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="number">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="ownnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="yes"/>
        </cd:parameter>
        <cd:parameter name="continue">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="header">
          <cd:constant type="none"/>
          <cd:constant type="empty"/>
          <cd:constant type="high"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="none"/>
          <cd:constant type="empty"/>
          <cd:constant type="high"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="footer">
          <cd:constant type="none"/>
          <cd:constant type="empty"/>
          <cd:constant type="high"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="normal"/>
          <cd:constant type="inmargin"/>
          <cd:constant type="middle"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="hang">
          <cd:constant type="none"/>
          <cd:constant type="broad"/>
          <cd:constant type="fit"/>
          <cd:constant type="line"/>
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:twoarguments"/>
        </cd:parameter>
        <cd:parameter name="numbercommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="textcommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="deepnumbercommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="deeptextcommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="+"/>
          <cd:constant type="-"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="placehead">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="empty"/>
        </cd:parameter>
        <cd:parameter name="incrementnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="cd:list"/>
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="resetnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="file">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="command"/>
        </cd:parameter>
        <cd:parameter name="margintext">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="list"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:inherit name="setupheads" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupheadnumber" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="setupheadnumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:section"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:number"/>
        <cd:constant type="+cd:number"/>
        <cd:constant type="-cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="headnumber">
    <cd:sequence>
      <cd:string value="headnumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:section"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="determineheadnumber" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="determineheadnumber"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:section"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="currentheadnumber" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="currentheadnumber"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="nextsection" generated="yes" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="next"/>
      <cd:variable value="section"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="definehead" file="core-sec.tex">
    <cd:sequence>
      <cd:string value="definehead"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:section"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupitemgroup" file="core-itm.tex">
    <!-- we mis a few experimental keys here, like alignsymbol and indentation -->
    <cd:sequence>
      <cd:string value="setupitemgroup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:number"/>
        <cd:constant type="each"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes" list="yes">
        <cd:constant type="standard" default="yes"/>
        <cd:constant type="broad"/>
        <cd:constant type="serried"/>
        <cd:constant type="packed"/>
        <cd:constant type="unpacked"/>
        <cd:constant type="nowhite"/>
        <cd:constant type="before"/>
        <cd:constant type="after"/>
        <cd:constant type="stopper"/>
        <cd:constant type="joinedup"/>
        <cd:constant type="atmargin"/>
        <cd:constant type="inmargin"/>
        <cd:constant type="autointro"/>
        <cd:constant type="loose"/>
        <cd:constant type="repeat"/>
        <cd:constant type="cd:section"/>
        <cd:constant type="paragraph"/>
        <cd:constant type="intext"/>
        <cd:constant type="random"/>
        <cd:constant type="reverse"/>
      </cd:keywords>
      <cd:assignments n="4" optional="yes" list="yes">
        <cd:parameter name="margin">
          <cd:constant type="no"/>
          <cd:constant type="standard"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="leftmargin">
          <cd:constant type="no"/>
          <cd:constant type="standard"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargin">
          <cd:constant type="no"/>
          <cd:constant type="standard"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="step">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="items">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="start">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="left">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="beforehead">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="afterhead">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="marstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="symstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="stopper">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="symalign">
          <cd:resolve name="symalign"/>
        </cd:parameter>
        <cd:parameter name="indentnext">
          <cd:resolve name="indentnext"/>
        </cd:parameter>
        <cd:parameter name="textdistance">
          <!-- maybe resolve here too -->
          <cd:constant type="none"/>
          <cd:constant type="big"/>
          <cd:constant type="medium"/>
          <cd:constant type="small"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="itemgroup" type="environment" generated="yes" file="core-itm.tex">
    <cd:sequence>
      <cd:variable value="itemgroup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="a"/>
        <cd:constant type="A"/>
        <cd:constant type="KA"/>
        <cd:constant type="n"/>
        <cd:constant type="N"/>
        <cd:constant type="m"/>
        <cd:constant type="r"/>
        <cd:constant type="R"/>
        <cd:constant type="KR"/>
        <cd:constant type="cd:number"/>
        <cd:constant type="continue"/>
        <cd:constant type="standard" default="yes"/>
        <cd:constant type="broad"/>
        <cd:constant type="serried"/>
        <cd:constant type="packed"/>
        <cd:constant type="stopper"/>
        <cd:constant type="joinedup"/>
        <cd:constant type="atmargin"/>
        <cd:constant type="inmargin"/>
        <cd:constant type="intro"/>
        <cd:constant type="columns"/>
        <cd:constant type="text"/>
        <cd:constant type="paragraph"/>
        <cd:constant type="repeat"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupitemgroup" n="4"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="item" file="core-itm.tex">
    <cd:sequence>
      <cd:string value="item"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="but">
    <cd:sequence>
      <cd:string value="but"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" interactive="exclusive"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="its">
    <cd:sequence>
      <cd:string value="its"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="ran">
    <cd:sequence>
      <cd:string value="ran"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="head">
    <cd:sequence>
      <cd:string value="head"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="mar">
    <cd:sequence>
      <cd:string value="mar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="sub">
    <cd:sequence>
      <cd:string value="sub"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="sym" file="core-itm.tex">
    <cd:sequence>
      <cd:string value="sym"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="nop">
    <cd:sequence>
      <cd:string value="nop"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="defineregister" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="defineregister"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:plural"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupregister" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="setupregister"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="balance">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="pagestyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="textstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="indicator">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="coupling">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="cd:sectionnumber">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="cd:section"/>
          <cd:constant type="local"/>
          <cd:constant type="all"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="1"/>
          <cd:constant type="2"/>
          <cd:constant type="..."/>
          <cd:constant type="n"/>
          <cd:constant type="a"/>
          <cd:constant type="..."/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="pagenumber"/>
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="command"/>
        </cd:parameter>
        <cd:parameter name="referencing">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:parameter name="maxwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="unknownreference">
          <cd:constant type="empty"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="A"/>
          <cd:constant type="B"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="both"/>
          <cd:constant type="first"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="compress">
          <cd:constant type="no"/>
          <cd:constant type="yes"/>
        </cd:parameter>
        <cd:parameter name="deeptextcommand">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="register" generated="yes" file="core-reg.tex">
    <cd:sequence>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:index n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="startregister" generated="yes" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="start"/>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:index n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="writetoregister" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="writetoregister"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:index n="3" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="coupledregister" generated="yes">
    <cd:sequence>
      <cd:string value="coupled"/>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:index n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="coupleregister" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="coupleregister"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="placeregister" variant="1" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="placeregister"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupregister" n="3"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="seeregister" generated="yes">
    <cd:sequence>
      <cd:string value="see"/>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:content n="2"/>
      <cd:index n="3" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="completeregister" generated="yes" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="complete"/>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="yes" optional="yes" list="yes">
        <cd:inherit name="setupregister" n="3"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placeregister" variant="2" generated="yes" file="core-reg.tex">
    <cd:sequence>
      <cd:string value="place"/>
      <cd:variable value="register"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="yes" optional="yes" list="yes">
        <cd:inherit name="setupregister" n="3"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definesynonyms" file="core-syn.tex">
    <cd:sequence>
      <cd:string value="definesynonyms"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:plural"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:command"/>
      </cd:keywords>
      <cd:keywords n="4" optional="yes">
        <cd:constant type="cd:command"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsynonyms" file="core-syn.tex">
    <cd:sequence>
      <cd:string value="setupsynonyms"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="textstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="synonymstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="top"/>
          <cd:constant type="serried"/>
          <cd:constant type="inmargin"/>
          <cd:constant type="inleft"/>
          <cd:constant type="inright"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="all"/>
          <cd:constant type="used"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="command"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:threearguments"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="synonym" generated="yes">
    <cd:sequence>
      <cd:variable value="synonym"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="completelistofsynonyms" generated="yes">
    <cd:sequence>
      <cd:string value="completelistof"/>
      <cd:variable value="synonyms"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="placelistofsynonyms" generated="yes">
    <cd:sequence>
      <cd:string value="placelistof"/>
      <cd:variable value="synonyms"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="loadsynonyms" generated="yes">
    <cd:sequence>
      <cd:string value="load"/>
      <cd:variable value="synonyms"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="definesorting" file="core-syn.tex">
    <cd:sequence>
      <cd:string value="definesorting"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:plural"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:constant type="cd:command"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsorting" file="core-syn.tex">
    <cd:sequence>
      <cd:string value="setupsorting"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="command">
          <cd:constant type="cd:oneargument"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="criterium">
          <cd:constant type="all"/>
          <cd:constant type="used"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="expansion">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="sort" generated="yes">
    <cd:sequence>
      <cd:variable value="sort"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="completelistofsorts" generated="yes">
    <cd:sequence>
      <cd:string value="completelistof"/>
      <cd:variable value="sorts"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="placelistofsorts" generated="yes">
    <cd:sequence>
      <cd:string value="placelistof"/>
      <cd:variable value="sorts"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="loadsorts" generated="yes">
    <cd:sequence>
      <cd:string value="load"/>
      <cd:variable value="sorts"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="definemakeup" file="page-mak.tex">
    <cd:sequence>
      <cd:string value="definemakeup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit name="setupmakeup" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="makeup" type="environment">
    <cd:sequence>
      <cd:string value="makeup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupmakeup" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupmakeup" file="page-mak.tex">
    <cd:sequence>
      <cd:string value="setupmakeup"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="page">
          <cd:constant type="left"/>
          <cd:constant type="yes"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:parameter name="commands">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="doublesided">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <cd:constant type="empty"/>
        </cd:parameter>
        <cd:parameter name="headerstate">
          <cd:constant type="normal"/>
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
          <cd:constant type="empty"/>
          <cd:constant type="none"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="footerstate">
          <cd:constant type="normal"/>
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
          <cd:constant type="empty"/>
          <cd:constant type="none"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="textstate">
          <cd:constant type="normal"/>
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
          <cd:constant type="empty"/>
          <cd:constant type="none"/>
          <cd:constant type="nomarking"/>
        </cd:parameter>
        <cd:parameter name="topstate">
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
        </cd:parameter>
        <cd:parameter name="bottomstate">
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
        </cd:parameter>
        <cd:parameter name="pagestate">
          <cd:constant type="stop"/>
          <cd:constant type="start"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="namemakeup" type="environment" generated="yes">
    <cd:sequence>
      <cd:variable value="name"/>
      <cd:string value="makeup"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="version">
    <cd:sequence>
      <cd:string value="version"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="final" default="yes"/>
        <cd:constant type="concept"/>
        <cd:constant type="temporary"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="currentdate">
    <cd:sequence>
      <cd:string value="currentdate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:inherit name="date" n="2"/> <!-- or vice versa :) -->
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="date" file="core-con.tex">
    <cd:sequence>
      <cd:string value="date"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes"> <!-- if not given, current date is used -->
        <cd:parameter name="d">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="m">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="y">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="day"/>
        <cd:constant type="month"/>
        <cd:constant type="year"/>
        <cd:constant type="weekday"/>
        <cd:constant type="d"/>
        <cd:constant type="m"/>
        <cd:constant type="y"/> <!-- also j -->
        <cd:constant type="w"/>
        <cd:constant type="dd"/>
        <cd:constant type="mm"/>
        <cd:constant type="yy"/> <!-- also jj -->
        <cd:constant type="space"/>
        <cd:constant type="--"/>
        <cd:constant type="day+"/>
        <cd:constant type="d+"/>
        <cd:constant type="dd+"/>
        <cd:constant type="referral"/>
        <cd:constant type="cd:text"/> <!-- any other text -->
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="referraldate" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="referraldate"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="indenting" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="indenting"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:resolve name="indenting"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="noindenting" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="noindenting"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="blank" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="blank"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="small"/>
        <cd:constant type="medium"/>
        <cd:constant type="big" default="yes"/>
        <cd:constant type="nowhite"/>
        <cd:constant type="back"/>
        <cd:constant type="white"/>
        <cd:constant type="disable"/>
        <cd:constant type="force"/>
        <cd:constant type="reset"/>
        <cd:constant type="line"/>
        <cd:constant type="halfline"/>
        <cd:constant type="cd:formula"/>
        <cd:constant type="fixed"/>
        <cd:constant type="flexible"/>
        <cd:constant type="none"/>
        <cd:constant type="always"/>
        <cd:constant type="outer"/>
        <cd:constant type="joinedup"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="packed" type="environment" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="packed"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="blank"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="unpacked" type="environment">
    <cd:sequence>
      <cd:string value="unpacked"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="linecorrection" type="environment">
    <cd:sequence>
      <cd:string value="linecorrection"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="correctwhitespace" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="correctwhitespace"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="postponing" type="environment">
    <cd:sequence>
      <cd:string value="postponing"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="local" type="environment">
    <cd:sequence>
      <cd:string value="local"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="narrower" type="environment">
    <cd:sequence>
      <cd:string value="narrower"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="left"/>
        <cd:constant type="middle" default="yes"/>
        <cd:constant type="right"/>
        <cd:constant type="-left"/>
        <cd:constant type="-middle"/>
        <cd:constant type="-right"/>
        <cd:constant type="-none"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="hiding" type="environment">
    <cd:sequence>
      <cd:string value="hiding"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupalign" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setupalign"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="width"/>
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="middle"/>
        <cd:constant type="inner"/>
        <cd:constant type="outer"/>
        <cd:constant type="wide"/>
        <cd:constant type="broad"/>
        <cd:constant type="height"/>
        <cd:constant type="bottom"/>
        <cd:constant type="line"/>
        <cd:constant type="reset"/>
        <cd:constant type="hanging"/>
        <cd:constant type="nothanging"/>
        <cd:constant type="hyphenated"/>
        <cd:constant type="nothyphenated"/>
        <cd:constant type="lesshyphenation"/>
        <cd:constant type="morehyphenation"/>
        <cd:constant type="new"/>
        <cd:constant type="old"/>
        <cd:constant type="normal"/>
        <cd:constant type="yes"/>
        <cd:constant type="no"/>
        <cd:constant type="flushleft"/>
        <cd:constant type="flushright"/>
        <cd:constant type="flushouter"/>
        <cd:constant type="flushinner"/>
        <cd:constant type="center"/>
        <cd:constant type="hz"/>
        <cd:constant type="nohz"/>
        <cd:constant type="spacing"/>
        <cd:constant type="nospacing"/>
        <cd:constant type="tolerant"/>
        <cd:constant type="verytolerant"/>
        <cd:constant type="stretch"/>
        <cd:constant type="extremestretch"/>
        <cd:constant type="lefttoright"/>
        <cd:constant type="righttoleft"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>


  <cd:command name="alignment" type="environment" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="alignment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:inherit name="setupalign" n="1"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupspacing">
    <cd:sequence>
      <cd:string value="setupspacing"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="broad"/>
        <cd:constant type="packed"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptolerance" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setuptolerance"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="horizontal"/>
        <cd:constant type="vertical"/>
        <cd:constant type="stretch"/>
        <cd:constant type="space"/>
        <cd:constant type="verystrict" default="yes"/>
        <cd:constant type="strict"/>
        <cd:constant type="tolerant"/>
        <cd:constant type="verytolerant"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <!-- cd:command name="pagetype" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="pagetype"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command -->

  <cd:command name="processpage" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="processpage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="yes" default="yes"/>
        <cd:constant type="no"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="couplepage" file="page-ini.tex">
    <cd:sequence>
      <cd:string value="couplepage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="option">
          <cd:constant type="doublesided"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="position" file="page-lyr.tex">
    <cd:sequence>
      <cd:string value="position"/>
    </cd:sequence>
    <cd:arguments>
      <cd:position n="1" list="yes"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupscreens" file="core-rul.tex">
    <cd:sequence>
      <cd:string value="setupscreens"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="method">
          <cd:constant type="dot"/>
          <cd:constant type="rule"/>
          <cd:constant type="external"/>
        </cd:parameter>
        <cd:parameter name="resolution">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="screen">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbackgrounds" file="page-bck.tex">
    <cd:sequence>
      <cd:string value="setupbackgrounds"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="top"/>
        <cd:constant type="header"/>
        <cd:constant type="cd:text"/>
        <cd:constant type="footer"/>
        <cd:constant type="bottom"/>
        <cd:constant type="page"/>
        <cd:constant type="paper"/>
        <cd:constant type="leftpage"/>
        <cd:constant type="rightpage"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="leftedge"/>
        <cd:constant type="leftmargin"/>
        <cd:constant type="cd:text"/>
        <cd:constant type="rightmargin"/>
        <cd:constant type="rightedge"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="cd:repeat"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="buffer" type="environment" generated="yes" file="core-buf.tex">
    <cd:sequence>
      <cd:variable value="buffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="buffer" type="environment" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="buffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="getbuffer">
    <cd:sequence>
      <cd:string value="getbuffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="typebuffer" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="typebuffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definebuffer" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="definebuffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbuffer" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="setupbuffer"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="paragraph">
          <cd:constant type="cd:number"/>
        </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:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineblock" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="defineblock"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="nomoreblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="nomoreblocks"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="hideblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="hideblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="keepblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="keepblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="all"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="useblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="useblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="processblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="processblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="bypassblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="bypassblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="forceblocks">
    <cd:sequence>
      <cd:string value="forceblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="selectblocks" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="selectblocks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes">
        <cd:parameter name="criterium">
          <cd:constant type="all"/>
          <cd:constant type="cd:section"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupblock" file="core-buf.tex">
    <cd:sequence>
      <cd:string value="setupblock"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="inner">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="file">
          <cd:constant type="cd:file"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="formula" type="environment" generated="yes">
    <cd:sequence>
      <cd:variable value="formula"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="mathematics" file="supp-mat.tex">
    <cd:sequence>
      <cd:string value="mathematics"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placeformula" file="core-mat.tex">
    <cd:sequence>
      <cd:string value="placeformula"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2" optional="yes"/>
      <cd:displaymath n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placesubformula" file="core-mat.tex">
    <cd:sequence>
      <cd:string value="placesubformula"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" optional="yes" list="yes"/>
      <cd:content n="2" optional="yes"/>
      <cd:displaymath n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placefloat" generated="yes" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="place"/>
      <cd:variable value="float"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="here" default="yes"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="inleft"/>
        <cd:constant type="inright"/>
        <cd:constant type="inmargin"/>
        <cd:constant type="margin"/>
        <cd:constant type="leftmargin"/>
        <cd:constant type="rightmargin"/>
        <cd:constant type="leftedge"/>
        <cd:constant type="rightedge"/>
        <cd:constant type="innermargin"/>
        <cd:constant type="outermargin"/>
        <cd:constant type="inneredge"/>
        <cd:constant type="outeredge"/>
        <cd:constant type="inner"/>
        <cd:constant type="outer"/>
        <cd:constant type="line"/>
        <cd:constant type="high"/>
        <cd:constant type="low"/>
        <cd:constant type="fit"/>
        <cd:constant type="page"/>
        <cd:constant type="leftpage"/>
        <cd:constant type="rightpage"/>
        <cd:constant type="opposite"/>
        <cd:constant type="always"/>
        <cd:constant type="auto"/>
        <cd:constant type="force"/>
        <cd:constant type="tall"/>
        <cd:constant type="reset"/>
        <cd:constant type="line"/>
        <cd:constant type="height"/>
        <cd:constant type="depth"/>
        <cd:constant type="split"/>
        <cd:constant type="90"/>
        <cd:constant type="180"/>
        <cd:constant type="270"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes" list="yes"/>
      <cd:content n="3"/>
      <cd:content n="4"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="reservefloat" generated="yes">
    <cd:sequence>
      <cd:string value="reserve"/>
      <cd:variable value="float"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="frame">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
      </cd:assignments>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:reference n="3" optional="yes" list="yes"/>
      <cd:content n="4"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefloat" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="definefloat"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:singular"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:plural"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfloat" file="page-flt.tex">
    <cd:sequence>
      <cd:string value="setupfloat"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="maxheight">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="maxwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="minwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="default">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="pageboundaries">
          <cd:constant type="cd:list"/>
        </cd:parameter>
        <cd:parameter name="leftmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightmargindistance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="middle"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="floattext" type="environment" generated="yes">
    <cd:sequence>
      <cd:variable value="float"/>
      <cd:string value="text"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="high"/>
        <cd:constant type="middle"/>
        <cd:constant type="low"/>
        <cd:constant type="offset"/>
        <cd:constant type="tall"/>
      </cd:keywords>
      <cd:reference n="2" optional="yes"/>
      <cd:content n="3"/>
      <cd:content n="4"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placelistoffloats" generated="yes">
    <cd:sequence>
      <cd:string value="placelistof"/>
      <cd:variable value="floats"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="completelistoffloats" generated="yes">
    <cd:sequence>
      <cd:string value="completelistof"/>
      <cd:variable value="floats"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="referral" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="referral"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="bet">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="ken">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="dat">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="van">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="aan">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="ref">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="selectpaper">
    <cd:sequence>
      <cd:string value="selectpaper"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="family">
          <cd:constant type="1"/>
          <cd:constant type="2"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="couplepaper">
    <cd:sequence>
      <cd:string value="couplepaper"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="chem" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="chem"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="fraction" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="fraction"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="periods" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="periods"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="items">
    <cd:sequence>
      <cd:string value="items"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupitems" n="1"/>
      </cd:assignments>
      <cd:content n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupitems" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setupitems"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
          <cd:constant type="inmargin"/>
          <cd:constant type="top"/>
          <cd:constant type="bottom"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="1"/>
          <cd:constant type="2"/>
          <cd:constant type="..."/>
          <cd:constant type="n"/>
          <cd:constant type="a"/>
          <cd:constant type="..."/>
          <cd:constant type="cd:text"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
          <cd:constant type="unknown"/>
        </cd:parameter>
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="quotation" type="environment" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="quotation"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="left"/>
        <cd:constant type="middle" default="yes"/>
        <cd:constant type="right"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="quotation" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="quotation"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="quote" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="quote"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupquote" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setupquote"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <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="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="cd:text"/>
          <cd:constant type="margin"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineparagraphs" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="defineparagraphs"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="rule">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="fit"/>
          <cd:constant type="cd:dimension"/>
        </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="inner">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="tolerance">
          <cd:constant type="verystrict"/>
          <cd:constant type="strict"/>
          <cd:constant type="tolerant"/>
          <cd:constant type="verytolerant"/>
          <cd:constant type="stretch"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="paragraph" generated="yes">
    <cd:sequence>
      <cd:variable value="paragraph"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="paragraph" type="environment" generated="yes">
    <cd:sequence>
      <cd:variable value="paragraph"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupparagraphs" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setupparagraphs"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:number"/>
        <cd:constant type="each"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </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="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="tolerance">
          <cd:constant type="verystrict"/>
          <cd:constant type="strict"/>
          <cd:constant type="tolerant"/>
          <cd:constant type="verytolerant"/>
          <cd:constant type="stretch"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </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="inner">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="command">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="rule">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptab" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setuptab"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="sample">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="headstyle">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="left"/>
          <cd:constant type="right"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="tab">
    <cd:sequence>
      <cd:string value="tab"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:nothing n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="document" type="environment">
    <cd:sequence>
      <cd:string value="document"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="labels">
    <cd:sequence>
      <cd:string value="labels"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definetabulate" file="core-tbl.tex">
    <cd:sequence>
      <cd:string value="definetabulate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="tabulate" type="environment" generated="yes">
    <cd:sequence>
      <cd:variable value="tabulate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupexternalfigures" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptabulate" file="core-tbl.tex">
    <cd:sequence>
      <cd:string value="setuptabulate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="unit">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="indenting">
          <cd:resolve name="indenting"/>
        </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="inner">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="EQ">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="rulecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="blank"/>
          <cd:constant type="grid"/>
          <cd:constant type="depth"/>
          <cd:constant type="cd:dimension"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="rule">
          <cd:constant type="normal"/>
          <cd:constant type="line"/>
        </cd:parameter>
        <cd:parameter name="split">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuptables" file="core-tab.tex">
    <cd:sequence>
      <cd:string value="setuptables"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="distance">
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="HL">
          <cd:constant type="cd:number"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="VL">
          <cd:constant type="cd:number"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:number"/>
          <cd:constant type="strut"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:number"/>
          <cd:constant type="strut"/>
        </cd:parameter>
        <cd:parameter name="rulethickness">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rulecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="commands">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="background">
          <cd:constant type="screen"/>
          <cd:constant type="color"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="backgroundscreen">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="backgroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="table" type="environment">
    <cd:sequence>
      <cd:string value="table"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="tables" type="environment">
    <cd:sequence>
      <cd:string value="tables"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definetabletemplate" file="core-tab.tex">
    <cd:sequence>
      <cd:string value="definetabletemplate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="4" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="useexternalfiles" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="useexternalfiles"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
        <cd:parameter name="file">
          <cd:constant type="cd:file"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="useexternalfile" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="useexternalfile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:file"/>
      </cd:keywords>
      <cd:assignments n="4" list="yes">
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="useexternalfigure" file="core-fig.tex">
    <cd:sequence>
      <cd:string value="useexternalfigure"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:file"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes">
        <cd:constant type="cd:name"/> <!-- parent -->
      </cd:keywords>
      <cd:assignments n="4" optional="yes" list="yes">
        <cd:inherit name="setupexternalfigures" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="externalfigure" file="core-fig.tex">
    <cd:sequence>
      <cd:string value="externalfigure"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:file"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupexternalfigures" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupexternalfigures" file="core-fig.tex">
    <cd:sequence>
      <cd:string value="setupexternalfigures"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1">
        <cd:parameter name="scale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="yscale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="yscale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="max"/>
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
        </cd:parameter>
        <cd:parameter name="wfactor">
          <cd:constant type="cd:number"/>
          <cd:constant type="max"/>
          <cd:constant type="broad"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="hfactor">
          <cd:constant type="cd:number"/>
          <cd:constant type="max"/>
          <cd:constant type="broad"/>
          <cd:constant type="fit"/>
        </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="frame">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="preset">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="display">
          <cd:constant type="cd:file"/>
        </cd:parameter>
        <cd:parameter name="preview">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="repeat">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="object">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="type">
          <cd:constant type="eps"/>
          <cd:constant type="mps"/>
          <cd:constant type="pdf"/>
          <cd:constant type="tif"/>
          <cd:constant type="png"/>
          <cd:constant type="jpg"/>
          <cd:constant type="mov"/>
          <cd:constant type="cd:tex"/>
        </cd:parameter>
        <cd:parameter name="method">
          <cd:constant type="eps"/>
          <cd:constant type="mps"/>
          <cd:constant type="pdf"/>
          <cd:constant type="tif"/>
          <cd:constant type="png"/>
          <cd:constant type="jpg"/>
          <cd:constant type="mov"/>
          <cd:constant type="cd:tex"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="frame"/>
          <cd:constant type="empty"/>
          <cd:constant type="test"/>
        </cd:parameter>
        <cd:parameter name="frames">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="ymax">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="xmax">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="directory">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="local"/>
          <cd:constant type="global"/>
          <cd:constant type="default"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="maxwidth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="maxheight">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="conversion">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="prefix">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="interaction">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
          <!-- more will follow -->
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="showexternalfigures" file="core-fig.tex">
    <cd:sequence>
      <cd:string value="showexternalfigures"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="c"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="useexternalsoundtrack" file="core-fig.tex">
    <cd:sequence>
      <cd:string value="useexternalsoundtrack"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:file"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="name" file="syst-gen.tex">
    <cd:sequence>
      <cd:string value="name"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="legend" type="environment">
    <cd:sequence>
      <cd:string value="legend"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="two"/>
      </cd:keywords>
      <cd:tex n="2" command="leg"/>
      <cd:nothing n="3"/>
      <cd:nothing n="4" separator="backslash"/>
      <cd:nothing n="5" separator="backslash"/>
      <cd:tex n="6" separator="backslash" command="leg"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="fact" type="environment">
    <cd:sequence>
      <cd:string value="fact"/>
    </cd:sequence>
    <cd:arguments>
      <cd:tex n="1" command="fact"/>
      <cd:nothing n="2"/>
      <cd:nothing n="3" separator="backslash"/>
      <cd:nothing n="4" separator="backslash"/>
      <cd:tex n="5" separator="backslash" command="fact"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="rotate" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="rotate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setuprotate" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuprotate" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setuprotate"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="rotation">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="normal"/>
          <cd:constant type="high"/>
          <cd:constant type="fit"/>
          <cd:constant type="broad"/>
          <cd:constant type="depth"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="mirror" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="mirror"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="scale" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="scale"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:parameter name="sx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="sy">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupcombinations" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="setupcombinations"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="before">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="after">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="location">
          <cd:constant type="top"/>
          <cd:constant type="middle"/>
          <cd:constant type="bottom"/>
          <cd:constant type="left"/>
          <cd:constant type="right"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="combination" type="environment">
    <cd:sequence>
      <cd:string value="combination"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:matrix"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="placesidebyside" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="placesidebyside"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="placeontopofeachother" file="core-mis.tex">
    <cd:sequence>
      <cd:string value="placeontopofeachother"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overlay" type="environment">
    <cd:sequence>
      <cd:string value="overlay"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="overview" type="environment">
    <cd:sequence>
      <cd:string value="overview"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinteractionscreen" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupinteractionscreen"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="fit"/>
          <cd:constant type="max"/>
        </cd:parameter>
        <cd:parameter name="backspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topspace">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="horoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="veroffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="max"/>
          <cd:constant type="fit"/>
          <cd:constant type="doublesided"/>
          <cd:constant type="singlesided"/>
          <cd:constant type="auto"/>
          <cd:constant type="none"/>
          <cd:constant type="bookmark"/>
        </cd:parameter>
        <cd:parameter name="delay">
          <cd:constant type="cd:number"/>
          <cd:constant type="none"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="screen" file="core-int.tex">
    <cd:sequence>
      <cd:string value="screen"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setuppagetransitions" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setuppagetransitions"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="reset"/>
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinteraction" file="core-nav.tex">
    <cd:sequence>
      <cd:string value="setupinteraction"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="menu">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
        <cd:parameter name="page">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="click">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="split">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="display">
          <cd:constant type="new"/>
        </cd:parameter>
        <cd:parameter name="openaction">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="closeaction">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="openpageaction">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="closepageaction">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="calculate">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="strut">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </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="depth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="contrastcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="symbolset">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="title">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="subtitle">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="author">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="date">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="keyword">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <!-- maybe this will move elsewhere -->
        <cd:parameter name="fieldlayer">
          <cd:constant type="auto"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinteractionmenu" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupinteractionmenu"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <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="left">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="middle">
          <cd:constant type="cd:command"/>
        </cd:parameter>
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
          <cd:constant type="none"/>
          <cd:constant type="local"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="contrastcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="overlay"/>
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="samepage">
          <cd:constant type="yes"/>
          <cd:constant type="empty"/>
          <cd:constant type="no"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="unknownreference">
          <cd:constant type="yes"/>
          <cd:constant type="empty"/>
          <cd:constant type="no"/>
          <cd:constant type="none"/>
        </cd:parameter>
        <cd:parameter name="leftoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="rightoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="topoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="bottomoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="position">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/> <!-- maybe not all parameters from framed -->
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineinteractionmenu" variant="1" file="core-int.tex">
    <cd:sequence>
      <cd:string value="defineinteractionmenu"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive" list="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupinteractionmenu" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineinteractionmenu" variant="2" file="core-int.tex">
    <cd:sequence>
      <cd:string value="defineinteractionmenu"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupinteractionmenu" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="interactionmenu" type="environment">
    <cd:sequence>
      <cd:string value="interactionmenu"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="disableinteractionmenu" file="core-int.tex">
    <cd:sequence>
      <cd:string value="disableinteractionmenu"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="top"/>
        <cd:constant type="bottom"/>
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:reference n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="useexternaldocument" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="useexternaldocument"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="file"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="useURL" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="useURL"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="file"/>
      </cd:keywords>
      <cd:keywords n="4">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="coupledocument" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="coupledocument"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="file"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="from" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="from"/>
    </cd:sequence>
    <cd:arguments>
      <cd:reference n="1" interactive="exclusive"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="interactionbar">
    <cd:sequence>
      <cd:string value="interactionbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:inherit name="setupinteractionbar" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="interactionbuttons" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="interactionbuttons"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" optional="yes" list="yes">
        <cd:inherit name="setupinteractionbar" n="1"/>
      </cd:assignments>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupinteractionbar" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupinteractionbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="alternative">
          <cd:constant type="a"/>
          <cd:constant type="b"/>
          <cd:constant type="c"/>
          <cd:constant type="d"/>
          <cd:constant type="e"/>
          <cd:constant type="f"/>
          <cd:constant type="g"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="height"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="height"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="depth">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="step">
          <cd:constant type="cd:number"/>
          <cd:constant type="small"/>
          <cd:constant type="medium"/>
          <cd:constant type="big"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="synchronize" file="core-int.tex">
    <cd:sequence>
      <cd:string value="synchronize"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="synchronization" type="environment">
    <cd:sequence>
      <cd:string value="synchronization"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupsynchronizationbar" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupsynchronizationbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="page"/>
          <cd:constant type="local"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension"/>
          <cd:constant type="height"/>
          <cd:constant type="fit"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="synchronizationbar" file="core-int.tex">
    <cd:sequence>
      <cd:string value="synchronizationbar"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="alternative">
          <cd:constant type="page"/>
          <cd:constant type="local"/>
        </cd:parameter>
        <cd:inherit name="setupsynchronizationbar" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupsynchronization" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupsynchronization"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineprofile" file="core-int.tex">
    <cd:sequence>
      <cd:string value="defineprofile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupprofiles" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupprofiles"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="option">
          <cd:constant type="test"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="profile" type="environment">
    <cd:sequence>
      <cd:string value="profile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="followprofile" file="core-int.tex">
    <cd:sequence>
      <cd:string value="followprofile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="exclusive"/>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="placebookmarks" file="core-int.tex">
    <cd:sequence>
      <cd:string value="placebookmarks"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
        <cd:constant type="all"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:parameter name="force">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="bookmark" file="core-int.tex">
    <cd:sequence>
      <cd:string value="bookmark"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="version" type="environment">
    <cd:sequence>
      <cd:string value="version"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive" list="yes">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupversions" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupversions"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="number">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="markversion" file="core-int.tex">
    <cd:sequence>
      <cd:string value="markversion"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="selectversion" file="core-int.tex">
    <cd:sequence>
      <cd:string value="selectversion"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="defineversion" file="core-int.tex">
    <cd:sequence>
      <cd:string value="defineversion"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:number"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="followversion" file="core-int.tex">
    <cd:sequence>
      <cd:string value="followversion"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="exclusive"/>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="followprofileversion" file="core-int.tex">
    <cd:sequence>
      <cd:string value="followprofileversion"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="exclusive"/>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="defineprogram" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="defineprogram"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupprograms" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="setupprograms"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" list="yes">
        <cd:parameter name="directory">
          <cd:constant type="cd:text"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="program" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="program"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="figure" type="environment">
    <cd:sequence>
      <cd:string value="figure"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" interactive="exclusive">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:file"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="frame">
          <cd:constant type="on"/>
          <cd:constant type="off"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <!-- referring*figure skipped -->

  <!-- marking*figure skipped -->

  <!-- remark skipped -->

  <cd:command name="goto" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="goto"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="exclusive"/>
      <cd:content n="2" interactive="exclusive"/>
      <cd:reference n="3" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="gotobox" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="gotobox"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1" interactive="exclusive"/>
      <cd:reference n="2" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="button" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="button"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" interactive="exclusive" optional="yes" list="yes">
        <cd:inherit name="setupbuttons" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
      <cd:reference n="3" list="yes"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupbuttons" file="core-ref.tex">
    <cd:sequence>
      <cd:string value="setupbuttons"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <!-- menubutton skipped -->

  <cd:command name="setupcomment" file="core-int.tex">
    <cd:sequence>
      <cd:string value="setupcomment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </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="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="title">
          <cd:constant type="cd:text"/>
        </cd:parameter>
        <cd:parameter name="space">
          <cd:constant type="yes"/>
          <cd:constant type="no"/>
        </cd:parameter>
        <cd:parameter name="symbol">
          <cd:constant type="normal"/>
          <cd:constant type="New"/>
          <cd:constant type="Balloon"/>
          <cd:constant type="Addition"/>
          <cd:constant type="Help"/>
          <cd:constant type="Paragraph"/>
          <cd:constant type="Key"/>
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="max"/>
          <cd:constant type="buffer"/>
        </cd:parameter>
        <cd:parameter name="margin">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="comment" type="environment">
    <cd:sequence>
      <cd:string value="comment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupcomment" n="1"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="comment">
    <cd:sequence>
      <cd:string value="comment"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2" optional="yes" list="yes">
        <cd:inherit name="setupcomment" n="1"/>
      </cd:assignments>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="definefield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1"> <!-- name -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2"> <!-- type -->
        <cd:constant type="text"/>
        <cd:constant type="line"/> <!-- equal to text -->
        <cd:constant type="push"/>
        <cd:constant type="check"/>
        <cd:constant type="radio"/>
        <cd:constant type="combo"/>
        <cd:constant type="choice"/> <!-- equal to combo -->
        <cd:constant type="popup"/> <!-- equal to combo -->
      </cd:keywords>
      <cd:keywords n="3"> <!-- group -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="4" list="yes"> <!-- optional for text? -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="5" optional="yes"> <!-- default -->
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definesubfield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="definesubfield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="3" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="copyfield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="copyfield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="clonefield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="clonefield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="4" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="field" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="field"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="fitfield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="fitfield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="fillinfield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="fillinfield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="tooltip" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="tooltip"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes">
        <cd:constant type="left"/>
        <cd:constant type="right"/>
        <cd:constant type="middle"/>
      </cd:keywords>
      <cd:content n="2"/>
      <cd:content n="3"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="showfields" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="showfields"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="logfields" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="logfields"/>
    </cd:sequence>
  </cd:command>

  <cd:command name="setupfield" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="setupfield"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="label"/>
        <cd:constant type="horizontal"/>
        <cd:constant type="vertical"/>
        <cd:constant type="frame"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:inherit name="setupfields" n="2"/>
      </cd:assignments>
      <cd:assignments n="4" list="yes"> </cd:assignments>
      <cd:assignments n="5" list="yes"> </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfields" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="setupfields"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes"> <!-- TODO: if it's reset, only a single argument, no list -->
        <cd:constant type="reset"/>
        <cd:constant type="label"/>
        <cd:constant type="horizontal"/>
        <cd:constant type="vertical"/>
        <cd:constant type="frame"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </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="color">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="style">
          <cd:resolve name="style"/>
        </cd:parameter>
        <cd:parameter name="align">
          <cd:resolve name="align"/>
        </cd:parameter>
        <cd:parameter name="option">
          <cd:constant type="readonly"/>
          <cd:constant type="required"/>
          <cd:constant type="protected"/>
          <cd:constant type="sorted"/>
          <cd:constant type="unavailable"/>
          <cd:constant type="hidden"/>
          <cd:constant type="printable"/>
        </cd:parameter>
        <cd:parameter name="clickin">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="clickout">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="regionin">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="regionout">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="afterkey">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="format">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="validate">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="calculate">
          <cd:constant type="cd:reference"/>
        </cd:parameter>
        <cd:parameter name="fieldoffset">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="fieldframecolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="fieldbackgroundcolor">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:inherit name="setupframed" n="2"/>
      </cd:assignments>
      <cd:assignments n="3" list="yes">
        <cd:inherit name="setupfields" n="2"/>
      </cd:assignments>
      <cd:assignments n="4" list="yes">
        <cd:inherit name="setupfields" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupforms" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="setupforms"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="method">
          <cd:constant type="HTML"/>
          <cd:constant type="FDF"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefieldstack" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="definefieldstack"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" list="yes">
        <cd:inherit name="setupfields" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="fieldstack" file="core-fld.tex">
    <cd:sequence>
      <cd:string value="fieldstack"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes" list="yes">
        <cd:inherit name="setupfields" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="clip" file="core-trf.tex">
    <cd:sequence>
      <cd:string value="clip"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" optional="yes" list="yes">
        <cd:inherit name="setupclipping" n="1"/>
      </cd:assignments>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupclipping" file="core-trf.tex">
    <cd:sequence>
      <cd:string value="setupclipping"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="state">
          <cd:constant type="start"/>
          <cd:constant type="stop"/>
        </cd:parameter>
        <cd:parameter name="n">
          <cd:constant type="cd:number" default="1"/>
        </cd:parameter>
        <cd:parameter name="nx">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="ny">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="x">
          <cd:constant type="cd:number" default="1"/>
        </cd:parameter>
        <cd:parameter name="y">
          <cd:constant type="cd:number" default="1"/>
        </cd:parameter>
        <cd:parameter name="sx">
          <cd:constant type="cd:number" default="1"/>
        </cd:parameter>
        <cd:parameter name="sy">
          <cd:constant type="cd:number" default="1"/>
        </cd:parameter>
        <cd:parameter name="width">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="height">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="hoffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="voffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="offset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="leftoffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="rightoffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="topoffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="bottomoffset">
          <cd:constant type="cd:dimension" default="0pt"/>
        </cd:parameter>
        <cd:parameter name="mp">
          <cd:constant type="cd:name" default=""/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="placelegend">
    <cd:sequence>
      <cd:string value="placelegend"/>
    </cd:sequence>
    <cd:arguments>
      <cd:content n="1"/>
      <cd:content n="2"/>
    </cd:arguments>
  </cd:command>

  <cd:command name="setuplegend">
    <cd:sequence>
      <cd:string value="setuplegend"/>
    </cd:sequence>
    <cd:arguments>
      <cd:assignments n="1" list="yes">
        <cd:parameter name="n">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="distance">
          <cd:constant type="cd:dimension"/>
        </cd:parameter>
        <cd:parameter name="inbetween">
          <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="location">
          <cd:constant type="right"/>
          <cd:constant type="bottom"/>
        </cd:parameter>
        <cd:parameter name="bodyfont">
          <cd:resolve name="bodyfont"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupstrut" file="core-spa.tex">
    <cd:sequence>
      <cd:string value="setupstrut"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="yes" default="yes"/>
        <cd:constant type="no"/>
        <cd:constant type="cap"/>
        <cd:constant type="cd:text"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="usetypescriptfile" file="type-ini.tex">
    <cd:sequence>
      <cd:string value="usetypescriptfile"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1"  list="yes">
        <cd:constant type="cd:file"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="usetypescript" file="type-ini.tex">
    <cd:sequence>
      <cd:string value="usetypescript"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="3" optional="yes" list="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definetypeface" file="type-ini.tex">
    <cd:sequence>
      <cd:string value="definetypeface"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="rm"/>
        <cd:constant type="ss"/>
        <cd:constant type="tt"/>
        <cd:constant type="mm"/>
        <cd:constant type="hw"/>
        <cd:constant type="cg"/>
      </cd:keywords>
      <cd:keywords n="3">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="4">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="5" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="6" optional="yes">
        <cd:parameter name="features">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="rscale">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="encoding">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="text">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefontfeature" file="type-ini.tex">
    <cd:sequence>
      <cd:string value="definefontfeature"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="2" optional="yes">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="no">
        <cd:parameter name="compose">
          <cd:constant type="no" default="yes"/>
          <cd:constant type="yes"/>
        </cd:parameter>
        <cd:parameter name="mode">
          <cd:constant type="node"/>
          <cd:constant type="base" default="yes"/>
        </cd:parameter>
        <cd:parameter name="tlig">
          <cd:constant type="no" default="yes"/>
          <cd:constant type="yes"/>
        </cd:parameter>
        <cd:parameter name="trep">
          <cd:constant type="no" default="yes"/>
          <cd:constant type="yes"/>
        </cd:parameter>
        <cd:parameter name="script">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="language">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="..tag.."> <!-- can't use &gt; here, \showsetup gives an error -->
          <cd:constant type="no" default="yes"/>
          <cd:constant type="yes"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="definefonthandling" file="hand-ini.mkii">
    <cd:sequence>
      <cd:string value="definefonthandling"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name" list="yes"/>
      </cd:keywords>
      <cd:assignments n="3">
        <cd:parameter name="type">
          <cd:constant type="hanging" default="yes"/>
          <cd:constant type="hz"/>
          <cd:constant type="spacing"/>
          <cd:constant type="tag"/>
        </cd:parameter>
        <cd:parameter name="right">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="left">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="factor">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="min">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="max">
          <cd:constant type="cd:number"/>
        </cd:parameter>
        <cd:parameter name="step">
          <cd:constant type="cd:number"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfonthandling" file="hand-ini.mkii">
    <cd:sequence>
      <cd:string value="setupfonthandling"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2">
        <cd:inherit name="definefonthandling" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <!-- mkii:

  <cd:command name="definefontsynonym" file="font-ini.tex">
    <cd:sequence>
      <cd:string value="definefontsynonym"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes">
        <cd:parameter name="encoding">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="features">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="handling">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="mapping">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  -->

  <cd:command name="definefontsynonym" file="font-ini.tex">
    <cd:sequence>
      <cd:string value="definefontsynonym"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:text"/>
      </cd:keywords>
      <cd:assignments n="3" optional="yes">
        <cd:parameter name="fallbacks">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="features">
          <cd:constant type="cd:name"/>
        </cd:parameter>
        <cd:parameter name="goodies">
          <cd:constant type="cd:name"/>
        </cd:parameter>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="setupfontsynonym" file="font-ini.tex">
    <cd:sequence>
      <cd:string value="setupfontsynonym"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:name"/>
      </cd:keywords>
      <cd:assignments n="2">
        <cd:inherit name="definefontsynonym" n="3"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command name="mapfontsize" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="mapfontsize"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
      <cd:keywords n="2">
        <cd:constant type="cd:dimension"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

  <cd:command name="definedfont" file="font-ini.tex" category="fonts">
    <cd:sequence>
      <cd:string value="definedfont"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:inherit name="definefont" n="2"/>
      </cd:keywords>
    </cd:arguments>
  </cd:command>

</cd:interface>
