ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Richard Hensh" <hensh@math.msu.edu>
Subject: Metapost and graphics
Date: Sat, 22 Apr 2000 20:06:21 -0400	[thread overview]
Message-ID: <NCBBICJAGILBNMKONAJDEEJODHAA.hensh@math.msu.edu> (raw)

Hello,

I'm new to ConTeXt and interested in including graphs in my documents. Since
PSTricks doesn't appear to be supported I've turned to METAPOST. I have some
questions about the code below.

1. I've tried some of the examples from the MP docs and occasionally, the
"test" graphic fails when the beginfig(1)/endfig pair is included.

2. Which is the preferred way to call the "test" image, (1) or (2) (see
below)?

3. What is the purpose of the pair \startMPgraphic...\stopMPgraphic? It
doesn't seem to do anything.

In the docs that I've found, there doesn't seem to be much on METAPOST info.
For example, the "graph" package isn't supported. Is there a more extensive
discussion of ConTeXt support of METAPOST somewhere?

thanks in advance
ricky

+++++++++++++++++++++++++++++++++++++++++++++
\startuseMPgraphic{test}
beginfig(1);
	u=1cm;
	draw (2u,2u)--(0,0)--(0,3u)--(3u,0)--(0,0);
	pickup pencircle scaled 4pt;
	for i=0 upto 2:
	  for j=0 upto 2:
		 draw (i*u,j*u);
	  endfor
	endfor
endfig;
\stopuseMPgraphic
%1
\useMPgraphic{test}
%2
\externalfigure[mpgraph.1]
%3
\startMPgraphic
	%same mp code as above.
\stopMPgraphic
+++++++++++++++++++++++++++++++++++++++++++++++++


             reply	other threads:[~2000-04-23  0:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-23  0:06 Richard Hensh [this message]
2000-04-24  5:22 pragma

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=NCBBICJAGILBNMKONAJDEEJODHAA.hensh@math.msu.edu \
    --to=hensh@math.msu.edu \
    /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).