Donate
You find LaTeX Community useful? Please donate! Learn why!
Who is online
In total there are 17 users online :: 2 registered, 0 hidden and 15 guests (based on users active over the past 5 minutes)Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm
Users browsing this forum: achim, Google [Bot] and 15 guests
Figure infringes on text
11 posts
• Page 1 of 2 • 1, 2
Figure infringes on textDear All,
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
Re: Figure infringes on textHi,
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 LaTeX Community Moderator
TeXblog.net
Re: Figure infringes on textMany thanks for the help. The file is attached, it was created with openoffice and then saved in eps format with pdfcreator
Re: Figure infringes on textHi,
the eps file is not attached yet. Stefan LaTeX Community Moderator
TeXblog.net
Re: Figure infringes on textSecond try... sorry
Re: Figure infringes on textHi,
I used epstool (under Linux) to fix the bounding box. I will attach the file. Does it look better? Stefan
LaTeX Community Moderator
TeXblog.net
Re: Figure infringes on textIt works pretty well. I will have countless other figures to insert, how should I configure openoffen/ pdfcreator?
Indebted.
Re: Figure infringes on textHi,
I used just two lines at the command line:
If you are able to use epstools under Windows you could write a short batch file for it and use a parameter for the filename or even run over a complete directory. 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 LaTeX Community Moderator
TeXblog.net
Re: Figure infringes on textPdfLatex seems to work, but that will create more problems than it solves. I will try epstool, just need to figure out the whole thing under vista.
Many thanks.
Re: Figure infringes on textI prefer pdfLaTeX. If the result has to be pdf, it may prevent problems caused by conversion from dvi to ps or from ps to pdf. I better use pdf features directly instead of letting them be embedded into dvi specials or postscript commands. Further there exist some useful packages for pdftex like hyperref and microtype, that may work with dvi but not as good as with pdflatex.
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 LaTeX Community Moderator
TeXblog.net
11 posts
• Page 1 of 2 • 1, 2
Who is onlineUsers browsing this forum: achim, Google [Bot] and 15 guests |




