Changes

Jump to navigation Jump to search
The `cd:instance` element carries an attribute of `value`, which maps to the replaceable stem of the class.
{{note|Based on email exchange with Wolfgang:
 
==== instance generators ====
 
instances are generated by a generator command. Currently, I find the generator command as follows:
 
* take the value of the `name` attribute at the top level of the stanza
* prepend `define`
* look for a replacement in the following table
<pre>
local corrections = {
definefloats = 'definefloat',
definebox = 'definehbox',
definectxfunction = 'installctxfunction',
definectxfunctiondefinition = 'startctxfunctiondefintion',
definefence = 'definemathfence',
definelabel = 'definelabelclass',
definelanguage = 'installlanguage',
definesynonym = 'definesynonyms',
definesorts = 'definesorting',
}
</pre>
* the result is the generator command for all the instances in the stanza
}}
==== cd:variable ====

Navigation menu