From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61406 Path: news.gmane.org!not-for-mail From: "Bowen Alan C." Newsgroups: gmane.comp.tex.context Subject: numbered subitems revisited Date: Tue, 31 Aug 2010 09:39:24 -0400 Message-ID: <873D6C30-F532-4706-9835-4523DDD85CCE@Princeton.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/mixed; boundary="===============0903598119==" X-Trace: dough.gmane.org 1283262016 7647 80.91.229.12 (31 Aug 2010 13:40:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 13:40:16 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 31 15:40:15 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqR4Q-0006US-UB for gctc-ntg-context-518@m.gmane.org; Tue, 31 Aug 2010 15:40:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2D85CA6BD; Tue, 31 Aug 2010 15:40:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Mrl8v-5HIi77; Tue, 31 Aug 2010 15:40:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BE7CCA63A; Tue, 31 Aug 2010 15:40:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03BEACA63A for ; Tue, 31 Aug 2010 15:40:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zGel3FX07fNB for ; Tue, 31 Aug 2010 15:39:53 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 96A64CA633 for ; Tue, 31 Aug 2010 15:39:53 +0200 (CEST) Original-Received: from vms173015pub.verizon.net (vms173015pub.verizon.net [206.46.173.15]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7VDddp0016151 for ; Tue, 31 Aug 2010 15:39:40 +0200 Original-Received: from [10.196.43.66] ([unknown] [74.198.12.3]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L8000AYCR9OFY10@vms173015.mailsrvcs.net> for ntg-context@ntg.nl; Tue, 31 Aug 2010 08:39:26 -0500 (CDT) X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=206.46.173.15; country=US; region=TX; city=Grapevine; postalcode=76051; latitude=32.9234; longitude=-97.0810; metrocode=623; areacode=817; http://maps.google.com/maps?q=32.9234,-97.0810&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rD11DDBp - 1d3f1627d13a - 20100831 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61406 Archived-At: --===============0903598119== Content-type: multipart/alternative; boundary=Apple-Mail-1-12086742 --Apple-Mail-1-12086742 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 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=3D2em] \setupitemize[each][n] \def\checkforrepeatedlistitem {\ifnum\itemlevel=3D\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=3D1.75em, stopper=3D{}] \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=3D1.75em, stopper=3D{}] \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=3D1.75em, stopper=3D{}] \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,=20 comparison with other evaluations \stopitemize \stopitemize But using 2010.08.06 22 of the minimals, I now get: ! Undefined control sequence. \checkforrepeatedlistitem ->\ifnum \itemlevel=20 =3D\plusone = \initializeboxstack ... \dolistitem ...rutdepth \checkforrepeatedlistitem=20 \ifdim \dimen = 2<\zeropoint... \complexdoitemgroupitem ...obreak \fi \dolistitem=20 \relax \ifconditional = \pac... =20 H l.30 \item H istory The redefinition of \checkforrepeatedlistitem was necessary because = =93serried=94 ruined the indentation of the subitems. Is there a fix for this? Alan --Apple-Mail-1-12086742 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 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]
\se= tupitemize[2][width=3D2em]
\setupitemize[each][n]

=
\def\checkforrepeatedlistitem
 {\ifnum\itemlevel= =3D\plusone
 \initializeboxstack{item}%
 \fi=
 \ifconditional\repeatlistitem
 \savebox{it= em}{\itemlevel}{\hbox{\copy8}}%
 \setbox8\hbox %to = \wd8
 {\setbox\scratchbox\hbox
 {\scratchcou= nter\itemlevel
 \advance\scratchcounter\minusone
=  \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}%
 \ifnum\itemlevel>\plusone
 \ifdim\wd\scratchbox&= gt;\zeropoint
 %\hskip-\dimen2
 \box\scratch= box
 \fi
 \fi
 \box8 = }%
 \fi}

\startitemize[repeat,serr= ied, joinedup]
 \item History
  = \startitemize[width=3D1.75em, stopper=3D{}]
  \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=3D1.75em, stopper=3D{}]
  \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=3D1.75em, stopper=3D{}]
\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 
              =                     =             =3D\plusone = \initializeboxstack ...


<to be read again> 
             = istory

The redefinition of = \checkforrepeatedlistitem was necessary because =93serried=94 ruined the = indentation of the subitems.

Is there a fix for = this?

Alan


= --Apple-Mail-1-12086742-- --===============0903598119== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0903598119==--