Changes

Jump to navigation Jump to search
;`cd:content`
: Mixed content?
{{note|I would define this as 'generic content'}}
;`cd:delimiter`
: A piece of text (a command?) that is used to mark arguments.
{{note|Yes, a command. The name attribute gives the command name. These are literal required commands that are used as argument separators.}}
;`cd:dimension`
: A quantity of linear measure.
;`cd:position`
: (unknown)
{{note|positions are an old subsystem for absolute placement that is not used a lot, since it has since been superseded by layers and overlays. you'll have to look at `pack-pos.mkiv` to get an idea for how it works.}}
;`cd:index`
: (unknown)
{{note|this is a list index entries. They are mentioned separately because index entries have a sub-syntax of their own}}
;`cd:text`
: (unknown)
{{note|Generic horizontal mode content. The sole occurrence of this is in `\setwidthof`.}}
;`cd:apply`
: (unknown)
{{note|these are apply lists, which define jump tables. Syntactically, apply lists are like key{{=}}value lists, except they use `{{=}}>` as separator instead of `{{=}}`. Have a look at the [[System_Macros/Action_Processing]] page for more details.}}
;`cd:template`
: (unknown)
{{note|table column definition templates, like for `\starttable[|l|p|]`}}
;`cd:angles`
: (unknown)
{{note|`\type` and `\typ` also allow a call with double angle brackets, like this: `\type<stuff>>`}}
;`cd:string`
: (unknown)
{{note|an argument that is explicitly a bare string, for string comparisons}}
==== cd:keywords ====
;delimiters
: The type of delimiters requested for the argument. Values found in the interface are `none`, `braces` ({}), and `parenthesis`. Square brackets ([]) are the implied default?
{{note|yes, square brackets default}}
;list
: ?
{{note|`list{{=}}yes` means this is defines a comma-separated list. if missing, this defines a single keyword option}}
;optional
: The argument is optional.
;prefix
: ?
 
{{note|This one I am not quite sure about, but I interpret `method`, `prefix` and `type` like this:
 
;method{{=}}range
: the argument is specified as `prefix`, followed by `:`, followed by `type`
;method{{=}}apply
: the argument is specified as `prefix`, followed by `=>`, followed by `type`
;method{{=}}none
: the argument is specified as `prefix`, followed by `type`
 
The values of both `prefix` and `type` can be one of the predefined `cd:XXXXX` value types, or a literal string like `*` or `all`.
 
A useful example is in [[Command/setupreferencestructureprefix]]
 
}}
The `cd:inherit` element acts as a pointer to the options of a donor command by command name. The `cd:inherit` element uses the `name` attribute to indicate the donor command.
;list
: ?
{{note|`list{{=}}yes` means this is defines a comma-separated list. if missing, this defines a single key-value option (which I think never actually happens)}}
;optional
: The argument is optional.

Navigation menu