From: "Procházka Lukáš" <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: MP & TeX capacity exceeded
Date: Sat, 01 Sep 2012 18:28:54 +0200 [thread overview]
Message-ID: <op.wjytehogdk1lar@lk-2008-nbk> (raw)
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
Hello,
suppose having the following sample code:
----
\starttext
\startluacode
context.startMPcode()
for i = 1,
-- 1000 -- OK
1e6
do
context("draw (0,0) -- (5cm,5cm);")
end
context.stopMPcode()
\stopluacode
\stoptext
----
I'm getting "TeX capacity exceeded" error.
So the question is - which parameter in which file to extend it?
I found texmf.cnf and texmfcnf.lua, with many variables having "size" in its name; which is the proper one?
Best regards,
Lukas
[-- Attachment #2: t-MP.log --]
[-- Type: application/octet-stream, Size: 3212 bytes --]
(D:/Lukas/Miscell/Bet/t-MP.mkiv
ConTeXt ver: 2012.04.10 19:46 MKIV fmt: 2012.4.12 int: english/english
system > cont-new.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > t-MP.top loaded
system > options > start used options
used options > % runtime options files (command line driven)
used options > \unprotect
used options > % feedback and basic job control
used options > \nonstopmode
used options > % handy for special styles
used options > \startluacode
used options > document = document or { }
used options > document.arguments={
used options > ["FILE"]="t-MP.mkiv",
used options > ["halt-on-error"]=true,
used options > ["mode"]="t-MP",
used options > ["nonstopmode"]=true,
used options > }
used options > document.files={
used options > "D:/Lukas/Miscell/Bet/t-MP.mkiv",
used options > }
used options > \stopluacode
used options > % process info
used options > \setupsystem[inputfile=D:/Lukas/Miscell/Bet/t-MP.mkiv]
used options > \setupsystem[\c!n=1,\c!m=1]
used options > % modes
used options > \enablemode[t-MP]
used options > % options (not that important)
used options > \startsetups *runtime:options
used options > \stopsetups
used options > % styles and modules
used options > \startsetups *runtime:modules
used options > \stopsetups
used options > % done
used options > \protect \endinput
system > options > stop used options
(t-MP.top
)
fonts > latin modern fonts are not preloaded
languages > language en is active
{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
fonts > typescripts > unknown: library 'loc'
{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
metapost > initializing instance 'metafun' using format 'metafun'
metapost > loading 'metafun': c:/ConTeXt/tex/texmf-context/metapost/context/base/metafun.mpiv
Runaway text?
metapost.graphic( "metafun", "metafun", [===[draw (0,0) -- (5cm,5cm);\ETC.
! TeX capacity exceeded, sorry [token memory size=63191721].
system > tex > error on line 1000002 in file D:/Lukas/Miscell/Bet/t-MP.mkiv: TeX capacity exceeded, sorry [ ...
<inserted text> ...0) -- (5cm,5cm);draw (0,0)\ETC.
\meta_process_graphic ...!!es , \MPaskedfigure )}}
\egroup \placeMPgraphic \m...
l.1000002 \stopMPcode
<inserted text> ...nd\r context.stopMPcode()\r }
\luat_start_lua_code_indeed ...ua \zerocount {#1}}
l.15 \stopluacode
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
! ==> Fatal error occurred, no output PDF file produced!
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2012-09-01 16:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-01 16:28 Procházka Lukáš [this message]
2012-09-01 19:47 ` Mojca Miklavec
2012-09-02 15:05 ` Procházka Lukáš
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=op.wjytehogdk1lar@lk-2008-nbk \
--to=lpr@pontex.cz \
--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).