Re: [NTG-context] right to left direction for itemize columns

2016-04-28 Thread Mohammad Hossein Bateni
I have resumed working on the RTL issues and have updated this page
 on the context garden.  All
improvements and comments are welcome.

In addition, I am putting together a set of useful macros and settings for
Persian typesetting and releasing it on github
.  Perhaps, once I am happy with certain
things, I can ask Hans to consider including some parts as patches in
ConTeXt itself.

On Thu, Apr 28, 2016 at 10:10 AM, Otared Kavian  wrote:

> Dear Mohammad-Hossein,
>
> After updating my installation of ConTeXt indeed I see that the order of
> the columns is correct. (The version I have now is
> 2016.04.27 10:18 MKIV beta  fmt: 2016.4.28
> and the previous one was version2016.04.22 09:10).
>
> Somehow I did not notice the February change you mention in your message,
> and in any case my installation was probably not really up to date.
>
> Best regards: OK
> PS: I am sorry for having changed your first name, and I apologize for
> that…
>
>
> > On 28 Apr 2016, at 09:55, Mohammad Hossein Bateni 
> wrote:
> >
> > Dear Otared,
> >
> > Your example works perfectly fine for me using version: 2016.04.13 16:46.
> Perhaps, you're using an older version of CONTEXT.  There was a patch in
> February enabling this.  See the output of my run attached.
> >
> > —Hossein
> >
> > P.S.  My name is Mohammad *Hossein*, not Mohammad Reza :)
> >
> >
> >
> > On Thu, Apr 28, 2016 at 12:41 AM, Otared Kavian 
> wrote:
> > Hi Mohammad Reza,
> >
> > I tried your example, but it seems to me that the way the columns are
> presented when writing Right-to-Left is still incorrect. In the following
> example one should have the column containing the lines « First » and «
> Second » to the right of the column containing « Third » and « Fourth ».
> >
> > I don’t know if there is already a way to tell ConTeXt to do it in the
> right way, or Hans has to look into the righttoleft mechanism.
> > The same issue appears in the table mechanism.
> >
> > By the way, the option
> >   [direction=reverse]
> > seems to have no effect at all in Right-to-Left environment.
> >
> > %%% begin example-RtoL-reverse.tex
> > \usemodule[simplefonts]
> > \setmainfont[ALM Fixed][features=arabic,range=arabic]
> >
> > \setupdirections[bidi=global,method=two]
> > \setupalign[righttoleft]
> >
> > \starttext
> > آزمایش نوشتن از راست به چپ
> >
> > \startitemize[columns,two][direction=reverse]
> > \item First
> > \item Second
> > \item Third
> > \item Fourth
> > \stopitemize
> >
> > آزمایش نوشتن از راست به چپ
> > \startitemize[columns,two][direction=reverse]
> >
> > \startitem
> > یک
> > \stopitem
> >
> > \startitem
> > دو
> > \stopitem
> >
> > \startitem
> > سه
> > \stopitem
> >
> >
> > \startitem
> > چهار
> > \stopitem
> > \stopitemize
> > \stoptext
> > %%% end example-RtoL-reverse.tex
> >
> > Best regards: OK
> >
> >> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni 
> wrote:
> >>
> >> I actually figured out that one can use the following:
> >>
> >> \startitemize[columns,two][direction=reverse]
> >> \item first
> >> \item second
> >> \item third
> >> \stopitemize
> >>
> >> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni <
> bat...@gmail.com> wrote:
> >> Wolfgang,
> >>
> >> Did you imply in the email below that a new key or something was added
> to \startitemize setups?  I mean, using \setupmixedcolumns works fine but
> is it possible to do this in each \startitemize individually?
> >>
> >> Thanks,
> >> Hossein
> >>
> >> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster <
> schuster.wolfg...@gmail.com> wrote:
> >>> Bou Salim 21. Februar 2016 um 13:26
> >>> I have posted  a question in tex stack exchange
> >>> Customize right to left list in context
> >>>
> >>> My aim is to obtain right to left  items arranged  in  multi-column,
> if I use
> >>> \startitemize [s,columns,three] [margin=1em]
> >>> the result is three column where first column start from left side of
> page, but I want it to start from right side of page.
> >>>
> >>> I can use \startcolumns[direction=left]\startitemize \item First \item
> Second \item Third \stopitemize \stopcolumns
> >>> but I think it look better if there is a key direction=left for the
> \startitemize environment such as used in columns environment.
> >> The underlying columns mechanism has a reverse option for the direction
> key. I sent a patch to the dev list which allows a direst setting of the
> direction value with the \startitemize command.
> >>
> >> \starttext
> >>
> >> \startitemize[columns,three]
> >> \dorecurse{9}{\item Entry \recurselevel}
> >> \stopitemize
> >>
> >> \blank[3*line]
> >>
> >> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
> >>
> >> \startitemize[columns,three]
> >> \dorecurse{9}{\item Entry \recurselevel}
> >> \stopitemize
> >>
> >> \stoptext
> >>
> >> Wolfgang
> >>
> >>
> 

