Difference between revisions of "Sharing graphics"
Jump to navigation
Jump to search
(Added reference to Mpgraphic) |
(Added section on converting to EPS) |
||
Line 19: | Line 19: | ||
See also notes on <cmd>startMPpage</cmd> on [[Mpgraphic]] . | See also notes on <cmd>startMPpage</cmd> on [[Mpgraphic]] . | ||
+ | |||
+ | == Importing MetaPost drawings into MS Word == | ||
+ | MS Word can import many graphics formats, but not PDF. To allow a Word user to import a drawing created in MetaPost, the PDF can be converted to encapsulated postscript as follows: | ||
+ | * Create a PDF drawing (see "Exporting MetaPost drawing as PDF files" above). | ||
+ | * From the command line, convert to EPS using pdftops: | ||
+ | <code> | ||
+ | pdftops -eps -pagecrop myfile.pdf | ||
+ | </code> | ||
+ | * Import the EPS file as a picture into Word. | ||
+ | Note that the preview on-screen in Word is of poor quality, but when printed it should have the full quality of the original. | ||
[[Category:Graphics]] | [[Category:Graphics]] |
Revision as of 14:11, 17 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
See also notes on \startMPpage on Mpgraphic .
Importing MetaPost drawings into MS Word
MS Word can import many graphics formats, but not PDF. To allow a Word user to import a drawing created in MetaPost, the PDF can be converted to encapsulated postscript as follows:
- Create a PDF drawing (see "Exporting MetaPost drawing as PDF files" above).
- From the command line, convert to EPS using pdftops:
pdftops -eps -pagecrop myfile.pdf
- Import the EPS file as a picture into Word.
Note that the preview on-screen in Word is of poor quality, but when printed it should have the full quality of the original.