Changes

Jump to navigation Jump to search
8 bytes removed ,  21:52, 6 June 2020
m
no edit summary
== Exporting MetaPost drawings as PDF files ==
PDF can be generated from MetaPost code using [http://www.pragma-ade.com/general/sources/mptopdf.pdf MPtoPDF] or <code>texexec --mptex</code>. But where a drawing uses ConTeXt to generate formatted text or labels, it is necessary to generate a document which contains the graphic.
See also {{cmd|startMPpage}}.
== Importing MetaPost drawings into MS Word or PowerPoint ==
MS Word can import pictures in many graphics formats, but not PDF. Two of the available options are:
* Use encapsulated postscript (EPS). This provides graphics which print perfectly (on a 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 EPS ===
MetaPost drawings can be converted to encapsulated postscript as follows:
* Create a PDF drawing (see "Exporting MetaPost drawing as PDF files" above).
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:
* Create a SVG file directly by running metapost 1.2 with <tt>-soutputformat="svg"</tt>

Navigation menu