Date: Tue, 18 Sep 2001 17:24:52 -0400 (EDT) From: Brian Junker Subject: Splus figures in MSWORD All, Several of you have been wondering how to include Splus figures in MS Word documents. There are two approaches: 1. Make the figure in Splus2000 on a windows machine, and save it to a windows metafile (.wmf). Word will import wmf figures. However this is not very workable since going back and forth between Splus on Suns and Splus on windows is not very pleasant. 2. Save the figure as usual as a .ps file, e.g. use the ps() command that we have talked about in class. In this example, I'll call the file "myfile.ps". Then get out of Splus and convert the .ps file to a format msword can deal with: (a) At the UNIX command prompt, type convert myfile.ps myfile.tif [If this doesn't work, try: gs -sDEVICE=tiffg4 -sOutputFile=myfile.tif -dBATCH myfile.ps This will generate lines like the following on your screen: GNU Ghostscript 5.10 (1998-12-17) Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. Loading NimbusSanL-Regu font from /usr/local/share/ghostscript/fonts/n019003l.pfb... 1956260 637254 1320184 31583 0 done. >>showpage, press to continue<< After these lines have been printed on your screen, press enter to quit the program.] Now you should have a file in your local directory called "myfile.tif". (b) View the file by typing "xv myfile.tif &". If the picture needs to be rotated, right-click on the picture to bring up a tools window, and use the rotate button. Then of course re-save the rotated picture (as an uncompressed tiff file), and quit xv [by pressing "q", or clicking the "quit" button if you see it]. (c) Transfer the "myfile.tif" to your PC (using WS-FTP or whatever you usually use to transfer files to a PC from andrew-land [be sure to transfer it as a binary file though!]). (d) MS word will now be able to import "myfile.tif", using the "Insert -> Picture -> From File..." dialog from the pulldown menus. Once it's in MS word, you can resize it and position it however you like. Hope this helps, -BJ Brian Junker (412) 268 - 2718 Department of Statistics brian@stat.cmu.edu 232 Baker Hall FAX: (412) CMU-STAT Carnegie Mellon University or (412) 268-7828 Pittsburgh PA 15213 USA WWW: http://www.stat.cmu.edu/~brian/