ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Cumulating numbered lists
@ 2013-04-18 17:57 Alan Bowen
  2013-04-18 18:07 ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Alan Bowen @ 2013-04-18 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I need a list structure that can be numbered in different ways as the
occasion warrants.

In this case, I need:
1. text
2. text
    2.1. text
     2.2. text
          Text
          Text
             A. text
             B. text

The problem seem to be in turning off the cumulation of numbers in the last
entries (fourth level).

\defineitemgroup[MyList]
\setupitemgroup[MyList][1][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.},margin=3pc]

\setupitemgroup[MyList][2][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]

\setupitemgroup[MyList][3][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]

\setupitemgroup[MyList][4][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]

\starttext

\startMyList[n,repeat]
  \item First level text
  \item First level text
  \startMyList[n,repeat]
  \item Second level text
  \item Second level text
\startMyList[symbol={}]
  \item Third level text
  \item Third level text
\startMyList[A]                        %<=====
 % \startMyList[A,prefix=no]          %<=====
  \item Fourth level text
  \item Fourth level text
\stopitemize
\stopitemize
\stopitemize
\stopitemize


\stoptext

With \startMyList[A], I get
       2.2.2.A. Fourth level text
       2.2.2.B. Fourth level text
With \startMyList[A,prefix=no], I get

      ▷ Fourth level text
on each line.

Any suggestions or pointers will be gratefully received.

Alan

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

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Cumulating Numbered Lists
@ 2012-12-06  5:55 Malte Stien
  2012-12-06  6:07 ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Malte Stien @ 2012-12-06  5:55 UTC (permalink / raw)
  To: ntg-context

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?

Thank you,
Malte.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-04-26 12:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2012-12-06  5:55 Cumulating Numbered Lists Malte Stien
2012-12-06  6:07 ` Wolfgang Schuster
2012-12-07 11:09   ` Sietse Brouwer
2012-12-07 12:54     ` Wolfgang Schuster
2012-12-07 16:25       ` Sietse Brouwer

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).