ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi scarso" <luigi.scarso@gmail.com>
Subject: TeX capacity exceeded with my macros
Date: Fri, 15 Dec 2006 16:55:28 +0100	[thread overview]
Message-ID: <fe8d59da0612150755g603ba33br3b4ad17d56eae0a7@mail.gmail.com> (raw)

I have a
TeX capacity exceeded
message.
I think I'm doing too much,
but before to try another way I would know if
I should enlarge context.

This macro is called ~ 70 000 times
\SetArtValue{1:330128:1007:336:1:d}{}

PS
No problem if none answer to this message.

----------------------------------------------------------------------------
\def\SetArtValue#1#2{%
\edef\Temp{#1}
\beforesplitstring#1\at:\to\Lang\aftersplitstring#1\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\Code\aftersplitstring\Temp\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\RowLabelId\aftersplitstring\Temp\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\RowId\aftersplitstring\Temp\at:\to\Temp%%
\doiffirstcharelse{9}{\Code}{}{%else
\setgvalue{\Code:\RowId}{{\RowLabelId,#2}}
\setxvalue{\Code}{\Code}
\@EA\doifinsetelse\@EA{\@EA\RowId\@EA}\@EA{\the\ArticlesRowIdList}{\relax}{\@EA\appendtoks\RowId,\to\ArticlesRowIdList}
\setxvalue{Array:\the\Row:\the\SummaryTableCountArticles}{(r=\the\Row,c=\the\SummaryTableCountArticles)}%
}
}




\SetArtValue{1:330128:1007:336:1:d}{}

! TeX capacity exceeded, sorry [hash size=60000].
\setgvalue ...andafter \gdef \csname #1\endcsname

<argument> \setgvalue {\Code :\RowId }
                                      {{\RowLabelId ,}} \setxvalue {\Code }{...

\secondoftwoarguments #1#2->#2

\SetArtValue ...\RowId ,\to \ArticlesRowIdList } }

l.21796 \SetArtValue{1:330128:1007:336:1:d}{}
                                             %Doleplate\width - mm
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.


Here is how much of TeX's memory you used:
 25279 strings out of 62456
 270234 string characters out of 659612
 4705997 words of memory out of 5746700
 60000 multiletter control sequences out of 10000+50000
 46713 words of font info for 77 fonts, out of 500000 for 2000
 408 hyphenation exceptions out of 1000
 47i,15n,56p,343b,556s stack positions out of 3000i,1500n,5000p,200000b,15000s
PDF statistics:
 2 PDF objects out of 300000
 0 named destinations out of 131072
 7 words of extra memory for PDF output out of 65536
!  ==> Fatal error occurred, the output PDF file is not finished!

My texmf.cnf
% ConTeXt is a memory hog...
extra_mem_top.context = 2000000
extra_mem_bot.context = 4000000
main_memory.context = 1500000

             reply	other threads:[~2006-12-15 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 15:55 luigi scarso [this message]
2006-12-15 16:01 ` andrea valle
2006-12-15 22:59 ` Hans Hagen
2006-12-18  8:19   ` luigi scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0612150755g603ba33br3b4ad17d56eae0a7@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).