ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

* Re: Cumulating Numbered Lists
  2012-12-06  5:55 Cumulating Numbered Lists Malte Stien
@ 2012-12-06  6:07 ` Wolfgang Schuster
  2012-12-07 11:09   ` Sietse Brouwer
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2012-12-06  6:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Cumulating Numbered Lists
  2012-12-06  6:07 ` Wolfgang Schuster
@ 2012-12-07 11:09   ` Sietse Brouwer
  2012-12-07 12:54     ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Sietse Brouwer @ 2012-12-07 11:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: Cumulating Numbered Lists
  2012-12-07 11:09   ` Sietse Brouwer
@ 2012-12-07 12:54     ` Wolfgang Schuster
  2012-12-07 16:25       ` Sietse Brouwer
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2012-12-07 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 07.12.2012 um 12:09 schrieb Sietse Brouwer <sbbrouwer@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?


Add these two lines to your itemize setups:

\defineseparatorset[none][][]

\setupcounter[itemgroup:itemize][numberseparatorset=none]

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
___________________________________________________________________________________


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

* Re: Cumulating Numbered Lists
  2012-12-07 12:54     ` Wolfgang Schuster
@ 2012-12-07 16:25       ` Sietse Brouwer
  0 siblings, 0 replies; 15+ messages in thread
From: Sietse Brouwer @ 2012-12-07 16:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Add these two lines to your itemize setups:
>
> \defineseparatorset[none][][]
>
> \setupcounter[itemgroup:itemize][numberseparatorset=none]

Thanks; I've added that (and the repeat key) to
http://wiki.contextgarden.net/Enumerations#Customization_details_and_examples
--Sietse
___________________________________________________________________________________
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

* Re: Cumulating numbered lists
  2013-04-23 21:23               ` Hans Hagen
@ 2013-04-26 12:46                 ` Alan Bowen
  0 siblings, 0 replies; 15+ messages in thread
From: Alan Bowen @ 2013-04-26 12:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Sorry for the delay in responding—I lost a day in spring busywork.

Anyway, warm thanks to Aditya for the workaround and to Hans for the new
key (it works perfectly—and the name makes sense to me). I am grateful to
you both.

Alan


On Tue, Apr 23, 2013 at 5:23 PM, Hans Hagen <pragma@wxs.nl> wrote:

> On 4/23/2013 10:31 PM, Aditya Mahajan wrote:
>
>> On Tue, 23 Apr 2013, Alan Bowen wrote:
>>
>>  OK. Thanks for the explanation, Wolfgang. I will await the day when the
>>> repeat key can be disabled.
>>>
>>
> the day i do an upload
>
>
>  If you are not interested in re-enabling the repeat key in a nested
>> itemize, then the attached example may work (not tested beyond the
>> minimal example)
>>
>
> added .. (but with \v!norepeat ... not sure about the keyword, but it's
> hard to find a better one)
>
> Hans
>
> --
>
> ------------------------------**------------------------------**-----
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> ------------------------------**------------------------------**-----
>
> ______________________________**______________________________**
> _______________________
> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki     : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3240 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

* Re: Cumulating numbered lists
  2013-04-23 20:31             ` Aditya Mahajan
@ 2013-04-23 21:23               ` Hans Hagen
  2013-04-26 12:46                 ` Alan Bowen
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2013-04-23 21:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Aditya Mahajan

On 4/23/2013 10:31 PM, Aditya Mahajan wrote:
> On Tue, 23 Apr 2013, Alan Bowen wrote:
>
>> OK. Thanks for the explanation, Wolfgang. I will await the day when the
>> repeat key can be disabled.

the day i do an upload

> If you are not interested in re-enabling the repeat key in a nested
> itemize, then the attached example may work (not tested beyond the
> minimal example)

added .. (but with \v!norepeat ... not sure about the keyword, but it's 
hard to find a better one)

Hans

-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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

* Re: Cumulating numbered lists
  2013-04-23 20:12           ` Alan Bowen
@ 2013-04-23 20:31             ` Aditya Mahajan
  2013-04-23 21:23               ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Aditya Mahajan @ 2013-04-23 20:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 307 bytes --]

On Tue, 23 Apr 2013, Alan Bowen wrote:

> OK. Thanks for the explanation, Wolfgang. I will await the day when the
> repeat key can be disabled.

If you are not interested in re-enabling the repeat key in a nested 
itemize, then the attached example may work (not tested beyond the minimal 
example)


