ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mp
@ 2012-08-22 21:03 Hans Hagen
  2012-08-22 21:23 ` mp Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2012-08-22 21:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

In the next version you can run mp files:

% test.mp

beginfig(1) ;

     fill fullcircle scaled 10cm withcolor 0.5red ;
     fill fullcircle scaled  4cm withcolor 0.5white ;

endfig ;

beginfig(2) ;

     fill fullcircle scaled 10cm withcolor 0.5green ;
     fill fullcircle scaled  5cm withcolor 0.5white ;

endfig ;

beginfig(3) ;

     fill fullcircle scaled 10cm withcolor 0.5blue ;
     fill fullcircle scaled  6cm withcolor 0.5white ;

endfig ;

as follows:

   context test.mp

and you'll get a pdf file with 3 pages that can be included with

   \externalfigure[test][page=1]
   \externalfigure[test][page=2]
   \externalfigure[test][page=3]

or used in different ways. Alteratively you can run

% test.tex

\starttext
     \processMPfigurefile{figures-001.mp}
\stoptext

In which case you can add styling directives in the preamble.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: mp
  2012-08-22 21:03 mp Hans Hagen
@ 2012-08-22 21:23 ` Aditya Mahajan
  2012-08-23  7:19   ` mp Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2012-08-22 21:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 22 Aug 2012, Hans Hagen wrote:

> Hi,
>
> In the next version you can run mp files:
>
>  context test.mp

Nice. How is font setup handled? Using verbatimtex ... etex? Or using the 
"styling directives" as you explain below.

Would something like

context --environment=font-setup test.mp

work?

> or used in different ways. Alteratively you can run
>
> % test.tex
>
> \starttext
>    \processMPfigurefile{figures-001.mp}
> \stoptext
>
> In which case you can add styling directives in the preamble.


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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: mp
  2012-08-22 21:23 ` mp Aditya Mahajan
@ 2012-08-23  7:19   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2012-08-23  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 22-8-2012 23:23, Aditya Mahajan wrote:
> On Wed, 22 Aug 2012, Hans Hagen wrote:
>
>> Hi,
>>
>> In the next version you can run mp files:
>>
>>  context test.mp
>
> Nice. How is font setup handled? Using verbatimtex ... etex? Or using
> the "styling directives" as you explain below.
>
> Would something like
>
> context --environment=font-setup test.mp
>
> work?

i guess so, as the file is processed in context (just an intercepted 
filetype like tex, cld, xml)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-08-23  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 21:03 mp Hans Hagen
2012-08-22 21:23 ` mp Aditya Mahajan
2012-08-23  7:19   ` mp 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).