RSS

 
WinEdt Macro Library  | LaTEX previous macro  | next macro

MPPreview

[Macros for WinEdt 7 are available here.]

Description

The MetaPost Preview macros simplify the editing-viewing process of MetaPost (and MetaFont) source files in WinEdt. It provides configurable menu commands that output a PostScript file (for WinEdt version 5.6 or older) resp. PDF file (for WinEdt version 6) containing all or selected figures from the source .mp file.

Usage

For WinEdt 5.6 or older:

Choose Accessories | MetaPost Preview All or Accessories | MetaPost Preview One while editing a MetaPost file <yourfile>.mp (or click the corresponding toolbar button if you configured it). Figures are generated and combined in a resulting file <yourfile>_preview.ps. The result is presented to you in GSView.

Configurable options are accessible through Accessories | MetaPost Preview Config...:

  • Delete figure files after preview
    If checked, all generated figure files will be deleted after generating the preview
    <default value>: checked -> figure files are deleted after preview
  • Keep .01 -> .09 extensions after preview (vs. .1 -> .9)
    If checked, .1 to .9 figure file extensions are converted to .01 to .09 extensions
    <default value>: unchecked -> extensions .1 to .9 are kept

For WinEdt 6:

To preview the figures in the MetaPost .mp file you're currently editing, first compile the document (choose TeX | MetaPost | MetaPost), then choose TeX | MetaPost | MetaPost Preview All (for all figures) or MetaPost Preview One (for one specific figure) (or click the corresponding toolbar button). The output files are put in a resulting <yourfile>_preview.pdf file, which is then opened in the PDF reader.

Installation Instructions

For WinEdt 5

Unzip the MPPreview_5.zip archive, open the macro file Install_MPPreview.edt in WinEdt, and execute it by choosing Macros | Execute Current Macro. This copies all relevant files to their correct location and adds 3 menu items to your Accessories menu with corresponding menu images and toolbar icons.

For WinEdt 6

Unzip the MPPreview_6.zip archive open the macro file Install.edt in WinEdt, and execute it by choosing Macros | Execute Current Macro. This copies all relevant files to their correct location and adds a submenu MetaPost to your TeX menu with corresponding menu images and toolbar icons.

Download

For WinEdt 5.6 or older:

LaTeX\MPPreview_5.zip

Macro contributed by Arnout Standaert <arnoutstandaerthotmail.com>.

For WinEdt 6:

LaTeX\MPPreview_6.zip

Macro contributed by Karl Koeller <karlkoellergmail.com>.

WinEdt Macro Library  | LaTEX previous macro  | next macro