On Thu, 12 Mar 2009, Curious Learn wrote:

Hi,

I am trying to learn Metapost using Context. I tried a few examples for drawing
things and they worked well. But the "show" command does not seem to work. For
example, the code

\startuseMPgraphic{GridDots}
        u=1cm;
        pickup pencircle scaled 8pt
        for i = 0 upto 2:
                for j = 0 upto 2: draw (i*u,j*u); endfor
        endfor
\stopuseMPgraphic
\useMPgraphic{GridDots}

from John Hobby's manual works great.

However, the following code gives no output in the PDF file. Am I doing
something wrong?

\startuseMPgraphic{LinearEq}
  a+b = 2a - b = 3;
  show a,b;
\stopuseMPgraphic
\useMPgraphic{LinearEq}

I am using the following version from Texlive
ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.10.1  int: english/english

The output of show goes to the terminal and the log file. Look for the values in filename-mpgraph.log.

Aditya
___________________________________________________________________________________
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 via email to