Changes

Jump to navigation Jump to search
m
< [[Structurals]] | [[Enumerations]] > Sometimes, you might want to enumerate things using a number conversion (that is, the letter or symbol or whatever that "numbers" the item) which isn't one existing ConTeXt enumerations. (For a list of existing conversion, see {{cmd|convertnumber}}. For example, [[User:Mojca Miklavec|Mojca Milkovec recently (2005/07/26) Miklavec]] pointed out on the mailing list that, in Slovenian, it is traditional to letter things using the Slovenian alphabet, which doesn't quite match the English one. [[User:Hagen|Hans ]] provided this example of how to create a new enumeration in ConTeXt, which defines a "Mojcanian" numbering system, and a conversion based on those numbers:
<texcode>
<texcode>
\defineconversion[s][m, o, j, c, a, m, i, k, l, c, oa, v, e, c]
</texcode>
<context>
\defineconversion[s][m, o, j, c, a, m, i, k, l, c, oa, v, e, c]
\starttext
\startitemize[s,columns,five,packed,broad]
</context>
There are a number of additional examples of conversion definitions in <tt>core-con.texlua</tt>, which is where ConTeXt's default conversions are defined. == Examples ==* Another example of conversion posted by Hans on the mailing list <texcode> \defineconversion[ordinal][\enordinaldaynumber]  \startitemize[ordinal,2*broad] \item test \item test \item test \item test \item test \stopitemize</texcode> <context> %\defineconversion[ordinal][\enordinaldaynumber]  \startitemize[ordinal,2*broad] \item test \item test \item test \item test \item test \stopitemize</context> * An example from [[source:meta-txt.tex]] <context source="yes">\useMPlibrary[txt] \startitemize[fuzzy,2*broad] \item test \item test \item test \item test \item test \stopitemize</context> [[Category:Basics]]

Navigation menu