Re: [NTG-context] right to left direction for itemize columns

2016-04-28 Thread Otared Kavian
Dear Mohammad-Hossein,

After updating my installation of ConTeXt indeed I see that the order of the 
columns is correct. (The version I have now is
2016.04.27 10:18 MKIV beta  fmt: 2016.4.28 
and the previous one was version2016.04.22 09:10).

Somehow I did not notice the February change you mention in your message, and 
in any case my installation was probably not really up to date.

Best regards: OK
PS: I am sorry for having changed your first name, and I apologize for that… 


> On 28 Apr 2016, at 09:55, Mohammad Hossein Bateni  wrote:
> 
> Dear Otared,
> 
> Your example works perfectly fine for me using version: 2016.04.13 16:46.  
> Perhaps, you're using an older version of CONTEXT.  There was a patch in 
> February enabling this.  See the output of my run attached.
> 
> —Hossein
> 
> P.S.  My name is Mohammad *Hossein*, not Mohammad Reza :)
> 
> 
> 
> On Thu, Apr 28, 2016 at 12:41 AM, Otared Kavian  wrote:
> Hi Mohammad Reza,
> 
> I tried your example, but it seems to me that the way the columns are 
> presented when writing Right-to-Left is still incorrect. In the following 
> example one should have the column containing the lines « First » and « 
> Second » to the right of the column containing « Third » and « Fourth ».
> 
> I don’t know if there is already a way to tell ConTeXt to do it in the right 
> way, or Hans has to look into the righttoleft mechanism.
> The same issue appears in the table mechanism.
> 
> By the way, the option 
>   [direction=reverse]
> seems to have no effect at all in Right-to-Left environment.
> 
> %%% begin example-RtoL-reverse.tex
> \usemodule[simplefonts]
> \setmainfont[ALM Fixed][features=arabic,range=arabic]
> 
> \setupdirections[bidi=global,method=two]
> \setupalign[righttoleft]
> 
> \starttext
> آزمایش نوشتن از راست به چپ
> 
> \startitemize[columns,two][direction=reverse]
> \item First
> \item Second
> \item Third
> \item Fourth
> \stopitemize
> 
> آزمایش نوشتن از راست به چپ
> \startitemize[columns,two][direction=reverse]
> 
> \startitem
> یک
> \stopitem
> 
> \startitem
> دو
> \stopitem
> 
> \startitem
> سه
> \stopitem
> 
> 
> \startitem
> چهار
> \stopitem
> \stopitemize
> \stoptext
> %%% end example-RtoL-reverse.tex
> 
> Best regards: OK
> 
>> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni  wrote:
>> 
>> I actually figured out that one can use the following:
>> 
>> \startitemize[columns,two][direction=reverse]
>> \item first
>> \item second
>> \item third
>> \stopitemize
>> 
>> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni  
>> wrote:
>> Wolfgang,
>> 
>> Did you imply in the email below that a new key or something was added to 
>> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is it 
>> possible to do this in each \startitemize individually?
>> 
>> Thanks,
>> Hossein
>> 
>> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster 
>>  wrote:
>>> Bou Salim 21. Februar 2016 um 13:26
>>> I have posted  a question in tex stack exchange
>>> Customize right to left list in context
>>> 
>>> My aim is to obtain right to left  items arranged  in  multi-column, if I 
>>> use 
>>> \startitemize [s,columns,three] [margin=1em]   
>>> the result is three column where first column start from left side of page, 
>>> but I want it to start from right side of page.
>>> 
>>> I can use \startcolumns[direction=left]\startitemize \item First \item 
>>> Second \item Third \stopitemize \stopcolumns 
>>> but I think it look better if there is a key direction=left for the 
>>> \startitemize environment such as used in columns environment.
>> The underlying columns mechanism has a reverse option for the direction key. 
>> I sent a patch to the dev list which allows a direst setting of the 
>> direction value with the \startitemize command.
>> 
>> \starttext
>> 
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>> 
>> \blank[3*line]
>> 
>> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
>> 
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>> 
>> \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
>> ___
>> 
>> 
>> ___
>> 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

