ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: luaTeX and on-the-fly MetaPost compilation
Date: Sat, 24 May 2008 15:21:44 +0200	[thread overview]
Message-ID: <48381668.8040301@elvenkind.com> (raw)
In-Reply-To: <g191fu$g6o$1@ger.gmane.org>

Stephan Hennig wrote:
> Thank you for the outline.  For the exact mechanism of how to process an
> .mp file I think there are three possible cases:
> 
> 1. Strictly process what's between figure(n)..endfig only.
> 
> 2. Process everything up-to the specified figure, omitting stuff inside
> non-matching figure numbers.  
> 
> 3. Process everything up-to the specified figure, including all
> non-matching figures, but discard their output.  

4. Start a new MP instance, process the whole file, save and remember
the outputs (store fig.1, fig.2, fig.3 etc), then immediately close
the MP instance again.

The advantage is that this makes the metapost input behave exactly the
same as a true external figure, something that is not possible when an
already running MP instance is re-used. This is important, because the
state of an already running instance can be altered in such a way that
a perfectly valid metapost source suddenly fails to run. That may happen
with embedded metapost code as well of course, but in that case it is
much easier to correct and diagnose the problem.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-05-24 13:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 21:28 Stephan Hennig
2008-05-24  7:28 ` Taco Hoekwater
2008-05-24  7:30 ` Hans Hagen
2008-05-24 10:49   ` Stephan Hennig
2008-05-24 13:21     ` Taco Hoekwater [this message]
2008-05-24 13:25       ` Taco Hoekwater
2008-05-24 16:54     ` Hans Hagen

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=48381668.8040301@elvenkind.com \
    --to=taco@elvenkind.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).