Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaTeX table --> MS PowerPoint or MS Word

4,160 views
Skip to first unread message

Alan Wehmann

unread,
Dec 1, 1999, 3:00:00 AM12/1/99
to
I've been unable to extract a table from a LaTeX document and insert
it into MS PowerPoint & am looking for tips for doing this. I've
tried making the table into an Encapsulated Postscript file (EPSF--via
dvips -E) and inserting that into the PowerPoint slide, but the epsf
file does not print.

I tried inserting the eps file into MS Word and it didn't print there
either. With or without a wmf preview inserted by GSview didn't
matter, for either application.

The brute force option of retyping the table does not count as a
solution.

I have a similar problem with some graphics I wish to insert in
PowerPoint, but I found a way around that problem.

I apologize if there is an existing thread on this. I did spend a
finite amount of time looking.

--
Alan Wehmann
weh...@fnal.gov

Thomas Kuehnel

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
In article <v0xyabe...@fsgi03.fnal.gov>,
If the table fits on a single page in latex, convert the dvi to ps and
then convert the ps to a format POwerStuff can read. The following
script is designed to do a whole set of slides into tga format but will
also work for a single page.
Alternatively you could use a tool that does a screendump/shot. The save
as option usually provide gif, jpeg etc
##!bin/sh
#
# Thomas Kuehnel 21.10.1997
#
# Shell Script to convert a latex output (dvi) file into a file
# suitable for direct printing to a slide printer (tga)
#
# For unknown reasons you have to run first dvips for all the files
# and then do the conversion in the second loop. Otherwise some fonts
# are not found
#
FILENAME=/gd/users/kstku1/Uni/Tex/phd/Conference/SEG/SEG99/Tga/seg99_talk
TEXFILE=/gd/users/kstku1/Uni/Tex/phd/dina4s

#-----------------------------------------------------------------
# Give all the numbers of your output pages (2 3 4 5 6 7 etc)
#-----------------------------------------------------------------
for i in 2 3 4 5 6 7 8 9 10;
do
#
# Name of the output files
#
file=${FILENAME}_${i};

#-----------------------------------------------------------------
# Create a PostScript file for every page
#-----------------------------------------------------------------
dvips -f ${TEXFILE} -n1 -p$i -x950 -D600 -Z -o $file.ps;
done

for i in 2 3 4 5 6 7 8 9 10;
do
file=${FILENAME}_${i};
#-----------------------------------------------------------------
# Convert the PostScript file to a ppm file, use resolution 300 and
# paperzise A4
#-----------------------------------------------------------------
gs -r300 -sOutputFile=$file.ppm -sDEVICE=ppmraw -sPAPERSIZE=a4 $file.ps
quit.ps < /dev/null

#-----------------------------------------------------------------
# Convert the ppm file to the slideprinter format (tga)
#-----------------------------------------------------------------
convert -verbose -rotate 90 -compress RunLengthEncoded $file.ppm
$file.tga;

#-----------------------------------------------------------------
# Remove the huge ppm file
#-----------------------------------------------------------------
rm -r $file.ppm;

#-----------------------------------------------------------------
# convert the tga file to a tga file which has the same geometry as the
# original PostScript file and add a "s" to the filename
#-----------------------------------------------------------------
filesmall=`echo $file.tga | sed -e 's|.tga|s.tga|'`;
echo $filesmall;
convert -verbose -geometry 842x596 $file.tga $filesmall;
echo $file.tga
done

exit 0

Sent via Deja.com http://www.deja.com/
Before you buy.

David Wilson

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
Alan Wehmann wrote in message ...

>I've been unable to extract a table from a LaTeX document and insert
>it into MS PowerPoint & am looking for tips for doing this. I've
>tried making the table into an Encapsulated Postscript file (EPSF--via
>dvips -E) and inserting that into the PowerPoint slide, but the epsf
>file does not print.
>
>I tried inserting the eps file into MS Word and it didn't print there
>either. With or without a wmf preview inserted by GSview didn't
>matter, for either application.
>
>The brute force option of retyping the table does not count as a
>solution.
>
>I have a similar problem with some graphics I wish to insert in
>PowerPoint, but I found a way around that problem.
>
>I apologize if there is an existing thread on this. I did spend a
>finite amount of time looking.
>
The easiest solution may be to forget PowerPoint and generate
the entire presentation from LaTeX (with a full screen pdf as the
end product).

