ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* numbered subitems revisited
@ 2010-08-31 13:39 Bowen Alan C.
  0 siblings, 0 replies; only message in thread
From: Bowen Alan C. @ 2010-08-31 13:39 UTC (permalink / raw)
  To: mailing ConTeXt users list for


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-31 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 13:39 numbered subitems revisited Bowen Alan C.

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