Path: utzoo!attcan!uunet!mcsun!ukc!icdoc!sot-ecs!spqr From: spqr@ecs.soton.ac.uk (Sebastian Rahtz) Newsgroups: comp.text.tex Subject: Re: DVI-Merge?? Message-ID: Date: 28 Jul 90 11:34:42 GMT References: <2348@laura.UUCP> Sender: spqr@ecs.soton.ac.uk Organization: Southampton University Computer Science Lines: 33 In-reply-to: muenx@heike.informatik.uni-dortmund.de's message of 27 Jul 90 12:08:54 GMT In article <2348@laura.UUCP> muenx@heike.informatik.uni-dortmund.de (Holger Muenx) writes: I want to use LaTeX and PiCTeX together with TreeTeX, a macro package for typesetting trees. Including both packages results in an error 'No room for a new \dimen'. As TeX provides only 256 dimen registers there seems to be no simple and clean way to solve this problem. try this. just reload the macros every time you need them, inside a { } pair. ugly, but it works. I just wish I could remember why! % Tim Bradshaw 1989 % -*-LaTeX-* % hackalloc.sty: make allocation local for LaTeX. % This redefines the allocation primitive so _all_ allocation becomes % block-local after this is loaded; no idea what the side-effects of this % may be. If it breaks, change \alloc@ to \localloc@, and either redefine % just what you need to use \alloc@, or define \locnew* for local % allocation, as in the commented lines. % NOTE: lying again... this doesn't work for inserts which are still % global. %\def\locnewdimen{\localloc@1\dimen\dimendef\insc@unt} %\def\localloc@#1#2#3#4#5{\advance\count1#1 by 1 \def\alloc@#1#2#3#4#5{\advance\count1#1 by 1 \ch@ck#1#4#2% Check room \allocationnumber=\count1#1 #3#5=\allocationnumber \wlog{Locally \string#5=\string#2\the\allocationnumber}} -- Sebastian Rahtz S.Rahtz@uk.ac.soton.ecs (JANET) Computer Science S.Rahtz@ecs.soton.ac.uk (Bitnet) Southampton S09 5NH, UK S.Rahtz@sot-ecs.uucp (uucp)