Changes

Jump to navigation Jump to search
980 bytes added ,  15:51, 1 May 2016
added a simple RTL table
\stopcolumns
</texcode>
 
=== Tables ===
 
CONTEXT has several mechanisms for typesetting tables: see [[Tables_Overview]]. Natural tables are the recommended construct, but they are somewhat verbose. It's easier for quick small tables to use the older macros adapted (and enhanced) from the TABLE package. This is not actively developed, so we do not hope for new RTL features in particular.
 
Using them on their own leads ignores the paragraph direction and sets an LTR table. However, when wrapped in {{cmd|leftaligned}} or its friends, we get RTL/LTR tables depending on the paragraph direction.
 
<context source=yes mode=mkiv text="This produces:">
\usemodule[simplefonts]
\setmainfont[dejavusans][features=arabic,range=arabic]
\setupdirections[bidi=global,method=one]
\setupalign[r2l]
\starttext
\midaligned{\starttable[|c|c|]
\NC \REF[cB]{ماه} \NC \REF[cB]{تعداد روز} \NC \AR
\NC ژانویه \NC ۳۱ \NC \AR
\NC فوریه \NC ۲۸ \NC \AR
\NC مارس \NC ۳۱ \NC \AR
\stoptable}
\stoptext
</context>
== TODO ==
Here are some of the things to be added:
* Math mode Hindi digits* RTL tablesNatural tabels
* Float numbering
* Margin notes
25

edits

Navigation menu