General ⇒ Figure infringes on text
Figure infringes on text
I am writing a book with latex, and the template is given to me. My trouble occurred when I typed the typical command
\begin{figure}[!h]
\centering
\includegraphics[width=0.4\textwidth]{III-1-epi.eps}
\caption{Effects of Epivir/PI on treated population in
California.}\label{epivir}
\end{figure}
and the figure entered into the text. Changing to [!t] made things worse, since the page format was not even respected (chapter and else).
What should I do? I add that I use miktex with winedt as interface.
Thanks in advance.
The master ' file definitions are below:
\documentclass[11pt]{book}%Specifies the document style
\usepackage{graphicx}
%%%%%%%%% Nova 7x10 %%%%%%%%%
\setlength{\textheight}{8in} % 11.0 - 1.125 - 0.875
\setlength{\textwidth}{5.5in} % 8.5 - 1.375 - 1.125
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
%%%%%%%%% Nova 7x10 %%%%%%%%%
\usepackage{index}%Runs index style
% indices
\makeindex%Creates index at the end of the book
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Figure infringes on text
perhaps there's something wrong with the eps file, maybe the bounding box is not correct. Could you post this file (compressed/zipped) as attachment? Then we could examine it. You will find Browse and Add the file buttons below the editfield.
Stefan
Re: Figure infringes on text
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Figure infringes on text
- Attachments
-
- III-1-epi.zip
- (6.12 KiB) Downloaded 207 times
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Figure infringes on text
I used epstool (under Linux) to fix the bounding box. I will attach the file. Does it look better?
Stefan
- Attachments
-
- corrected.eps.zip
- (6.11 KiB) Downloaded 206 times
Re: Figure infringes on text
Indebted.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Figure infringes on text
I used just two lines at the command line:
Code: Select all
epstool -b -t4 --output EPSt4-file III-1-epi.eps
epstool -p --output corrected.eps EPSt4-file
Alternatively you could use pdflatex (PDFTeXify) and include the pictures as pdf files, just export them to pdf before, not to ps/eps. That would be my choice.
Stefan
Re: Figure infringes on text
Many thanks.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Figure infringes on text
One reason not to use pdflatex could be the useful package pstricks. But other problems caused by switching to pdflatex perhaps could be solved easily by modifying some lines in the preamble like driver options.
Stefan