ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Xan <dxpublica@telefonica.net>
Subject: Re: [right=),stopper=] for all \startitemize[a]
Date: Sun, 3 Nov 2013 20:39:23 +0100	[thread overview]
Message-ID: <DB8B79E8-2BD0-41AB-BA41-51D7E87B0E72@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1311031421400.10913@nqv-guvaxcnq>


Am 03.11.2013 um 20:22 schrieb Aditya Mahajan <adityam@umich.edu>:

> On Sun, 3 Nov 2013, Wolfgang Schuster wrote:
> 
>> 
>> Am 03.11.2013 um 19:04 schrieb Xan <dxpublica@telefonica.net>:
>> 
>>> Hi,
>>> 
>>> Is possible to set \setupitemize *only* applying for \startitemize[a] with have [right=),stopper=]?
>>> 
>>> I did not find in wiki. Only for levels, not for symbols type.
>> 
>> No, this is not supported.
> 
> One option is to use a dedicated itemgroup:
> 
> \defineitemgroup[parenlist][symbol=a, right=), stopper=]
> \starttext
> \startitemize[n]
>  \item One
>  \item Two
>    \startparenlist
>    \item One
>    \item Two
>    \stopparenlist
>  \item Three
>    \startitemize[n]
>     \item One
>     \item Two
>   \stopitemize
> \stopitemize
> \stoptext

Another trick is to use custom conversion which contain the delimiters and disable the stopper.

\defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l),…]
\defineconversion[xan:n][1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,…]

\starttext

\setupitemize[each][stopper=]

\startitemize[xan:a]
\dorecurse{10}{\startitem Item \recurselevel \stopitem}
\stopitemize

\startitemize[xan:n]
\dorecurse{10}{\startitem Item \recurselevel \stopitem}
\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
___________________________________________________________________________________


  reply	other threads:[~2013-11-03 19:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-03 18:04 Xan
2013-11-03 19:09 ` Wolfgang Schuster
2013-11-03 19:22   ` Aditya Mahajan
2013-11-03 19:39     ` Wolfgang Schuster [this message]
2013-11-04 14:41       ` Xan

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=DB8B79E8-2BD0-41AB-BA41-51D7E87B0E72@gmail.com \
    --to=wolfgang.schuster@gmail.com \
    --cc=dxpublica@telefonica.net \
    --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).