🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #2424

Re: latex and \input

#2424
From: Sebastian Rahtz
Date: Sat, 26 Jan 1991 14:38
64 lines
3090 bytes
In article <5291@gara.une.oz.au> ascott@gara.une.oz.au (Tony Scott STPG) writes:

   Does TeXs memory get cleared as each page is shipped out?
it depends which bit of memory...

    I am using TeX 3.0 and have installed the BiG-TeX size as default.
   Can it be made even bigger?
yes

   It seems that only by putting \clearpages in the document at the
   moment will the document process without main memory being filled.
If I read your message aright, you may be getting two sorts of error:

 - too many complicated structures living in memory, such as tables
   and figures, which  are not getting flushed often enough 
 - too many different macros taking up living space, and running TeX
   out of dimen space etc

Other people may give a fuller picture, but you may be interested in
this style option which makes declarations like \newdimen local. So
you can localize the effect of Pictex by saying
 {
 \input prepictex.tex
 \input pictex.tex
 \input pospictex.tex
 %% use PiCTeX
 }
and the (vast) space which PiCTeX uses will be available again.

This was written by someone in the UK whose name I have lost! cringe,
shame, sorry. BE WARNED that it can have side effects, such as losing
the table of contents - I load it in explicity with
 \makeatletter
 \input hackalloc.sty
 \makeatother
well after things like  \tableofcontents

This is *not* an official or guarenteed solution, but used with care
it can make documents which use a lot of different macro packages
useable. It may well not be your problem, mind you.

Sebastian
% -*-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)
Technical Details
Message-ID: <SPQR.91Jan26143849@cameron.ecs.soton.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!sot-ecs!spqr
References: <5291@gara.une.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!sot-ecs!spqr
From: spqr@ecs.soton.ac.uk (Sebastian Rahtz)
Newsgroups: comp.text,comp.text.tex
Subject: Re: latex and \input
Message-ID: <SPQR.91Jan26143849@cameron.ecs.soton.ac.uk>
Date: 26 Jan 91 14:38:49 GMT
References: <5291@gara.une.oz.au>
Sender: news@ecs.soton.ac.uk
Organization: Southampton University Computer Science
Lines: 64
In-reply-to: ascott@gara.une.oz.au's message of 25 Jan 91 02:14:20 GMT