Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Wolfgang Schuster

Ibn Saeed 
19. Januar 2016 um 10:55

Here is my code for the header:

\setupheadertexts
[{\righttoleft\getmarking[chapter]}] [{\romannumerals}]
[{\pagenumber}] [{\righttoleft\getmarking[chapter]}]

Use

\setupheadertexts[pagenumber]

or

\setupheadertexts[\userpagenumber]

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed


Here is my code for the header:

\setupheadertexts
   [{\righttoleft\getmarking[chapter]}][{\romannumerals}]
   [{\pagenumber}][{\righttoleft\getmarking[chapter]}]


\setuppagenumbering[
   alternative=doublesided,
   location=, 
]


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
Also \arabicnumerals is probably not what you want: this will produce an
abjad-like sequence:
ا ب ج د ه و ز ...

I guess, what you want is called \arabicdecimals, and was not part of MkIV
for a while.  (For instance, it is not in standard TeXLive 2015
distribution whose CONTEXT version is for sometime in the summer.)  Use the
CONTEXT standalone and you should be good to go.

On Tue, Jan 19, 2016 at 5:23 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Ibn Saeed 
> 19. Januar 2016 um 10:55
>
> Here is my code for the header:
>
> \setupheadertexts
> [{\righttoleft\getmarking[chapter]}] [{\romannumerals}]
> [{\pagenumber}] [{\righttoleft\getmarking[chapter]}]
>
> Use
>
> \setupheadertexts[pagenumber]
>
> or
>
> \setupheadertexts[\userpagenumber]
>
> Wolfgang
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Otared Kavian
Hi,

There is the command 

\persiandecimals

is that what you are looking for?

Best regards: OK

> On 19 Jan 2016, at 12:30, Mohammad Hossein Bateni  wrote:
> 
> Also \arabicnumerals is probably not what you want: this will produce an 
> abjad-like sequence:
> ا ب ج د ه و ز ...
> 
> I guess, what you want is called \arabicdecimals, and was not part of MkIV 
> for a while.  (For instance, it is not in standard TeXLive 2015 distribution 
> whose CONTEXT version is for sometime in the summer.)  Use the CONTEXT 
> standalone and you should be good to go.
> 
> On Tue, Jan 19, 2016 at 5:23 AM, Wolfgang Schuster 
> > wrote:
>> Ibn Saeed  19. Januar 2016 um 10:55
>> 
>> Here is my code for the header:
>> 
>> \setupheadertexts
>> [{\righttoleft\getmarking[chapter]}] [{\romannumerals}]
>> [{\pagenumber}] [{\righttoleft\getmarking[chapter]}]
> Use
> 
> \setupheadertexts[pagenumber]
> 
> or
> 
> \setupheadertexts[\userpagenumber]
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl  / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> 
> webpage  : http://www.pragma-ade.nl  / 
> http://tex.aanhet.net 
> archive  : http://foundry.supelec.fr/projects/contextrev/ 
> 
> wiki : http://contextgarden.net 
> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Wolfgang Schuster

Ibn Saeed 
19. Januar 2016 um 18:23
Mohammad Hossein Bateni  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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed

> \setupuserpagenumber[numberconversion=Characters]
> Wolfgang


Thank you very much Wolfgang.Its nice seperation of settings and content.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
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.

On Tue, Jan 19, 2016 at 8:43 AM, Ibn Saeed  wrote:

> Wolfgang Schuster  gmail.com> writes:
>
> > Use
> > \setupheadertexts[pagenumber]
> > or
> > \setupheadertexts[\userpagenumber]
> > Wolfgang
> >
>
>
> Hello Wolfgang,
>
> Thanks for helping out again.
>
> i tried your code :
>
>
> \setupheadertexts[pagenumber]
>[{\righttoleft\getmarking[chapter]}][{\romannumerals}]
>[{\pagenumber}][{\righttoleft\getmarking[chapter]}]
>
>
>
>
> \setuppagenumbering[
>alternative=doublesided,
>location=,
> ]
>
> It did not work, no page numbers appeared(blank)
>
> I am using TexLive 2015.
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Wolfgang Schuster  gmail.com> writes:

> Use
>     \setupheadertexts[pagenumber]
> or
>     \setupheadertexts[\userpagenumber]
> Wolfgang
> 


Hello Wolfgang,

Thanks for helping out again.

i tried your code :


\setupheadertexts[pagenumber]
   [{\righttoleft\getmarking[chapter]}][{\romannumerals}]
   [{\pagenumber}][{\righttoleft\getmarking[chapter]}]




\setuppagenumbering[
   alternative=doublesided,
   location=,
]

It did not work, no page numbers appeared(blank)

I am using TexLive 2015.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Otared Kavian  gmail.com> writes:

> 
> Hi,
> There is the command 
> 
> 
>   \persiandecimals
> 
> is that what you are looking for?
> 
> Best regards: OK
> 

No, that is not it. I am looking for Arabic Decimals. 

I think, ill have to uninstall texlive and setup ConTeXt standalone.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Mohammad Hossein Bateni  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.
> 
> 

Thank you Mohammad. Ill install the standalone version
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Mohammad Hossein Bateni  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 have installed ConTeXt standalone version 0.63. i dont know if its beta or 
stable release.

How do i use \arabicdecimals now ? where should i place the code 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Mohammad Hossein Bateni  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.

\setupheadertexts
   [{\righttoleft\getmarking[chapter]}][{\arabicdecimals\pagenumber}]
   [{\arabicdecimals\pagenumber}]
[{\righttoleft\getmarking[chapter]}]


This time it worked perfectly.

Thank you very much Mohammad Hossein Bateni
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___