ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* numbered subitems
@ 2007-09-30 14:59 Alan Bowen
  2007-09-30 16:11 ` Wolfgang Schuster
  2007-09-30 16:28 ` Aditya Mahajan
  0 siblings, 2 replies; 13+ messages in thread
From: Alan Bowen @ 2007-09-30 14:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I need to produce an lengthy itemization of the form:
1.AAAA
	1.1 aaaa
	1.2 bbbb
2.BBBB
	2.1 cccc

I can get:
1.AAAA
	1 aaaa
	2 bbbb
2.BBBB
	1 cccc
easily enough, but how can I get the main division number to repeat  
in the subitem numeration?

Alan


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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Numbered subitems
@ 2007-10-23 16:02 WN
  2007-10-24 13:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: WN @ 2007-10-23 16:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I want to make a numbered list as follows

*Artikel 1. First artikel

*1.1. Text for item 1.1.
1.2. Text for item 1.2

*Artikel 2. Second artikel*

2.1.  Text for item 2.1
2.2.  Text for item 2.2

etc.

I am trying to accomplish this with \setupitemgroup and \defineitemgroup as
follows, but the second level start also with Artikel and is indented.
I looked at the some of the emails relating to numbered subitems
but could not find a working example.

Thanks for any help
Wim


% test code
\defineitemgroup[mylist][levels=2]
\setupitemgroup[mylist][1][atmargin][n,repeat]
\setupitemgroup[mylist][1][width=5em,stopper=.,headstyle=bold,left=Artikel ]
\setupitemgroup[mylist][2][atmargin][n,repeat]
\setupitemgroup[mylist][2][width=2em,stopper=.,left=]

\startext
\startmylist
\head First artikel

\startmylist
\item Text for item 1.1.
\item Text for item 1.1.
\stopmylist

\head Second artikel

\startmylist
\item Text for item 2.1
\item Text for item 2.2
\stopmylist

\stopmylist
\stoptext

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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2007-10-24 15:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-30 14:59 numbered subitems Alan Bowen
2007-09-30 16:11 ` Wolfgang Schuster
2007-09-30 20:19   ` Alan Bowen
2007-09-30 16:28 ` Aditya Mahajan
2007-09-30 20:19   ` Alan Bowen
2007-09-30 21:29     ` Aditya Mahajan
2007-10-01  9:54       ` Henning Hraban Ramm
2007-10-01 13:16       ` Alan Bowen
2007-10-02  0:11         ` Aditya Mahajan
     [not found]           ` <4DDF8044-6E42-40AB-94EF-3FCF49ED1F08@princeton.edu>
     [not found]             ` <alpine.WNT.0.9999.0710030926370.1620@nqvgln>
2007-10-04 12:55               ` Alan Bowen
2007-10-23 16:02 Numbered subitems WN
2007-10-24 13:25 ` Wolfgang Schuster
2007-10-24 15:58   ` WN

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