ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: right to left direction for itemize columns
Date: Thu, 28 Apr 2016 03:55:26 -0400	[thread overview]
Message-ID: <CAMHZ1daSzjaHr3HDZGc2E2qrAVO-LDBubcntBUWCYeeoqj+xHA@mail.gmail.com> (raw)
In-Reply-To: <FC59E725-BA1D-4316-A154-A0F6C409FBF7@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 5535 bytes --]

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 <otared@gmail.com> 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 <bateni@gmail.com>
> 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 <
> bateni@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.wolfgang@gmail.com> wrote:
>>
>>> Bou Salim <salimcollo7@gmail.com>
>>> 21. Februar 2016 um 13:26
>>> I have posted  a question in tex stack exchangeCustomize right to left
>>> list in context
>>> <http://tex.stackexchange.com/questions/294627/customize-right-to-left-list-in-context/294631?noredirect=1#comment713701_294631>
>>> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 9646 bytes --]

[-- Attachment #2: test-col.pdf --]
[-- Type: application/pdf, Size: 9635 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-04-28  7:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21 12:26 Bou Salim
2016-02-22  9:43 ` Wolfgang Schuster
2016-04-27 14:06   ` Mohammad Hossein Bateni
2016-04-27 21:22     ` Mohammad Hossein Bateni
2016-04-28  4:41       ` Otared Kavian
2016-04-28  7:55         ` Mohammad Hossein Bateni [this message]
2016-04-28 14:10           ` Otared Kavian
2016-04-28 14:33             ` Mohammad Hossein Bateni
     [not found] <mailman.575.1456134209.2231.ntg-context@ntg.nl>
2016-02-22 14:42 ` Jeong Dal
2016-02-22 15:19   ` Hans Hagen
     [not found] <mailman.583.1456159027.2231.ntg-context@ntg.nl>
2016-02-22 23:48 ` Jeong Dal
2016-02-23  9:56   ` Hans Hagen
     [not found] <mailman.1.1456225201.14598.ntg-context@ntg.nl>
2016-02-23 11:49 ` Jeong Dal
2016-02-23 14:01   ` Mohammad Hossein Bateni
2016-02-23 14:41     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMHZ1daSzjaHr3HDZGc2E2qrAVO-LDBubcntBUWCYeeoqj+xHA@mail.gmail.com \
    --to=bateni@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).