Re: [NTG-context] right to left direction for itemize columns

2016-04-28 Thread Mohammad Hossein Bateni
Dear Otared,

Your example works perfectly fine for me using version: 2016.04.13 16:46.
Perhaps, you're using an older version of CONTEXT.  There was a patch in
February enabling this.  See the output of my run attached.

—Hossein

P.S.  My name is Mohammad *Hossein*, not Mohammad Reza :)



On Thu, Apr 28, 2016 at 12:41 AM, Otared Kavian  wrote:

> Hi Mohammad Reza,
>
> I tried your example, but it seems to me that the way the columns are
> presented when writing Right-to-Left is still incorrect. In the following
> example one should have the column containing the lines « First » and «
> Second » to the right of the column containing « Third » and « Fourth ».
>
> I don’t know if there is already a way to tell ConTeXt to do it in the
> right way, or Hans has to look into the righttoleft mechanism.
> The same issue appears in the table mechanism.
>
> By the way, the option
> [direction=reverse]
> seems to have no effect at all in Right-to-Left environment.
>
> %%% begin example-RtoL-reverse.tex
> \usemodule[simplefonts]
> \setmainfont[ALM Fixed][features=arabic,range=arabic]
>
> \setupdirections[bidi=global,method=two]
> \setupalign[righttoleft]
>
> \starttext
> آزمایش نوشتن از راست به چپ
>
> \startitemize[columns,two][direction=reverse]
> \item First
> \item Second
> \item Third
> \item Fourth
> \stopitemize
>
> آزمایش نوشتن از راست به چپ
> \startitemize[columns,two][direction=reverse]
>
> \startitem
> یک
> \stopitem
>
> \startitem
> دو
> \stopitem
>
> \startitem
> سه
> \stopitem
>
>
> \startitem
> چهار
> \stopitem
> \stopitemize
> \stoptext
> %%% end example-RtoL-reverse.tex
>
> Best regards: OK
>
> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni 
> wrote:
>
> I actually figured out that one can use the following:
>
> \startitemize[columns,two][direction=reverse]
> \item first
> \item second
> \item third
> \stopitemize
>
> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni <
> bat...@gmail.com> wrote:
>
>> Wolfgang,
>>
>> Did you imply in the email below that a new key or something was added to
>> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is
>> it possible to do this in each \startitemize individually?
>>
>> Thanks,
>> Hossein
>>
>> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster <
>> schuster.wolfg...@gmail.com> wrote:
>>
>>> Bou Salim 
>>> 21. Februar 2016 um 13:26
>>> I have posted  a question in tex stack exchangeCustomize right to left
>>> list in context
>>> 
>>> My aim is to obtain right to left  items arranged  in  multi-column, if
>>> I use
>>> \startitemize [s,columns,three] [margin=1em]
>>> the result is three column where first column start from left side of
>>> page, but I want it to start from right side of page.
>>>
>>> I can use \startcolumns[direction=left]\startitemize \item First \item
>>> Second \item Third \stopitemize \stopcolumns
>>> but I think it look better if there is a key direction=left for the
>>> \startitemize environment such as used in columns environment.
>>>
>>> The underlying columns mechanism has a reverse option for the direction
>>> key. I sent a patch to the dev list which allows a direst setting of the
>>> direction value with the \startitemize command.
>>>
>>> \starttext
>>>
>>> \startitemize[columns,three]
>>> \dorecurse{9}{\item Entry \recurselevel}
>>> \stopitemize
>>>
>>> \blank[3*line]
>>>
>>> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
>>>
>>> \startitemize[columns,three]
>>> \dorecurse{9}{\item Entry \recurselevel}
>>> \stopitemize
>>>
>>> \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
>>>
>>> ___
>>>
>>
>>
>
> ___
> 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 /
> 