Aditya

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: TEXT/x-tex; name=test.tex, Size: 708 bytes --]

\unprotect
\setvalue{\??itemgroupkeyword\v!no\v!repeat   }{\setfalse\c_strc_itemgroups_repeat}

\def\strc_itemgroups_check_for_repeated
  {\ifconditional\c_strc_itemgroups_repeat
      \ifx\m_strc_itemgroups_repeat_start\empty
        \edef\m_strc_itemgroups_repeat_start{\currentitemlevel}%
      \fi
   \else
      \let\m_strc_itemgroups_repeat_start\empty
   \fi}
\protect

\setupitemgroup[itemize][broad,joinedup,packed,autointro]
\starttext
\setupitemize[itemalign=flushright]
\startitemize[n,repeat]
  \item level a
    \startitemize[n,norepeat]
      \item level b
        \startitemize[A]
          \item level c
        \stopitemize
    \stopitemize
\stopitemize
\stoptext

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

* Re: Cumulating numbered lists
  2013-04-23 10:20         ` Wolfgang Schuster
@ 2013-04-23 20:12           ` Alan Bowen
  2013-04-23 20:31             ` Aditya Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Alan Bowen @ 2013-04-23 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

OK. Thanks for the explanation, Wolfgang. I will await the day when the
repeat key can be disabled.

Alan


On Tue, Apr 23, 2013 at 6:20 AM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:

>
> Am 22.04.2013 um 23:59 schrieb Alan Bowen <bowenalan03@gmail.com>:
>
> > Another try:
> >
> > Can someone explain why
> >
> > \setupitemgroup[itemize][broad,joinedup,packed,autointro]
> > \setupitemize[itemalign=flushright]
> > \startitemize[n,repeat]
> > \item level a
> >       \startitemize[n,repeat]
> >       \item level b
> >               \startitemize[A][prefix=no]
> >               \item level c
> >               \stopitemize
> >       \stopitemize
> > \stopitemize
>
> The repeat key enables a internal switch which isn’t disables at the next
> level nor this there
> any key to disable it yet. Your attempt with the prefix key can’t work
> because prefixes are
> the values of the current chapter, section etc.
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2399 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

* Re: Cumulating numbered lists
  2013-04-22 21:59       ` Alan Bowen
@ 2013-04-23 10:20         ` Wolfgang Schuster
  2013-04-23 20:12           ` Alan Bowen
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2013-04-23 10:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.04.2013 um 23:59 schrieb Alan Bowen <bowenalan03@gmail.com>:

> Another try:
> 
> Can someone explain why
> 
> \setupitemgroup[itemize][broad,joinedup,packed,autointro]
> \setupitemize[itemalign=flushright]
> \startitemize[n,repeat]
> \item level a
> 	\startitemize[n,repeat]
> 	\item level b
> 		\startitemize[A][prefix=no]
> 		\item level c
> 		\stopitemize
> 	\stopitemize
> \stopitemize

The repeat key enables a internal switch which isn’t disables at the next level nor this there
any key to disable it yet. Your attempt with the prefix key can’t work because prefixes are
the values of the current chapter, section etc.

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
___________________________________________________________________________________


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

* Re: Cumulating numbered lists
  2013-04-19 11:42     ` Alan Bowen
@ 2013-04-22 21:59       ` Alan Bowen
  2013-04-23 10:20         ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Alan Bowen @ 2013-04-22 21:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Another try:

Can someone explain why

\setupitemgroup[itemize][broad,joinedup,packed,autointro]
\setupitemize[itemalign=flushright]
\startitemize[n,repeat]
\item level a
\startitemize[n,repeat]
\item level b
\startitemize[A][prefix=no]
\item level c
\stopitemize
\stopitemize
\stopitemize

yields:

1. level a
    1.1 level b
        1.1.A. level c

rather than

1. level a
    1.1 level b
        A. level c
?

Alan


On Fri, Apr 19, 2013 at 7:42 AM, Alan Bowen <bowenalan03@gmail.com> wrote:

