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>
Subject: Re: Cumulating Numbered Lists
Date: Thu, 6 Dec 2012 07:07:56 +0100	[thread overview]
Message-ID: <6FA87D8B-2CFC-45F9-A3A0-BD5E426A0833@gmail.com> (raw)
In-Reply-To: <F05CDE37-DC1B-49DE-B836-0B9AD27BE875@stien.de>


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
___________________________________________________________________________________


  reply	other threads:[~2012-12-06  6:07 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 [this message]
2012-12-07 11:09   ` Sietse Brouwer
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=6FA87D8B-2CFC-45F9-A3A0-BD5E426A0833@gmail.com \
    --to=wolfgang.schuster@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).