Re: [NTG-context] right to left direction for itemize columns

2016-04-27 Thread Otared Kavian
Hi Mohammad Reza,

I tried your example, but it seems to me that the way the columns are presented 
when writing Right-to-Left is still incorrect. In the following example one 
should have the column containing the lines « First » and « Second » to the 
right of the column containing « Third » and « Fourth ».

I don’t know if there is already a way to tell ConTeXt to do it in the right 
way, or Hans has to look into the righttoleft mechanism.
The same issue appears in the table mechanism.

By the way, the option 
[direction=reverse]
seems to have no effect at all in Right-to-Left environment.

%%% begin example-RtoL-reverse.tex
\usemodule[simplefonts]
\setmainfont[ALM Fixed][features=arabic,range=arabic]

\setupdirections[bidi=global,method=two]
\setupalign[righttoleft]

\starttext
آزمایش نوشتن از راست به چپ

\startitemize[columns,two][direction=reverse]
\item First
\item Second
\item Third
\item Fourth
\stopitemize

آزمایش نوشتن از راست به چپ
\startitemize[columns,two][direction=reverse]

\startitem
یک
\stopitem

\startitem
دو
\stopitem

\startitem
سه
\stopitem


\startitem
چهار
\stopitem
\stopitemize
\stoptext
%%% end example-RtoL-reverse.tex

Best regards: OK

> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni  wrote:
> 
> I actually figured out that one can use the following:
> 
> \startitemize[columns,two][direction=reverse]
> \item first
> \item second
> \item third
> \stopitemize
> 
> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni  > wrote:
> Wolfgang,
> 
> Did you imply in the email below that a new key or something was added to 
> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is it 
> possible to do this in each \startitemize individually?
> 
> Thanks,
> Hossein
> 
> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster 
> > wrote:
>> Bou Salim  21. Februar 2016 um 13:26
>> I have posted  a question in tex stack exchange
>> Customize right to left list in context 
>> 
>> My aim is to obtain right to left  items arranged  in  multi-column, if I 
>> use 
>> \startitemize [s,columns,three] [margin=1em]   
>> the result is three column where first column start from left side of page, 
>> but I want it to start from right side of page.
>> 
>> I can use \startcolumns[direction=left]\startitemize \item First \item 
>> Second \item Third \stopitemize \stopcolumns 
>> but I think it look better if there is a key direction=left for the 
>> \startitemize environment such as used in columns environment.
> The underlying columns mechanism has a reverse option for the direction key. 
> I sent a patch to the dev list which allows a direst setting of the direction 
> value with the \startitemize command.
> 
> \starttext
> 
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
> 
> \blank[3*line]
> 
> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
> 
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
> 
> \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 
> ___
> 
> 
> ___
> 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] right to left direction for itemize columns

2016-04-27 Thread Mohammad Hossein Bateni
I actually figured out that one can use the following:

\startitemize[columns,two][direction=reverse]
\item first
\item second
\item third
\stopitemize

On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni 
wrote:

