[pstricks] PSTricks graphs in a word document

Vinay Kanetkar vkanetka at uoguelph.ca
Wed Oct 20 14:59:49 CEST 2010


I have used pstricks figures in powerpoint and word using dvi directly. 

My dvi previewer (PcTex) allow you to highlight section that you want copy 
and then I can paste in any other windows software. It seems to work fine. 

Here is one such illustration.

Vinay

----- Original Message -----
From: "Alexander Grahn" <A.Grahn at fzd.de>
To: "Graphics with PSTricks" <pstricks at tug.org>
Sent: Wednesday, October 20, 2010 8:44:52 AM
Subject: Re: [pstricks] PSTricks graphs in a word document

On Wed, Oct 20, 2010 at 04:44:21AM -0700, bereket T wrote:
>Dear all:
>
>I wish to use graphs drawn using PSTricks  into a Microsoft office word document. I tried by first converting the dvi file into pdf. Then copied and pasted them into the word document. Unfortunately, the graphs got blurred and are not as clear as in the pdf file when they get printed. 

WMF/EMF is the only vector format Word supports natively, and AdobeReader
rasterizes the graphics while copying them using the Snapshot tool.

But you can still insert Encapsulated Postscript (EPS) files as vector
graphics into a Word document, provided the document is finally printed
on a Postscript printer or distilled to PDF using Acrobat or ps2pdf.

You will have to proceed as follows:

1) You need a one-page Postscript file of your PSTricks graphic, whose
page borders tightly encompass the graphic. This can be achieved by
means of the preview LaTeX package:

\documentclass{article}
\usepackage{pstricks}
\usepackage[tightpage,active]{preview}

\begin{document}
\begin{preview}\begin{pspicture}...
...
\end{pspicture}\end{preview}
\end{document}

2) Create an EPS with an embedded rasterized preview from the
LaTeX->dvips->ps2pdf output:

ps2epsi myfig.ps myfig.eps

The embedded preview allows you to identify the graphic while working
on the document in the Word application.

3) Embed the EPS into your Word doc via Insert->Picture->From File

4) Print the Word doc via a Postscript printer to get hard-copies or
a Postscript file, or distill it to PDF using Acrobat or convert the PS
output from the printer to PDF using ps2pdf.

Alexander

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PieChart.doc
Type: application/msword
Size: 80896 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20101020/f5e4c02f/attachment-0001.doc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: torte0.tex
Type: text/x-tex
Size: 1477 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20101020/f5e4c02f/attachment-0001.bin>


More information about the PSTricks mailing list