RSS

 
WinEdt Macro Library  | LaTEX previous macro  | next macro

MPPreview  

Description

The MetaPost Preview macros simplify the editing-viewing process of MetaPost source files in WinEdt. It provides configurable menu commands that output a PostScript file containing all or selected figures from the source .mp file.

The package consists of the following files:

MPPreview_readme.txt help file
Install_MPPreview.edt installation macro, copies all files to %B\Macros\LaTeX\MPPreview\ and generates the menu items.
Uninstall_MPPreview.edt uninstall macro, undoes all the above
MPPreview.edt main macro file, linked to Accessories | MetaPost Preview...
MPPConfig.edt configuration macro, linked to Accessories | MetaPost Preview Config...
MPPrevAllM.bmp, MPPPrevAllTB.bmp,
MPPrevOneM.bmp, MPPPrevOneTB.bmp,
MPPConfM.bmp, MPPConfTB.bmp
menu image and toolbar icon bitmaps
shell.bat small DOS .bat file, needed for MPPreview.edt to work

Usage

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

Installation Instructions

Unzip the MPPreview.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.

The uninstallation procedure is extensively described in the readme file.

Download

LaTeX\MPPreview.zip

Macro contributed by Arnout Standaert <arnoutstandaerthotmail.com>.

WinEdt Macro Library  | LaTEX previous macro  | next macro