ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: reusing metapost graphics
Date: Thu, 20 Mar 2003 10:40:55 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030320103931.02532670@server-1> (raw)
In-Reply-To: <3E795F15.1090702@zam.att.ne.jp>

At 03:26 PM 3/20/2003 +0900, you wrote:
>Hi:
>
>I'm designing a year's worth of English lessons for some Japanese kids, 
>and I'm using Metapost and ConTeXt to generate flashcards for vocabulary 
>training.  I have a few questions:
>(1) I want to keep my Metapost figures defined in a ConTeXt environment 
>file so that I can recall them as I need in future lessons.  Is there 
>anything wrong with this approach?

sounds ok to me

>(2) How do I make a Metapost figure defined in a ConTeXt file reusable? Do 
>I need to wrap the definition of the figure in a macro so that the figure 
>is recreated everytime I need it?

see patricks answer; in addition to that: external figures are reused by 
default

\startreusableMPgraphic{abc}

\stopreusableMPgraphic

\placefigure{]{\reuseMPgraphic{abc}}

will also be reused

>(3) With \useMPgraphic, is there any mechanism to scale the image as with 
>\useexternalfigure?

see patricks answer

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

      parent reply	other threads:[~2003-03-20  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20  6:26 Matthew Huggett
2003-03-20  8:53 ` scaling " Patrick Gundlach
2003-03-20  9:40 ` Hans Hagen [this message]

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=5.1.0.14.1.20030320103931.02532670@server-1 \
    --to=pragma@wxs.nl \
    --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).