ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Bowen Alan C." <acbowen@Princeton.edu>
To: mailing ConTeXt users list for <ntg-context@ntg.nl>
Subject: numbered subitems revisited
Date: Tue, 31 Aug 2010 09:39:24 -0400	[thread overview]
Message-ID: <873D6C30-F532-4706-9835-4523DDD85CCE@Princeton.edu> (raw)


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

Several iterations of MK2 ago (in 2007), I was able to produce:

1. History
	1.1 Pre-Greek (Babylonian and Egyptian) sundials
	1.2 Greek and Roman sundials
	1.3 Byzantine sundials
2. Catalog (descriptions with photos, rough dating, evaluation)
	2.1 The Tower of the Winds and its sundials, treated separately
	2.2 General remarks on the cataloguing of the other finds
	2.3 Catalogue of the remaining finds on the Greek mainland and
	the Peloponnesus
3. Analysis
	3.1 Methodological remarks on the mathematical tools for analysis,
	and on their status
	3.2 Documentation of the results of the mathematical analysis of
	the measurements, comparison with other evaluations

using the following code (thanks to Aditya):

\setupitemize[1][fit,broad]
\setupitemize[2][width=2em]
\setupitemize[each][n]

\def\checkforrepeatedlistitem
 {\ifnum\itemlevel=\plusone
 \initializeboxstack{item}%
 \fi
 \ifconditional\repeatlistitem
 \savebox{item}{\itemlevel}{\hbox{\copy8}}%
 \setbox8\hbox %to \wd8
 {\setbox\scratchbox\hbox
 {\scratchcounter\itemlevel
 \advance\scratchcounter\minusone
 \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}%
 \ifnum\itemlevel>\plusone
 \ifdim\wd\scratchbox>\zeropoint
 %\hskip-\dimen2
 \box\scratchbox
 \fi
 \fi
 \box8 }%
 \fi}

\startitemize[repeat,serried, joinedup]
 \item History
 	\startitemize[width=1.75em, stopper={}]
 	\item Pre{-}Greek (Babylonian and Egyptian) sundials
	 \item Greek and Roman sundials
	\item Byzantine sundials
 	\stopitemize
 \item Catalog (descriptions with photos, rough dating, evaluation)
 	\startitemize[width=1.75em, stopper={}]
 	\item The Tower of the Winds and its sundials, treated separately
	 \item General remarks on the cataloguing of the other finds
 	\item Catalogue of the remaining finds on the Greek mainland and the Peloponnesus
 	\stopitemize
 \item Analysis
 	\startitemize[width=1.75em, stopper={}]
	 \item Methodological remarks on the mathematical tools for analysis, and on their status
 	\item Documentation of the results of the mathematical analysis of the measurements, 
 	comparison with other evaluations
	\stopitemize
\stopitemize

But using 2010.08.06 22 of the minimals, I now get:

! Undefined control sequence.
\checkforrepeatedlistitem ->\ifnum \itemlevel 
                                              =\plusone \initializeboxstack ...

\dolistitem ...rutdepth \checkforrepeatedlistitem 
                                                  \ifdim \dimen 2<\zeropoint...

\complexdoitemgroupitem ...obreak \fi \dolistitem 
                                                  \relax \ifconditional \pac...
<to be read again> 
                   H
l.30  \item H
             istory

The redefinition of \checkforrepeatedlistitem was necessary because “serried” ruined the indentation of the subitems.

Is there a fix for this?

Alan



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

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

                 reply	other threads:[~2010-08-31 13:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=873D6C30-F532-4706-9835-4523DDD85CCE@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).