Ibn Saeed
19. Januar 2016 um 18:23
Mohammad Hossein Bateni <bateni <at> gmail.com> writes:

You do not need to uninstall TeXLive.  ConTeXt Standalone can work side by 
side and it's very simple to install.  You can pick to use the standalone for 
some of your compilations.
\persiandecimals and \arabicdecimals are very similar.  The difference is 
(almost) only in digits for 0,4,5,6.  However, Ibn Saeed most probably needs 
\arabicdecimals to typeset "mashiriqi" numerals.
The important thing is that neither one exists in TeXLive Context.  It was 
there in MkII but not in MkIV for some reason.  It was added to MkIV sometime 
in the fall.


I updated ConTeXt as per your advice to the latest version.

I tried the following code on ConTeXt 0.63 running in AucTeX Spacemacs Editor.
When you talk about context versions you have to use the date from the last line (context --version):

mtx-context     | ConTeXt Process Management 0.63
mtx-context     |
mtx-context     | main context file: context.mkiv
mtx-context     | current version: 2016.01.18 22:21
\setupheadertexts
       [{\righttoleft\getmarking[chapter]}]    [{\arabicdecimals\pagenumber}]
       [{\arabicdecimals\pagenumber}]        
[{\righttoleft\getmarking[chapter]}]
You can separate the settings and the content:

\setupheader[style=\righttoleft]

\setupheadertexts
  [chapter]    [pagenumber]
  [pagenumber] [chapter]

\setuppagenumbering
  [alternative=doublesided,
   style=\lefttoright,
   location=]

\setupuserpagenumber[numberconversion=Characters] % numberconversion=arabicdecimals

\starttext
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stoptext

Wolfgang