Graphics, Figures & Tableseps figures blocking out text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ds
Posts: 2
Joined: Tue Feb 10, 2009 9:47 am

eps figures blocking out text

Post by ds »

I'm using MikTex 2.7 fully updated, with winedt on a windows vista (32 bit) machine. My problem is when I include eps files that I have changed the bounding box (using GSview), the white space that appeared in the original figure can block out the text above the figure in all the dvi, ps and pdf outputs respecively. I never had this problem on my older xp computers, and don't know why it is occurring now. It occurs for all my eps files, no matter how they are generated. Is there a way in LaTex to set the figures as being behind the text, or have transparent fill?

Thanks a bunch

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

eps figures blocking out text

Post by localghost »

It could help to provide such a file so we could examine it. Please attach one to your next post. Instead of changing the bounding box you should use the options of the graphicx package to clip the desired part.


Best regards and welcome to the board
Thorsten¹
ds
Posts: 2
Joined: Tue Feb 10, 2009 9:47 am

Re: eps figures blocking out text

Post by ds »

Thank you for responding, here are some code/files

I use in the tex file

\begin{figure}[ht]
\begin{center}
\includegraphics[ width=0.5\columnwidth]{test0.eps} \\
\caption{Geometry for signal measurement on element $i$.
\label{fig:Japp3}}
\end{center}
\end{figure}

and have attached the pdf of the undesired effect, unfortunately the forum does not allow me to upload eps images/

Thanks again,
Geoff
Attachments
test0b.pdf
page from document with effect demonstrated
(23.2 KiB) Downloaded 671 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: eps figures blocking out text

Post by localghost »

Maybe I was not clear enough, but this is not what I asked for. Please attach the EPS file to your next post. Put the original and the modified file into a ZIP archive. This kind of file is accepted by the server.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: eps figures blocking out text

Post by kaiserkarl13 »

I don't remember how or if I solved this particular problem, but I had the same problem with EPS images about two or three years ago when submitting an article.

The problem is that TeX is not interpreting your BoundingBox lines correctly, and is therefore displaying the whitespace around it. I discovered this as I was submitting the paper: I use PDFLaTeX with images in EPDF as converted with epstopdf, which gets the bounding box correct, but the journal uses LaTeX, which wasn't getting the bounding box correct.

If I fixed it, it was by editing the EPS file (any text editor will do): replace the line that says "%%BoundingBox: (atend)" with the line at the bottom that actually has the bounding box in it. This MAY help TeX size the figure correctly and crop it in the appropriate places.

If not, I recommend either allowing more space around your images so they don't cover up text, or simply converting all your images to PDF and using PDFLaTeX.

Best of luck!
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: eps figures blocking out text

Post by daleif »

usually it is the other way around. There are many programs that does not provide the correct bounding box in the EPS. Many programs on Windows does this.

It can often be fixed using the clip option of \includegraphics

otherwise try \fbox{\includegraphics[...]{...}} to visualise the size of the picture as TeX sees it. This often help realise that the bounding box is wrong.
Post Reply