From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: numbered subitems
Date: Sun, 30 Sep 2007 18:11:43 +0200 [thread overview]
Message-ID: <115224fb0709300911m37bb63a7oe649b8a5cff7632d@mail.gmail.com> (raw)
In-Reply-To: <C24D5516-C08B-4DF3-BE2C-2E96CB12AA1B@princeton.edu>
2007/9/30, Alan Bowen <acbowen@princeton.edu>:
> 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
\def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
\defineconversion[firstlevelnumber][\firstlevelnumber]
\def\secondlevelnumber#1{\thefirstlevelnumber.#1}
\defineconversion[secondlevelnumber][\secondlevelnumber]
\starttext
\startitemize[firstlevelnumber]
\item AAAA
\startitemize[secondlevelnumber]
\item aaaa
\item bbbb
\stopitemize
\item BBBB
\startitemize[secondlevelnumber]
\item cccc
\item dddd
\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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-09-30 16:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 14:59 Alan Bowen
2007-09-30 16:11 ` Wolfgang Schuster [this message]
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
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=115224fb0709300911m37bb63a7oe649b8a5cff7632d@mail.gmail.com \
--to=schuster.wolfgang@googlemail.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).