Difference between revisions of "Sharing graphics"

From Wiki
Jump to navigation Jump to search
(Added category and hierarchy)
(Added new section on MP to PDF)
Line 5: Line 5:
 
This page includes methods of sharing graphics/figures with co-workers who (probably) do not use ConTeXt.
 
This page includes methods of sharing graphics/figures with co-workers who (probably) do not use ConTeXt.
 
This includes importing to and exporting from ConTeXt.
 
This includes importing to and exporting from ConTeXt.
 +
 +
== Exporting MetaPost drawings as PDF files ==
 +
Sometimes one wants to create a PDF file from a [[MetaPost]]/[[MetaFun]] drawing, with the page
 +
clipped to the size of the drawing. This can be achieved using the following construct:
 +
 +
<texcode>
 +
\starttext
 +
\startMPpage
 +
  draw fullcircle scaled 10cm ;
 +
\stopMPPage
 +
\stoptext
 +
</texcode>
  
 
[[Category:Graphics]]
 
[[Category:Graphics]]

Revision as of 16:09, 14 August 2009

< Graphics

Sharing graphics

This page includes methods of sharing graphics/figures with co-workers who (probably) do not use ConTeXt. This includes importing to and exporting from ConTeXt.

Exporting MetaPost drawings as PDF files

Sometimes one wants to create a PDF file from a MetaPost/MetaFun drawing, with the page clipped to the size of the drawing. This can be achieved using the following construct:

\starttext
 \startMPpage
  draw fullcircle scaled 10cm ;
 \stopMPPage
\stoptext