> Wolfgang,
>
> Did you imply in the email below that a new key or something was added to
> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is
> it possible to do this in each \startitemize individually?
>
> Thanks,
> Hossein
>
> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster <
> schuster.wolfg...@gmail.com> wrote:
>
>> Bou Salim 
>> 21. Februar 2016 um 13:26
>> I have posted  a question in tex stack exchangeCustomize right to left
>> list in context
>> 
>> My aim is to obtain right to left  items arranged  in  multi-column, if I
>> use
>> \startitemize [s,columns,three] [margin=1em]
>> the result is three column where first column start from left side of
>> page, but I want it to start from right side of page.
>>
>> I can use \startcolumns[direction=left]\startitemize \item First \item
>> Second \item Third \stopitemize \stopcolumns
>> but I think it look better if there is a key direction=left for the
>> \startitemize environment such as used in columns environment.
>>
>> The underlying columns mechanism has a reverse option for the direction
>> key. I sent a patch to the dev list which allows a direst setting of the
>> direction value with the \startitemize command.
>>
>> \starttext
>>
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>>
>> \blank[3*line]
>>
>> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
>>
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>>
>> \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
>>
>> ___
>>
>
>
___
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] right to left direction for itemize columns

2016-04-27 Thread Mohammad Hossein Bateni
Wolfgang,

Did you imply in the email below that a new key or something was added to
\startitemize setups?  I mean, using \setupmixedcolumns works fine but is
it possible to do this in each \startitemize individually?

Thanks,
Hossein

On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Bou Salim 
> 21. Februar 2016 um 13:26
> I have posted  a question in tex stack exchangeCustomize right to left
> list in context
> 
> My aim is to obtain right to left  items arranged  in  multi-column, if I
> use
> \startitemize [s,columns,three] [margin=1em]
> the result is three column where first column start from left side of
> page, but I want it to start from right side of page.
>
> I can use \startcolumns[direction=left]\startitemize \item First \item
> Second \item Third \stopitemize \stopcolumns
> but I think it look better if there is a key direction=left for the
> \startitemize environment such as used in columns environment.
>
> The underlying columns mechanism has a reverse option for the direction
> key. I sent a patch to the dev list which allows a direst setting of the
> direction value with the \startitemize command.
>
> \starttext
>
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
>
> \blank[3*line]
>
> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
>
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
>
> \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
>
> ___
>
___
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] right to left direction for itemize columns

2016-02-23 Thread Hans Hagen

On 2/23/2016 3:01 PM, Mohammad Hossein Bateni wrote:

Hans, will this work right-to-left as well?


afaiks yes


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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] right to left direction for itemize columns

2016-02-23 Thread Mohammad Hossein Bateni
Hans, will this work right-to-left as well?

On Tue, Feb 23, 2016 at 6:49 AM, Jeong Dal  wrote:

> Dear  Hans,
>
> It is nice to have this feature in the next beta.
> It will help us to make multiple-choice problems.
>
> Thank you.
>
> Best regards,
>
> Dalyoung
>
> >
> > \starttext
> >
> > \startitemize[horizontal,a,three]
> > \startitem first \stopitem \startitem second \stopitem
> > \startitem third \stopitem \startitem fourth \stopitem
> > \startitem fifth \stopitem
> > \stopitemize
> >
> > \startitemize[horizontal,n,four]
> > \startitem first \stopitem \startitem second \stopitem
> > \startitem third \stopitem \startitem fourth \stopitem
> > \startitem fifth \stopitem \startitem sixth \stopitem
> > \startitem seventh \stopitem
> > \stopitemize
> >
> > \stoptext
>
> ___
> 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] right to left direction for itemize columns

2016-02-23 Thread Jeong Dal
Dear  Hans,

It is nice to have this feature in the next beta.
It will help us to make multiple-choice problems.

Thank you.

Best regards,

Dalyoung

> 
> \starttext
> 
> \startitemize[horizontal,a,three]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem
> \stopitemize
> 
> \startitemize[horizontal,n,four]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem \startitem sixth \stopitem
> \startitem seventh \stopitem
> \stopitemize
> 
> \stoptext
___
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] right to left direction for itemize columns

2016-02-23 Thread Hans Hagen

On 2/23/2016 12:48 AM, Jeong Dal wrote:

Dear Hans,


Is there any simpler way to achieve this?


how is that supposed to work with multi-line items ?



I am sorry, I should explain more carefully.

