Changes

Jump to navigation Jump to search
385 bytes added ,  15:26, 1 May 2016
Added more info about descriptions/enumerations different alternatives.
=== Enumerations and descriptions ===
Enumerations are a kind of descriptions, hence I focus on the former here. Same restrictions apply to the latter as well. The discussion here is based on recent betas, which differs slightly from the (old) stable version here.
In MkIV we use {{code|alternative}} option in {{cmd|defineenumeration}} to pick its general form. The only value that works properly is {{code|serried}}.
\setupdirections[bidi=global,method=one]
\setupalign[r2l]
\defineenumeration[theorem][alternative=serried,hang=2,width=fit,text=قضیه ,numberconversion=persiandecimals]
% persiandecimals came back in a beta and is not available on the stable from texlive 2015.
\starttext
<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>
 
Using {{code|1=alternative=left}} or {{code|1=alternative=right}} produces almost fine results in RTL but the placement of head text on the right-hand side adds some extra space. Using {{code|1=alternative=top}} places the head on the left-hand side even in RTL mode.
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)!
25

edits

Navigation menu