Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id o8GElUwT032350 for ; Thu, 16 Sep 2010 16:47:32 +0200 Received: (qmail 18472 invoked by alias); 16 Sep 2010 14:47:26 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 16 Sep 2010 14:47:25 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx057) with SMTP; 16 Sep 2010 16:47:25 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o8GEiX70015665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Sep 2010 16:44:33 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o8GE4QoR028362; Thu, 16 Sep 2010 16:44:57 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 497221 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 16 Sep 2010 16:44:57 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o8GEivVR002450 for ; Thu, 16 Sep 2010 16:44:57 +0200 Received: from oberon.open.ac.uk (oberon.open.ac.uk [137.108.141.46]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o8GEiKJi007453 for ; Thu, 16 Sep 2010 16:44:24 +0200 X-IronPort-AV: E=Sophos;i="4.56,376,1280703600"; d="scan'208";a="51888285" X-Disclaimed: 1 Importance: Normal X-Priority: 3 (Normal) References: <19109.1284579373@cl.cam.ac.uk> <4C9122A1.4060008@morningstar2.co.uk> <4C91239B.2040301@morningstar2.co.uk> <4C912F95.70503@morningstar2.co.uk> <20100916030501.GA32514@oberdiek.my-fqdn.de> , <20100916124216.GA1110@oberdiek.my-fqdn.de> MIME-Version: 1.0 X-Mailer: Lotus Domino Web Server Release 8.5.2 HF16 August 30, 2010 X-MIMETrack: Serialize by HTTP Server on mcs-notes1/mcs/UK(Release 8.5.2 HF16|August 30, 2010) at 16/09/2010 15:44:40, Serialize complete at 16/09/2010 15:44:40, Itemize by HTTP Server on mcs-notes1/mcs/UK(Release 8.5.2 HF16|August 30, 2010) at 16/09/2010 15:44:40, Serialize by Router on mcs-notes1/mcs/UK(Release 8.5.2 HF16|August 30, 2010) at 16/09/2010 15:44:40 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id o8GEivVR002451 Message-ID: Date: Thu, 16 Sep 2010 15:44:40 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Chris Rowley Subject: Re: e-TeX low-level expertise needed Re: Allocation of registers To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <20100916124216.GA1110@oberdiek.my-fqdn.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p4WX0t+AtsdWzrXATe7U7iyEYsVEub6UEScnitTuLsF1TdlrkUKNRhypl1WP P4z9N2hLfJzsGszrlv+ygay/ivx19oyBwO3NEg0raNb/3tCvONPdaWhG3fyrhob4EvcA0r7m4G7q eqN5w==V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6392 Hi Heiko > Thanks for this, Heiko.  Note there is no upper range check in the code > for \reserveinserts. >> AFAIK there is no need: No, not _essential_ to do anything their but then:   \newinsert\foobar at a seemingly random time later will give this error:   ! No room for a new \dimen. which does not immediately make one think about the most recent use of \reserveinserts (or show you where that is!). Thus to help with 'debugging weird errors' it might be useful if \reserveinserts at least put a warning into the log file: especially for those who have forgotten that eTeX still limits the number of insert classes and gives an error about \dimen when you have too many \newinsert commands. Thus, this I like: >> \RequirePackage{etex} \makeatletter \outer\def \reserveinserts#1{%   \begingroup     \@tempcnta=\numexpr#1\relax     \ifnum\@tempcnta<\z@       \PackageWarning{etex}{%         Negative number (\the\@tempcnta) for %         \@backslashchar reserveinserts,\MessageBreak         assuming 0%       }%       \@tempcnta=\z@     \fi     \count@\count10 % count     \ifnum\count11>\count@ \count@\count11 \fi % dimen     \ifnum\count12>\count@ \count@\count12 \fi % skip     \ifnum\count14>\count@ \count@\count14 \fi % box     \count@=\numexpr\et@xins-\count@\relax     \PackageInfo{etex}{%       Maximum for \@backslashchar reserveinserts is \the\count@     }%     \ifnum\@tempcnta>\count@       \PackageError{etex}{%         \the\@tempcnta\space insertion register%         \ifnum\@tempcnta=\@ne \space is \else s are \fi         requested,\MessageBreak         \ifnum\count@<\@ne           but no more registers can be reserved%         \else           but only \the\count@\space register%           \ifnum\count@=\@ne\else s\fi\space can be reserved%         \fi       }\@ehc       \@tempcnta=\count@     \fi     \global\insc@unt\numexpr\et@xins-\@tempcnta\relax   \endgroup } >> Cheers, chris --------------------------------------------------------------------------- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302)