This type of itemization usually needed to list the short answers of the
multiple-choice questions.
Some problems are not well-composed, but you can see an example at the
end of the following page.

http://dugod1.tistory.com/archive/20120826
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dl2J=153


the next beta will support this (but only for simple items that fit in 
the available space)


\starttext

\startitemize[horizontal,a,three]
\startitem first \stopitem \startitem second \stopitem
\startitem third \stopitem \startitem fourth \stopitem
\startitem fifth \stopitem
\stopitemize

\startitemize[horizontal,n,four]
\startitem first \stopitem \startitem second \stopitem
\startitem third \stopitem \startitem fourth \stopitem
\startitem fifth \stopitem \startitem sixth \stopitem
\startitem seventh \stopitem
\stopitemize

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Hans,

>> Is there any simpler way to achieve this?
> 
> how is that supposed to work with multi-line items ?
> 

I am sorry, I should explain more carefully.

This type of itemization usually needed to list the short answers of the 
multiple-choice questions.
Some problems are not well-composed, but you can see an example at the end of 
the following page. 

http://dugod1.tistory.com/archive/20120826 
 
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dl2J=153 


Thank you.
Best regards,

Dalyoung

___
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] right to left direction for itemize columns

2016-02-22 Thread Hans Hagen

On 2/22/2016 3:42 PM, Jeong Dal wrote:

Dear Wolfgang,

  I’d like to ask one thing related with the itemize columns.

In my country, the items are listed from left to right first and then go down 
to the next line.
For example, to get the following output,

1. first2. second   3. third
4. fourth   5. fifth6. sixth

I use the code as below.

\starttext

\startitemize[n, columns,three, ]
\item first
\item second
\item third
\stopitemize

\startitemize[continue]
\item fourth
\item fifth
\item sixth
\stopitemize

\stoptext

Is there any simpler way to achieve this?


how is that supposed to work with multi-line items ?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Wolfgang,

 I’d like to ask one thing related with the itemize columns.

In my country, the items are listed from left to right first and then go down 
to the next line.
For example, to get the following output, 

1. first2. second   3. third
4. fourth   5. fifth6. sixth

I use the code as below.

\starttext

\startitemize[n, columns,three, ]
\item first
\item second
\item third
\stopitemize

\startitemize[continue]
\item fourth
\item fifth
\item sixth
\stopitemize

\stoptext

Is there any simpler way to achieve this?

Thank you.

Best regards,

Dalyoung


___
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] right to left direction for itemize columns

2016-02-22 Thread Wolfgang Schuster

Bou Salim 
21. Februar 2016 um 13:26
I have posted  a question in tex stack exchange


  Customize right to left list in context
  


My aim is to obtain right to left  items arranged  in  multi-column, 
if I use

\startitemize[s,columns,three][margin=1em]
the result is three column where first column start from left side of 
page, but I want it to start from right side of page.


I can use \startcolumns[direction=left]\startitemize \item First \item 
Second \item Third \stopitemize \stopcolumns
but I think it look better if there is a key direction=left for 
the\startitemize environment such as used in columns environment.
The underlying columns mechanism has a reverse option for the direction 
key. I sent a patch to the dev list which allows a direst setting of the 
direction value with the \startitemize command.


\starttext

\startitemize[columns,three]
\dorecurse{9}{\item Entry \recurselevel}
\stopitemize

\blank[3*line]

\setupmixedcolumns[itemgroupcolumns][direction=reverse]

\startitemize[columns,three]
\dorecurse{9}{\item Entry \recurselevel}
\stopitemize

\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
___

[NTG-context] right to left direction for itemize columns

2016-02-22 Thread Bou Salim
I have posted  a question in tex stack exchangeCustomize right to left list
in context

My aim is to obtain right to left  items arranged  in  multi-column, if I
use
\startitemize [s,columns,three] [margin=1em]
the result is three column where first column start from left side of page,
but I want it to start from right side of page.

I can use \startcolumns[direction=left]\startitemize \item First \item
Second \item Third \stopitemize \stopcolumns
but I think it look better if there is a key direction=left for the
\startitemize environment such as used in columns environment.
___
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
___