Changes

Jump to navigation Jump to search
1,729 bytes added ,  17:36, 8 June 2020
m
no edit summary
should adhere to the following rules:
* Namespaces Namespace identifiers (their <tt>name</tt> parameter) should have more than two characters (at least yours [http://article.gmane.org/gmane.comp.tex.context/61939]),
* the namespace should be registered here for others to know.
! style="background:#addeff;" | Main file !! Description
|-
|<tt>fbalgorithmic</tt>| algorithmic| [https://bitbucket.org/wolfs/algorithmic t-algorithmic]| Write algorithms.|-| <tt>animation</tt>| animation| [https://bitbucket.org/wolfs/animation t-animation]| Interface for fieldstack based animation.|-| <tt>annotation</tt>| annotation| [https://bitbucket.org/wolfs/annotation t-annotation]| Annotate text blocks.|-| <tt>cyrnum</tt>| cyrnum| [https://bitbucket.org/phg/context-cyrillicnumbers t-cyrillicnumbers]| Cyrillic numerals, counters.|-| <tt>fancybreak </tt>|fancybreak| [httphttps://bitbucket.org/wolfs/fancybreak t-fancybreak] || Inserting thought breaks (transitions).|-| <tt>fx</tt>| fixme| [https://bitbucket.org/wolfs/fixme t-fixme]| Todo notes.|-| <tt>fullpage</tt>| fullpage| [https://bitbucket.org/wolfs/fullpage t-fullpage]| Set equal margin without \setuplayout.|-| <tt>letterspace</tt>| letterspace| [https://bitbucket.org/phg/t-letterspace t-letterspace]| Define letterspacing macros.|-| <tt>rb</tt>| ruby| [https://bitbucket.org/wolfs/ruby t-ruby]| Highlight text with ruby markup.|-|<tt>RST</tt>| RST| [https://bitbucket.org/phg/context-rst t-rst]| Convert/typeset reStructuredText.|-|<tt>TRL</tt>| transliterate| [https://bitbucket.org/phg/transliterator t-transliterator]| Transliteration from non-Latin scripts.|- | <tt>visualcounter</tt>| visualcounter || [http://github.com/adityam/visualcounter t-visualcounter] || Display counters using a graphic
|+ style="font-style:italic; font-size:83.3333%;" | Reserved module namespaces.
|}
=Generating a Namespace for Your Module=
Context provides the user command [[{{cmd:definenamespace|\definenamespace]] }}
that generates a valid namespace for variables and takes care
of defining a setup command as well.
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=
* [[source:mult-aux.mkiv|Definition of <tt>\definenamespace</tt>]].
* [[System Macros]].
* Some of the functionality was explained by Wolfgang Schuster on the [httphttps://archivemailman.contextgardenntg.netnl/messagepipermail/20101117.215320.314eb367.enntg-context/2010/054307.html Context list] [[Category:Modules]]

Navigation menu