Changes

Jump to navigation Jump to search
m
no edit summary
MetaFun is ConTeXt extension the [[MetaPost]] language. It provides a tight integration of both TeX and [[MetaPost]]. MetaPost can used behind the scenes for some graphic trickery. This integration is also helpful for drawing figures in MetaPost and use them in the document.  '''THE [[manual:metafun-p.pdf|MetaFun manual]]''', also available in a [[manual:metafun-s.pdf|screen version]].  This page is a brief overview of some of the commonly used commands. 
= Commonly used commands =
; {{cmd|startuseMPgraphic}}, {{cmd|useMPgraphic}}: defines a piece of graphics code that is processed anew every time the graphic is placed with {{cmd|useMPgraphic}}.
; {{cmd|\startreusableMPgraphic}}, {{cmd|\reuseMPgraphic}}: For graphics that are the same every time, it is better to use {{cmd|startreusableMPgraphic}}: the graphic is compiled only once, and the one resulting picture can be placed at various points with {{cmd|reuseMPgraphic}}.
; {{cmd|startMPcode}}: When reusing a graphic is not important, you can simply use {{cmd|startMPcode}}.
; {{cmd|startstaticMPfigure}}, {{cmd|usestaticMPfigure}}: The {{cmd|startuseMPgraphic}} series of commands were designed for using MetaPost for drawing fancy frames and backgrounds and not for using <i>stand-alone</i> graphics for a document. {{cmd|startstaticMPfigure}} creates a separate pdf file containing the graphic. This pdf can be included in the document using {{cmd|usestaticMPfigure}}. ConTeXt is clever enough to recompile the resulting MetaPost file only if something inside the {{cmd|startstaticMPfigure}} has changed.
 
= Documentation and links =
* [[manual:metafun-p.pdf|MetaFun manual]] ([[manual:metafun-s.pdf|screen]]) by Pragma
* [[manual:mmakempy.pdf|MakeMPY]]: create MetaPost outlines (by Pragma)
* [[Flow Charts|FlowCharts]]: encapsulated application, demonstration of MetaPost/MetaFun
* [http://www.ntg.nl/maps/25/15.pdf metapost metafun. Hans Hagen at MAPS]
 
----
[[Category:Graphics]]
[[Category:Metapost]]

Navigation menu