ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Inline MP
@ 2000-08-16  7:13 pragma
  0 siblings, 0 replies; 4+ messages in thread
From: pragma @ 2000-08-16  7:13 UTC (permalink / raw)
  Cc: ntg-context

>Hi,
>
>I have a problem about inline metapost definition.  Here's a
snippet:
>
>\def\MPlogo#1#2{%
>  \startreusableMPgraphic{lg#1#2}
>    color outside; outside = black;
>    color inside; inside = (1,.6,0);
>     ...
>    pickup pencircle scaled ll;
>    drawlogo(outside);
>    pickup pencircle scaled bl;
>    drawlogo(inside);
>  \stopreusableMPgraphic
>  \reuseMPgraphic{lg#1#2}
>}

This can be done more efficiently (and maybe even possible in
your version): 

\startuniqueMPgraphic{...}
  ...
\stopuniqueMPgraphic

....

\uniqueMPgraphic{...}

The new metafun manual will explain this [and other new tricks]
in more detail. 

>ll and bl are counted from #1 and #2.
>
>Everytime when I run texexec (the first line is %
interface=english
>output=pdftex paper=a4 pdf mptex), it stops at mpost with a * 
                        ^^^^^^^^^
                        not needed  

prompt saying
>'type end' or similar.  Of course it generates mpoutput.1 but 

You may want to use texexec from the latest distribution
although proper use of \starttext ... \stoptext should handle
this.

Hans


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inline MP
  2000-08-14 18:41 Nagy Balazs
  2000-08-15 11:21 ` Nagy Balazs
@ 2000-08-21  9:45 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2000-08-21  9:45 UTC (permalink / raw)
  Cc: ConTeXt

At 08:41 PM 8/14/00 +0200, Nagy Balazs wrote:

>Everytime when I run texexec (the first line is % interface=english
>output=pdftex paper=a4 pdf mptex), it stops at mpost with a * prompt saying
>'type end' or similar.  Of course it generates mpoutput.1 but it doesn't
>included.

In the rare case that this happens [should not happen] you may try to add
\flushMPgraphics before \stoptext. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      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
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inline MP
  2000-08-14 18:41 Nagy Balazs
@ 2000-08-15 11:21 ` Nagy Balazs
  2000-08-21  9:45 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Nagy Balazs @ 2000-08-15 11:21 UTC (permalink / raw)


On Mon, 14 Aug 2000, Nagy Balazs wrote:

> I have a problem about inline metapost definition.  Here's a snippet:
> ...

I tried it with my old configuration (teTeX 1.0.6) and it works OK, but not
with 1.0.7.
-- 
Regards: Kevin (Balazs)
http://www.iksz.hu/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Inline MP
@ 2000-08-14 18:41 Nagy Balazs
  2000-08-15 11:21 ` Nagy Balazs
  2000-08-21  9:45 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Nagy Balazs @ 2000-08-14 18:41 UTC (permalink / raw)


Hi,

I have a problem about inline metapost definition.  Here's a snippet:

\def\MPlogo#1#2{%
  \startreusableMPgraphic{lg#1#2}
    color outside; outside = black;
    color inside; inside = (1,.6,0);
     ...
    pickup pencircle scaled ll;
    drawlogo(outside);
    pickup pencircle scaled bl;
    drawlogo(inside);
  \stopreusableMPgraphic
  \reuseMPgraphic{lg#1#2}
}

ll and bl are counted from #1 and #2.

Everytime when I run texexec (the first line is % interface=english
output=pdftex paper=a4 pdf mptex), it stops at mpost with a * prompt saying
'type end' or similar.  Of course it generates mpoutput.1 but it doesn't
included.

-- 
Regards: Kevin (Balazs)
http://www.iksz.hu/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-08-21  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-16  7:13 Inline MP pragma
  -- strict thread matches above, loose matches on Subject: below --
2000-08-14 18:41 Nagy Balazs
2000-08-15 11:21 ` Nagy Balazs
2000-08-21  9:45 ` Hans Hagen

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).