Compressed epsfigures (LaTeX)

1998-11-20 Thread C.J.LAWSON
Hello everyone,
I would like to store postscript images (ps,eps) in compressed
form and have them decompressed for use during my LaTeX run. I have to
date been unable to figure out if this can be done and if so, how to do
it. 
Please if anyone can and would be of assistance in this matter,
could you extend the favour to me.

Regards

PS Just as an accademic question, can the same thing be done with the
LaTeX (.tex) files also?



---
Jonathan Lawson 
Thermal Processes Unit 
Department of Applied Energy and Optical Diagnostics 
School of Mechanical Engineering, 
Cranfield  University, 
Cranfield, Bedford. UK.  
email [EMAIL PROTECTED]
  
How beautiful upon the mountains are the feet of him that bringeth good 
tidings, 
that publisheth peace; that bringeth good tidings of good, 
that publisheth salvation; that saith unto Zion, 
Thy God reigneth!

Isaiah 
52:7


Re: Compressed epsfigures (LaTeX)

1998-11-20 Thread Alexander Kushnirenko
Hi,

 Hello everyone,
   I would like to store postscript images (ps,eps) in compressed
 form and have them decompressed for use during my LaTeX run. I have to
 date been unable to figure out if this can be done and if so, how to do
 it. 

Yes you can download and unzip compressed *.ps.gz or *.eps.gz files in LaTeX.
Here is example to include partid/partid.ps.gz file in TeX.  You don't need 
anything special in your TeX installation.

...
\usepackage{graphicx}
\usepackage{epsfig}

\begin{figure}[htbp]
  \begin{center}
\includegraphics[width=\textwidth, bb=20 143 575 698]{partid/partid}
\label{fig:partid}
  \end{center}
\end{figure}

Hope that helps,
Sasha.
 
 PS Just as an accademic question, can the same thing be done with the
 LaTeX (.tex) files also?
 
I think yes, but I'm not sure.  In all fairness gzipping *.tex files does not 
gain you a lot of free disk space.
 


Re: Compressed epsfigures (LaTeX)

1998-11-20 Thread Paul Huygen
J. Lawson [EMAIL PROTECTED] wrote:

   I would like to store postscript images (ps,eps) in compressed
form and have them decompressed for use during my LaTeX run. 

Use the graphics or the graphicx package.

1) Suppose you have a postscript picture stored in picture.ps
2) Create a file picture.ps.bb that contains a copy the bounding box
   statement from picture.ps (i.e. one of the first few lines in
   picture.ps that starts with %%BoundingBox and that contains
   four figures.
3) Compress picture.ps with the command gzip picture.ps. This results
   in a file picture.ps.gz
4) Make LaTeX file e.g.
   \documentclass{article}
   \usepackage{graphicx}
   \begin{document}
   \begin{center}
   \includegraphics[width=10cm]{picture.ps.gz}
   \end{center}
   \end{document}
 5) dvips takes care for the uncompression. Most other device drivers support
the graphicx package too.
The graphicx package is very well documented in the book The LaTeX
Companion by Goossens, Rahtz and Mittelbach, ISBN 0-201-85469-4

PS Just as an accademic question, can the same thing be done with the
LaTeX (.tex) files also?

I am shure this can be done using a shell script.

Paul Huygen