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 o8FKhwcF003965 for ; Wed, 15 Sep 2010 22:43:59 +0200 Received: (qmail 28945 invoked by alias); 15 Sep 2010 20:43:52 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 15 Sep 2010 20:43:52 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx007) with SMTP; 15 Sep 2010 22:43:52 +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 o8FKfott019677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Sep 2010 22:41:50 +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 o8FH391U024841; Wed, 15 Sep 2010 22:42:12 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 512643 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 15 Sep 2010 22:42:12 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o8FKgC53020978 for ; Wed, 15 Sep 2010 22:42:12 +0200 Received: from lon1-post-1.mail.demon.net (lon1-post-1.mail.demon.net [195.173.77.148]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o8FKfSRE019455 for ; Wed, 15 Sep 2010 22:41:32 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=palladium.local) by lon1-post-1.mail.demon.net with esmtp (Exim 4.69) id 1Ovynm-00049Z-WL; Wed, 15 Sep 2010 20:41:58 +0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 References: <19109.1284579373@cl.cam.ac.uk> <4C9122A1.4060008@morningstar2.co.uk>, <4C91239B.2040301@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4C912F95.70503@morningstar2.co.uk> Date: Wed, 15 Sep 2010 21:41:57 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: e-TeX low-level expertise needed Re: Allocation of registers To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p77e5KAPs1l6v/Sb97LojnDtMgfETrECMLUO9erHzOJe7j3G660N4yBY6XHH YPYtmQj6mbYUTZ3LnaFANLWrKE7/wIDhnv+VrW0hxOapLRUwuY9oBqo5h+Dh9B42XlFTMTKlXDju GaV8Q==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: 6382 On 15/09/2010 21:15, Chris Rowley wrote: > So what happens when e-TeX reads \reserveinsert {} ?? 'Undefined control sequence'! The macro is called \reserveinserts :-) It just marks a set of count/dimen/skip/box spaces as not available for general use. So you can put any number in here without an error (provided it's less that \maxint, of course). It just doesn't work, in the sense you don't gain any extra \insert's. I did a few tests. As the e-TeX manual says, you can't \insert beyond 254. \insert255 gives the special 'You can't \insert255' error (as without e-TeX), and anything higher is a bad register code. (The {} seems to vanish.) So the important point for me is that \insert's are still limited with e-TeX, not as bad as \write's but much more so than \count's, etc. Thus you have to reserve a certain number of 'low' registers (count, dimen, skip, box) for use with inserts. The \reserveinserts macro does that with the e-TeX package, so for expl3 this is probably the way to go. For LaTeX3 as a format I guess the current allocation routine will need to be altered when we actually get to needing inserts. In both cases the question is then 'how many inserts is enough'? Morten suggests 30, which is probably sufficient at the moment. -- Joseph Wright