From: Xan <dxpublica@telefonica.net>
To: Wolfgang Schuster <wolfgang.schuster@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [right=),stopper=] for all \startitemize[a]
Date: Mon, 4 Nov 2013 15:41:19 +0100 [thread overview]
Message-ID: <20131104154119.42f73deff4ba23d4730b754e@telefonica.net> (raw)
In-Reply-To: <DB8B79E8-2BD0-41AB-BA41-51D7E87B0E72@gmail.com>
Thanks a lot, Aditya and Wolfgang, for these suggestions.
Thanks,
Xan.
On Sun, 3 Nov 2013 20:39:23 +0100
Wolfgang Schuster <wolfgang.schuster@gmail.com> ha escrit:
>
> 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
___________________________________________________________________________________
prev parent reply other threads:[~2013-11-04 14:41 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
2013-11-04 14:41 ` Xan [this message]
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=20131104154119.42f73deff4ba23d4730b754e@telefonica.net \
--to=dxpublica@telefonica.net \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster@gmail.com \
/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).