ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* breaking up long input into metapost pages
@ 2011-03-02 10:56 Hans van der Meer
  0 siblings, 0 replies; only message in thread
From: Hans van der Meer @ 2011-03-02 10:56 UTC (permalink / raw)
  To: NTG ConTeXt

I now have a long input file with many independent sections.
For the moment it is processed as follows:

\starttext
\startTEXpage
\startMPcode
% variable declarations 
% macro definitions with drawing code
input input_data;
\stopMPcode
\stopTEXpage
\stoptext

Now this becomes a bit too large for one page, I tried a Metapost run in luatex but after taking some 12 GB of memory it gave up.
The idea is thus to have one contiguous input which at certain points produces a new startTEXpage. That will flush the internal memory I guess and makes long documents possible.
I'd rather not split the input_data in seperate files: making a thousand of more files seems no nice prospect to me.
Any ideas how to best structure things? I should mention that I have a lot of control over the writing of the input_data.

Hans van der Meer

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-02 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-02 10:56 breaking up long input into metapost pages Hans van der Meer

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).