True WYSIWYG LaTeX System
Windows     Mac     Linux  

Import MetaPost Graphics

Import MP-files using graphics package. [V 11.50]

Beginning from BaKoMa TeX 11.50 import of MetaPost files is as simple as 1-2-3. Just use graphics package:



Test of import MetaPost graphics:



This approach is ideal for WYSIWYG editing (i.e. for TeXWord) because it have efficient caching and will not slow down editing process.

Another Packages

There are another LaTeX packages to integrate MetaPost graphics into LaTeX documents.

However, these packages will run Metapost at every keystroke in TeXWord without any caching. It may noticeably degradate responce of TeXWord. In this reason, we recommend to import MetaPost figures from separate files using \includegraphics.

We explore all such packages available on CTAN. Results are on below table.

  • mpostinl (LPPL) - V 1.12 - Jun-2017 - Looks as most supported package.
  • mpgraphics (LPPL)- V 0.3 - Apr-2013 - Looks as stopped in middle.
  • gmp - (LPPL) V 1.0 (C) 2011 by Enrico Gregorio
  • emp (GNU) - V 1.3 11/1997, Docs: 2008,2011. GNU !!!

Sample of using gmp package is below:



fill z1--z2--z3--z4--
End of test.

Work around to use such packages.

If packages are slow down responce of TeXWord becase of running external programs such as MetaPost we recommend do following:
  • Disable \write18 in TeXWord
  • Open your document simulteniously in Centaur.
  • Run TeX from Centaur will run all programs and create proper preview in TeXWord.

MetaPost version included into BaKoMa TeX

BaKoMa TeX beginning from V 11.50 includes MetaPost 2.0 build without PNG backend and with dynamically linked MPFR and MPIR libraries.

Date: 2019/07/02 20:26:44 CEST From: test123 From-IP: From-Mail: Size: 637

Upload your file