Changes

Jump to navigation Jump to search
1,264 bytes added ,  08:38, 25 August 2009
Reorganised, plus added path from MP to Visio.
< [[Graphics]]
= Sharing Some lucky people will be able to produce all their documents in [[MetaPost]] and ConTeXt and never have to worry about the ugly world of MS Word, PowerPoint and Visio. Unfortunately, most of us will, at some point, have to share our graphics =with colleagues who are unenlightened.
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 can be generated from a MetaPost code using [[MetaPost]http://www.pragma-ade.com/general/sources/mptopdf.pdf MPtoPDF]or <code>texexec --mptex</[[MetaFun]] code>. But where a drawinguses ConTeXt to generate formatted text or labels, it is necessary to generate a document which contains the graphic. This can be achieved, with the pageclipped cropped to the size of the drawing. This can be achieved graphic, using the following construct:
<texcode>
See also notes on <cmd>startMPpage</cmd> on [[Mpgraphic]] .
== Importing MetaPost drawings into MS Word or PowerPoint ==MS Word can import pictures in many graphics formats, but not PDF. To allow Two of the available options are:* Use encapsulated postscript (EPS). This provides graphics which print perfectly (on a Word user PS printer) but which look blocky on screen, so are unsuitable for PowerPoint presentations.* Use scalable vector graphics (SVG) as an intermediate format between PDF and the MS Visio tool. === Converting to import a drawing created in EPS ===MetaPost, the PDF drawings 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:
* 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.
 
===Converting to Visio via SVG ===
Visio is another Microsoft product whose .VSD files can be imported directly into Word or PowerPoint, giving good reproduction on screen and (usually) in print. Luckily, Visio will import SVG files. The steps to achieve this are:
* Convert MP to PDF (see above).
* Use [http://www.tlhiv.org/MetaPost/tools/mptosvg MPtoSVG] to convert to SVG.
* Load SVG into Visio.
* Save as VSD file from Visio.
* Import VSD into Word or PowerPoint.
Phew!
[[Category:Graphics]]
[[Category:MetaPost]]

Navigation menu