[metapost] How to insert MeTaPost into MS Word? Urgent.

Laurence Finston lfinsto1 at gwdg.de
Sat Nov 20 15:39:23 CET 2004


Hello Jan,

-------------------
> How one can insert metapost picture into ms word
> document?
> 
> I tried:
> 
> 1.
> dvips -E -o figure.eps figure.dvi
> 
> 
> 
> Does any one have any idea to help me?
> 

I don't know if this will help, and I don't use MS Word, but I've had good
results from converting EPS to structured PostScript in a similar way to the
one you've described.  I've included my figures individually in TeX files (I
don't use LaTeX) using `\epsffile' in nested boxes (an \hbox in a \vbox),
measured the outer box, set \vsize, \hsize, \voffset, and \hoffset
accordingly, run TeX on it, and then converted the resulting dvi file to
structured PostScript using dvips in the normal way.  I've written a trivial
Emacs-Lisp program to automate this.  I also convert the PS files to PNG,
which works fine, except that they are, of course, not scalable.  

I'll be happy to give you the Emacs-Lisp code if you want it, and whatever
other bits and pieces I've forgotten about, but unfortunately I won't have
access to the machine it's on until Monday.  It might actually be in the GNU
3DLDF distribution;  I don't remember:
http://www.gnu.org/software/3dldf/LDF.html
It would be in 3DLDF-1.1.5.1/DOC/TEXINFO/, or in a subdirectory.

Laurence Finston




More information about the metapost mailing list