Changes

Jump to navigation Jump to search
1,324 bytes added ,  12:10, 1 May 2016
Added some info about descriptions and enumerations.
\setupmixedcolumns[itemgroupcolumns][direction=reverse]
</texcode>
 
=== Enumerations and descriptions ===
Enumerations are a kind of descriptions, hence I focus on the former here. Same restrictions apply to the latter as well.
 
In MkIV we use {{code|alternative}} option in {{cmd|defineenumeration}} to pick its general form. The only value that works properly is {{code|serried}}.
 
<context source=yes mode=mkiv text="This produces:">
% mode=mkiv
\usemodule[simplefonts]
\setmainfont[ALM Fixed][features=arabic,range=arabic]
\setcharacterstripping[1] % don't show ZWNJ, etc.
\setupdirections[bidi=global,method=one]
\setupalign[r2l]
\defineenumeration[theorem][alternative=serried,width=fit,text=قضیه ,numberconversion=persiandecimals]
\starttext
\starttheorem
مجموعه اعداد صحیح نسبت به عمل جمع بسته است.
\stoptheorem
\stoptext
</context>
 
<em>The alignment of the second line is not right here but it works fine on my machine. Maybe the garden's CONTEXT version is old.</em>
 
Note that, although the head text in the example above shows with normal style, the default style is indeed bold. The problem here is that the ALM Fixed font does not seem to have a bold version.
 
In any case, the worst result comes from setting {{code|hang}} which places the hanging on the incorrect side (left for RTL) and pushes the head text into the margin on the correct side (right in RTL)!
=== Multi-column document ===
* RTL tables
* Float numbering
* Enumerations
* Descriptions
* Margin notes
* Dates and time
25

edits

Navigation menu