From: Alan Bowen <acbowen@princeton.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: numbered subitems
Date: Sun, 30 Sep 2007 16:19:12 -0400 [thread overview]
Message-ID: <79353143-97CF-49DD-88D5-B80BC7E7DE98@princeton.edu> (raw)
In-Reply-To: <115224fb0709300911m37bb63a7oe649b8a5cff7632d@mail.gmail.com>
Thanks, Wolfgang. This is good start. The problem now is that
with
\def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
\defineconversion[firstlevelnumber][\firstlevelnumber]
\def\secondlevelnumber#1{\thefirstlevelnumber.#1}
\defineconversion[secondlevelnumber][\secondlevelnumber]
\starttext
\setupitemize[n,packed,joinedup,serried]
\startitemize[ firstlevelnumber]
\item item 1
\startitemize[secondlevelnumber]
\item item 1.1
\item item 1.2
\item item 1.3
\stopitemize
\item item 2
\startitemize[secondlevelnumber]
\item item 2.1
\item item 2.2
\item{ item 2.3
\stopitemize
\item item 3
\startitemize[secondlevelnumber]
\item item 3.1
\item item 3.2
\stopitemize
\stopitemize
• the subitem numeration ends with a full stop which I am unable to
remove using stopper=0. (Inserting it in the second level
\setupitemize ruins the numeration
• the subitem text is smashed against the numeration
All best, Alan
On Sep 30, 2007, at 12:11 PM, Wolfgang Schuster wrote:
> 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
> ______________________________________________________________________
> _____________
___________________________________________________________________________________
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 20:19 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
2007-09-30 20:19 ` Alan Bowen [this message]
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=79353143-97CF-49DD-88D5-B80BC7E7DE98@princeton.edu \
--to=acbowen@princeton.edu \
--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).