ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: metapost to pdf on the fly
Date: Mon, 3 Oct 2011 09:09:26 +0200	[thread overview]
Message-ID: <B053BBEF-E7DF-48BB-A0BF-1BF6E7C41CB0@googlemail.com> (raw)
In-Reply-To: <E9D8B9FD-9C99-481B-BA16-AA265B48844F@uva.nl>


Am 03.10.2011 um 09:05 schrieb Meer, H. van der:

> I am afraid I don't completely understand this. Doing:
> \startbuffer[fig-1]
> \startMPcode
> draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle withcolor darkgreen;
> label(textext("Test"),origin);
> \stopMPcode
> \stopbuffer
> \starttext
> \processMPbuffer[fig-1]
> \stoptext

This works:

\startbuffer[fig-1]
draw (-20,0) .. (0,20) .. (20,0) .. (0,-20) .. cycle withcolor \MPcolor{darkgreen};
label(textext("Test"),origin);
\stopbuffer

\starttext
\processMPbuffer[fig-1]
\stoptext

Wolfgang

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


  reply	other threads:[~2011-10-03  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-29 18:37 Meer, H. van der
2011-09-29 19:21 ` Aditya Mahajan
2011-10-03  7:05   ` Meer, H. van der
2011-10-03  7:09     ` Wolfgang Schuster [this message]
2011-10-03  8:12       ` Meer, H. van der
2011-10-03  9:33         ` Mojca Miklavec

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=B053BBEF-E7DF-48BB-A0BF-1BF6E7C41CB0@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).