Graphics, Figures & TablesEPS Figure does not resize

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

EPS Figure does not resize

Post by Rodo »

Hi,

I created a figure in visio. After that I printed it with the printer Apple LaserWriter 12/640 PS for inclusion in Latex. The resulting EPS figure comes right and can be seen with GSview.

However, the problem comes when including it in Latex. It gives me the warnings "Overfull \hbox" and "Float too large for page by 178.59pt" and it does not appear in the resulting doc. I tried to resize the figure with scale, height and weight options of the \includegraphics command but does not work. Anyone know how to solve this?

This is the code and EPS figure:

Code: Select all

\begin{figure} 	
\includegraphics[scale=0.5]{Figures/csmaca.eps} 
\caption{The CSMA/CA slotted mechanism} 
\label{fig:csmaca}  
\end{figure}
Attachments
csmaca.eps
The EPS figure
(75.93 KiB) Downloaded 430 times
Last edited by Rodo on Thu Aug 12, 2010 7:39 pm, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

EPS Figure does not resize

Post by CrazyHorse »

Rodo wrote: I created a figure in visio. After that I printed it with the printer Apple LaserWriter 12/640 PS for inclusion in Latex. The resulting EPS figure comes right and can be seen with GSview.
there is a lot of whitespace around the image.
You should crop the image before using ist.

Herbert
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

Re: EPS Figure does not resize

Post by Rodo »

Thanks for this.

I used the PS to EPS option in GSView and it automatically calculated a new boundary box for me. Now I do not see any warnings when compiling and the caption appears in the Postscript output where the figure should be but not the figure itself (I only see a white space) :( Any ideas?
Attachments
csmaca.eps
The new EPS figure
(78.42 KiB) Downloaded 440 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

EPS Figure does not resize

Post by CrazyHorse »

Rodo wrote:Thanks for this.

I used the PS to EPS option in GSView and it automatically calculated a new boundary box for me. Now I do not see any warnings when compiling and the caption appears in the doc where the figure should be but the figure does not appear (I only see a white space) :( Any ideas?
I have no problem:

Code: Select all

\listfiles
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}    
\fbox{\includegraphics[width=\linewidth]{/tmp/csmaca}}    
\end{figure}

\end{document}
Herbert
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

EPS Figure does not resize

Post by Rodo »

This is strange. Your example does not work for me. The generated postscript does not show the figure. Although I can see it appear and disappear when I zoom in or out :?

The code used and the file are attached.

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}   
\fbox{\includegraphics[scale=0.5]{csmaca}}   
\end{figure}
\end{document}
Attachments
p.ps
(100.81 KiB) Downloaded 382 times
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

EPS Figure does not resize

Post by Rodo »

Ok, an update..

I saw the same problem at http://programming.itags.org/tex/128579/ and the solution is to convert the file to PS in GSView using epswrite instead of the PS to EPS option. However the maximum resoultion allowed is 300 which decreases a lot the quality of the figure (see it attached)

So I still do not know what to do...
Attachments
csma.eps
EPS file with resolution of 300
(15.31 KiB) Downloaded 415 times
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

Re: EPS Figure does not resize

Post by Rodo »

I found a work around that works for me in order to produce a figure from Visio in high quality so it can be embedded in Latex.

1) Visio to pdf using PDF printer
2) PDF export to EPS using Acrobe Pro
3) Automatically resize bounding box using GSView

If anybody has a quicker way please let me know. At least now the figure appears in the postcript produced by Latex and I can resize it using commands without losing quality :-)
Post Reply