General ⇒ Figures Appearing in random places
Figures Appearing in random places
I've created a document using
\documentclass[12pt,a4paper]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}
I have a text body of about 15 pages with a bibliography at the end.
Inside my text I have a few figure which i need to be displayed in certain places, however, when compiling the pdf the figures all get dumped at the bottom, each holding there own page.
the command im using for these figures (and a bit of text either side) are as followed:
using a script called pplane7 \cite{pplane} created by John C.
Polking we can see how the nullclines look in the
$(\hat{U}_1,\hat{U}_2)$ plane.
\begin{figure}[h]
\caption{This is the Nullclines of the equations shown in (3.7) and
(3.8). With $\hat{S}=1$, $\hat{k}_0=1$ and $\hat{\tau}_1=2$ }
\begin{center}
\includegraphics[width=0.8\textwidth]{Figure2(Nullclines)}
\end{center}
\label{nullclinesfig}
\end{figure}
So as we can see that
Idealy I would prefer to have the figure appear where I've placed it (i.e. actualy using the [h]). however i can live with the figures appearing at the top of the page. What I can't live with is it all being dumped at the bottom of my pdf. [the files have been converted to .eps and .pdf files]
Any one got any clues..
[just ask if you need more info]
Thanks in advance, Tom.
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
Re: Figures Appearing in random places
B.A.
Figures Appearing in random places
Text
Graph
emptyspace
Text
how do i get rid of this horrid empty space?
[im currently using [h] is there a different h you mean in the float controls?]
Re: Figures Appearing in random places
A simpler solution might be to try \raggedbottom in the preamble (the default is \flushbottom).
B.A.
Re: Figures Appearing in random places
Just to sum up my findings for others reading this thread...
The problem which I had is that my pictures were all been dumped at the end of my compiled pdf.
After spending a good few days trying to solve the problem I had a thought that the problem may be at the root of the situation.
The program I was using [Advance Batch Converter(ABC)] to convert my bmp's to eps' was creating added space to the bottom of the picture. So when it appeared that the pictures were just being dumped at the end it was infact because they couldnt fit anywhere else.
Solution, Photoshop can save images in the eps format. I know this program costs money, but if it can do it without creating the extra nothingness at the bottom of the image then i'm sure other 'free' programs can do it.
Good luck to anyone that has this problem.
Tom
Figures Appearing in random places
- While you are writing a draft version of the document, to see exactly the space occupied by a picture, frame it. So, instead of
put something like
Code: Select all
\includegraphics[your options]{your file}
In this way, you can easily see if the picture contains spurious space.Code: Select all
\setlength{\fboxsep}{0pt} \fbox{\includegraphics[your options]{your file}}
- You can easily remove parts of an image (as the superfluous space that it may contain) through several options of \includegraphics. Download the epslatex document and look for the viewport, trim and clip options of \includegraphics in Section 7.5 (Tables 2 and 3).