Otherwise, you need to forget using .eps with PowerPoint, because
all you will get on screen will be the preview (if there is one), which
is usually not all that great quality. Instead, you could use a dvi
previewer which allows cutting and pasting to the Windows clipboard
in wmf format (then your pasted table will resize OK, but you'll
need to be careful to ensure all necessary fonts are carried around
with your PowerPoint presentation).

David Wilson


Louis Vosloo

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
Alan Wehmann wrote:

> I've been unable to extract a table from a LaTeX document and insert
> it into MS PowerPoint & am looking for tips for doing this. I've
> tried making the table into an Encapsulated Postscript file (EPSF--via
> dvips -E) and inserting that into the PowerPoint slide, but the epsf
> file does not print.
>
> I tried inserting the eps file into MS Word and it didn't print there
> either. With or without a wmf preview inserted by GSview didn't
> matter, for either application.
>
> The brute force option of retyping the table does not count as a
> solution.

It depends on the TeX System you are using. Some let you copy to
the clipboard and paste into whatever application you are using.

--
http://www.yandy.com/unique.htm

Rolf S. Arvidson

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
You can also just copy (i.e., control-C) the image from
ghostview/ghostscript and paste the buffer into Powerpoint--I have done this
many times, and although of course the resolution suffers, in many cases it
does not look too terrible.

Rolf S. Arvidson
Rice University
Dept. of Geology and Geophysics
email: rsa...@ruf.rice.edu
web: http://zephyr.rice.edu/department/facilities/geochemistry/

Alan Wehmann <weh...@fnal.gov> wrote in message
news:v0xyabe...@fsgi03.fnal.gov...


> I've been unable to extract a table from a LaTeX document and insert
> it into MS PowerPoint & am looking for tips for doing this. I've
> tried making the table into an Encapsulated Postscript file (EPSF--via
> dvips -E) and inserting that into the PowerPoint slide, but the epsf
> file does not print.
>
> I tried inserting the eps file into MS Word and it didn't print there
> either. With or without a wmf preview inserted by GSview didn't
> matter, for either application.
>
> The brute force option of retyping the table does not count as a
> solution.
>

> I have a similar problem with some graphics I wish to insert in
> PowerPoint, but I found a way around that problem.
>
> I apologize if there is an existing thread on this. I did spend a
> finite amount of time looking.
>

> --
> Alan Wehmann
> weh...@fnal.gov

Alan Wehmann

unread,
Dec 4, 1999, 3:00:00 AM12/4/99
to
Upon further investigation, in MS PowerPoint 97 SR-1 the postscript
that gets generated inserts postscript code to handle the insertion of
the eps file (positioning and scaling and, in principle, cropping).
In this insertion there is a line of code that sets the gray level to
white (my guess is that this has some connection with the cropping).
It fails to save the graphics state ahead of that line. When it later
restores the graphics state,the gray level stays as white. The the
eps file generated by dvips -E does not set the gray level to black,
so what the eps file paints on the page is white and therefore
invisible. The solution is to insert a line into the eps file
generated by dvips that sets the gray level to black. The eps
insertion into MS PowerPoint then works okay.

In the case of Canvas on my Mac and the Adobe printer driver, the
combination does set the gray level to black (I believe this after
looking at the eps file) & that is why insertions of eps from a Canvas
drawing were working in MS PowerPoint.

Alan Wehmann <weh...@fnal.gov> writes:

> I've been unable to extract a table from a LaTeX document and insert
> it into MS PowerPoint & am looking for tips for doing this. I've
> tried making the table into an Encapsulated Postscript file (EPSF--via
> dvips -E) and inserting that into the PowerPoint slide, but the epsf
> file does not print.
>
> I tried inserting the eps file into MS Word and it didn't print there
> either. With or without a wmf preview inserted by GSview didn't
> matter, for either application.
>
> The brute force option of retyping the table does not count as a
> solution.
>
> I have a similar problem with some graphics I wish to insert in
> PowerPoint, but I found a way around that problem.
>
> I apologize if there is an existing thread on this. I did spend a
> finite amount of time looking.
>
> --
> Alan Wehmann
> weh...@fnal.gov

--
Alan Wehmann
weh...@fnal.gov

Ian Hutchinson

unread,
Dec 5, 1999, 3:00:00 AM12/5/99
to
Alan Wehmann wrote:
>
> I've been unable to extract a table from a LaTeX document and
> insert [attempts deleted]

Get TtH [http://hutchinson.belmont.ma.us/tth]

Use it to translate your file to HTML.

Import the HTML into MSWord.

Voila!

Ian Hutchinson.

0 new messages