From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Cumulating Numbered Lists
Date: Fri, 7 Dec 2012 12:09:54 +0100 [thread overview]
Message-ID: <CAF=dkzxLjWRUKi8Sd6YM7=vgGjNiOA4CJuVEnr4Vm6AqTTrLZA@mail.gmail.com> (raw)
In-Reply-To: <6FA87D8B-2CFC-45F9-A3A0-BD5E426A0833@gmail.com>
I tried adapting this example to make the item numbers display as
'1a1.' instead of '1.a.1.'. Didn't work: both right= and stopper= seem
to affect what happens after all the number segments are placed. I
couldn't find any key ('punctuation'?) which affects what comes
between numbers, so that you can produce e.g. '1.', '1:a.', and
'1:a:1.'. Or indeed '1a1'. Is there such an option?
--Sietse
\setupitemgroup[itemize][1][n,repeat][width=1em,right=!,stopper=?]
\setupitemgroup[itemize][2][a,repeat][width=2em,right=X,stopper=Y]
\setupitemgroup[itemize][3][n] [width=3em,right=>,stopper=<]
\startitemize
\item ... % 1
\startitemize
\item ... % 1.a
\startitemize
\item ... % 1.a.1
\stopitemize
\item ... % 1.b
\startitemize
\item ... % 1.b.1
\item ... % 1.b.2
\stopitemize
\stopitemize
\stopitemize
On Thu, Dec 6, 2012 at 7:07 AM, Wolfgang Schuster
<wolfgang.schuster@gmail.com> wrote:
>
> Am 06.12.2012 um 06:55 schrieb Malte Stien <malte@stien.de>:
>
>> Hi all,
>>
>> I can easily \setupitemgroup to achieve the following:
>>
>> 1. ...
>> a. ...
>> 1. ...
>> b. ...
>> 1. ...
>> 2. ...
>> 2. ...
>> a. ...
>> 1. ...
>>
>> …but I need the numbers/letters to cumulate as follows:
>>
>> 1. ...
>> 1a. ...
>> 1a1. ...
>> 1b. ...
>> 1b1. ...
>> 1b2. ...
>> 2. ...
>> 2a. ...
>> 2a1. ...
>>
>> Can that be done?
>
>
> Use the “repeat” keyword.
>
> \setupitemgroup[itemize][1][n,repeat][width=1em]
> \setupitemgroup[itemize][2][a,repeat][width=2em]
> \setupitemgroup[itemize][3][n] [width=3em]
>
> \starttext
>
> \startitemize
> \item …
> \startitemize
> \item …
> \startitemize
> \item …
> \stopitemize
> \item …
> \startitemize
> \item …
> \item …
> \stopitemize
> \stopitemize
> \item …
> \startitemize
> \item …
> \startitemize
> \item …
> \stopitemize
> \stopitemize
> \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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-07 11:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 5:55 Malte Stien
2012-12-06 6:07 ` Wolfgang Schuster
2012-12-07 11:09 ` Sietse Brouwer [this message]
2012-12-07 12:54 ` Wolfgang Schuster
2012-12-07 16:25 ` Sietse Brouwer
2013-04-18 17:57 Cumulating numbered lists Alan Bowen
2013-04-18 18:07 ` Wolfgang Schuster
2013-04-18 18:43 ` Alan Bowen
2013-04-19 11:42 ` Alan Bowen
2013-04-22 21:59 ` Alan Bowen
2013-04-23 10:20 ` Wolfgang Schuster
2013-04-23 20:12 ` Alan Bowen
2013-04-23 20:31 ` Aditya Mahajan
2013-04-23 21:23 ` Hans Hagen
2013-04-26 12:46 ` Alan Bowen
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='CAF=dkzxLjWRUKi8Sd6YM7=vgGjNiOA4CJuVEnr4Vm6AqTTrLZA@mail.gmail.com' \
--to=sbbrouwer@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).