From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/395 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: input stack size limit? Date: Fri, 23 Apr 1999 11:18:09 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37203AD1.96DBD119@wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391257 23719 80.91.224.250 (23 Oct 2002 16:40:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:40:57 +0000 (UTC) Cc: Context List Original-To: Matthew.Baker@gmd.de Xref: main.gmane.org gmane.comp.tex.context:395 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:395 Matthew Baker wrote: > This is probably more a TeX question than a Context question but the > problem is coming up in Context, so.... > > I have been running Context under Linux without any problems for a while. > I've just tried getting it going on an SGI (IRIX 6.5). It is having > problems. Specifically, I get a > > ! TeX capacity exceeded, sorry [input stack size=1500]. > > so I edit the texmf.cnf and change stack_size to something big. The > problem is, regardless of what I change this to (5000, 10000), I get > > ! TeX capacity exceeded, sorry [input stack size=3000]. > > Is there an upper limit of 3000 or something? Should Context be needing > more than that? I don't *think* there's anything screwy with my doc. It > compiles and displays fine under Linux. > > Oh, I should add that I'm running it with pdftex (which I also use to > build the fmt file). (1) Some memory changes in texmf and runtime, some become hardcoded in the fmt file. So, when changing a value, always regenerate a format. (2) I currently use the next values (for all my texs), but when you use tetex, thomas already has set the values to reasonable ones. main_memory = 1500000 extra_mem_top = 1000000 extra_mem_bot = 1000000 font_mem_size = 250000 font_max = 750 hash_extra = 30000 pool_size = 500000 string_vacancies = 25000 max_strings = 50000 pool_free = 475000 trie_size = 64000 hyph_size = 1000 buf_size = 10000 nest_size = 750 max_in_open = 15 param_size = 5000 save_size = 20000 stack_size = 5000 obj_tab_size = 150000 (3) I'm not that sure if a large input stack is always needed. You can take a look at the log file (at the end) and see to what respect the limits are reached. (4) In the texmf file, one can set all mem values (like shown here) or for some specific programs or packages. Currently (when you use tetex) the context prefix is used for context. You generate a format by either running the tetex configuration script, or running 'texexec --make'. Both make sure the right memory values are used. I hope this helps, otherwise Thomas Esser has to assist, Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------