Changes

Jump to navigation Jump to search
352 bytes added ,  09:00, 18 November 2010
→‎Namespace Configuration: ‘\listnamespaces’ &c.
The <tt>\defineNS[command][..,..=..,..]</tt> can be used to create instances of a generic macro with local setups. Works like ordinary Context <tt>\definesomething</tt> commands and allows for inheritance (<tt>\defineNS[command][othercommand]</tt>). Of course, if <tt>command</tt> is set to ''list'', the first argument of <tt>\defineNS</tt> will take comma separated values.
|-
|<tt>comment</tt> || ''string'': nonmeta-functional information that will be stored along with the namespace??, see [[#Related Commands|related commands]] below.
|-
|<tt>version</tt> || ''number'': versioning meta-information?? Functionality not yet known, see [[#Related Commands|related commands]].
|-
|<tt>style</tt> || ''boolean'': enables special handling for text color and style attributes.
|+ Optional settings for module namespaces.
|}
 
=Related Commands=
==<tt>\listnamespaces</tt>==
Prints all namespaces defined in tabular form along
with additional information. Example:
 
<texcode>
\definenamespace[Newns][
name=Newns,
type=module,
setup=list,
parent=NS,
style=yes,
version=3.141,
comment=this space has been named,
]
 
\starttext
\listnamespaces
\stoptext
</texcode>
=Further Information=
188

edits

Navigation menu