> In the simplified example,
>
> \setupitemgroup[itemize][broad]
> \setupitemize[itemalign=flushright]
> \startitemize[n,repeat]
> \item level a
> \item level a
>  \startitemize[n,repeat]
> \item level b
> \item level b
>  \startitemize[A][prefix=no]
> \item level c
> \item level c
>  \stopitemize
> \stopitemize
> \stopitemize
>
> “prefix=no” does not work.
>
> I am also puzzled that “repeat” must be entered at the higher levels if it
> effectively means “repeat higher-level number at lower levels, to produce
> e.g. 1.a.4” (quoting the wiki).
>
> Alan
>
>
>
> On Thu, Apr 18, 2013 at 2:43 PM, Alan Bowen <bowenalan03@gmail.com> wrote:
>
>> Hi, Wolfgang—
>>
>> Thanks for this—I will be more careful in keeping the two apart. In this
>> instance, however, when I make the change, the problem persists.
>>
>> I am using ConTeXt  ver: 2013.04.17 18:36 MKIV beta  fmt: 2013.4.17  int:
>> english/english
>>
>> Alan
>>
>>
>> On Thu, Apr 18, 2013 at 2:07 PM, Wolfgang Schuster <
>> schuster.wolfgang@gmail.com> wrote:
>>
>>>
>>> Am 18.04.2013 um 19:57 schrieb Alan Bowen <bowenalan03@gmail.com>:
>>>
>>> > 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
>>>
>>> You can’t put keywords and assignments in the same argument. You need
>>> two arguments
>>> where one holds the keywords and the other the assignments:
>>>
>>>   \startMyList[A][prefix=no]
>>>
>>> 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
>>>
>>> ___________________________________________________________________________________
>>>
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 8539 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

* Re: Cumulating numbered lists
  2013-04-18 18:43   ` Alan Bowen
@ 2013-04-19 11:42     ` Alan Bowen
  2013-04-22 21:59       ` Alan Bowen
  0 siblings, 1 reply; 15+ messages in thread
From: Alan Bowen @ 2013-04-19 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

In the simplified example,

\setupitemgroup[itemize][broad]
\setupitemize[itemalign=flushright]
\startitemize[n,repeat]
\item level a
\item level a
\startitemize[n,repeat]
\item level b
\item level b
\startitemize[A][prefix=no]
\item level c
\item level c
\stopitemize
\stopitemize
\stopitemize

“prefix=no” does not work.

I am also puzzled that “repeat” must be entered at the higher levels if it
effectively means “repeat higher-level number at lower levels, to produce
e.g. 1.a.4” (quoting the wiki).

Alan



On Thu, Apr 18, 2013 at 2:43 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> Hi, Wolfgang—
>
> Thanks for this—I will be more careful in keeping the two apart. In this
> instance, however, when I make the change, the problem persists.
>
> I am using ConTeXt  ver: 2013.04.17 18:36 MKIV beta  fmt: 2013.4.17  int:
> english/english
>
> Alan
>
>
> On Thu, Apr 18, 2013 at 2:07 PM, Wolfgang Schuster <
> schuster.wolfgang@gmail.com> wrote:
>
>>
>> Am 18.04.2013 um 19:57 schrieb Alan Bowen <bowenalan03@gmail.com>:
>>
>> > 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
>>
>> You can’t put keywords and assignments in the same argument. You need two
>> arguments
>> where one holds the keywords and the other the assignments:
>>
>>   \startMyList[A][prefix=no]
>>
>> 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
>>
>> ___________________________________________________________________________________
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 7075 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

* Re: Cumulating numbered lists
  2013-04-18 18:07 ` Wolfgang Schuster
@ 2013-04-18 18:43   ` Alan Bowen
  2013-04-19 11:42     ` Alan Bowen
  0 siblings, 1 reply; 15+ messages in thread
From: Alan Bowen @ 2013-04-18 18:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi, Wolfgang—

Thanks for this—I will be more careful in keeping the two apart. In this
instance, however, when I make the change, the problem persists.

I am using ConTeXt  ver: 2013.04.17 18:36 MKIV beta  fmt: 2013.4.17  int:
english/english

Alan


On Thu, Apr 18, 2013 at 2:07 PM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:

>
> Am 18.04.2013 um 19:57 schrieb Alan Bowen <bowenalan03@gmail.com>:
>
> > 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
>
> You can’t put keywords and assignments in the same argument. You need two
> arguments
> where one holds the keywords and the other the assignments:
>
>   \startMyList[A][prefix=no]
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 4692 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

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


Am 18.04.2013 um 19:57 schrieb Alan Bowen <bowenalan03@gmail.com>:

> 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

You can’t put keywords and assignments in the same argument. You need two arguments
where one holds the keywords and the other the assignments:

  \startMyList[A][prefix=no]

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
___________________________________________________________________________________


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

* 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

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

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