Graphics, Figures & Tablesplacement of figures and text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
karthiks
Posts: 5
Joined: Thu Jul 30, 2009 4:29 pm

placement of figures and text

Post by karthiks »

Hey,

This is my maiden post and sorry for not introducing myself properly before this. I have a serious issue. I am due to submit my thesis in a few days and I am running into problems regarding placement of figures and text :(

My code is as follows:

Code: Select all

\documentclass[12pt,a4paper,oneside]{report}
\usepackage{makeidx}
\usepackage{amsmath,amsfonts,amssymb,epsfig}
\usepackage{graphicx,amsthm}
\usepackage{latexsym,enumerate}
\usepackage{epsfig,psfig,subfigure}
\usepackage{fancyheadings,setspace,url}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{appendix}

\being{document}
\begin{figure}[h!]
\centering
\subfigure[Average fractal dimensions for subject 1 listening to classical music]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilcldavg}
\label{fig:eilcldavg}
}
\subfigure[Average fractal dimensions for subject 1 listening to rap music]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilrapdavg}
\label{fig:eilrapdavg}
}
\end{figure}

\begin{figure}[h!]
\centering
\subfigure[Average fractal dimensions for subject 1 listening to rock music]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilrockdavg}
\label{fig:eilrockdavg}
}
\caption{Plots of average fractal dimensions for subject 1 listening to different kinds of music}
\end{figure}
As can be seen from the three figures above, etc etc etc etc.....
\end{document}
the problem is the third figure gets placed in a page of its own and the text below (as can be seen...) gets placed above the figures whereas I want it after the figures.

Suggestions please :)

Thanks a lot for your time. in case i have missed something out, please let me know so that i can provide the information.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

placement of figures and text

Post by Stefan Kottwitz »

Hi Karthiks,

welcome to the board!
Try more options, like [!htb] instead of just [!h], or \clearpage after the third picture, or \FloatBarrier of the placeins package or one of the options here: Prevent floating of figures or tables.

Stefan
LaTeX.org admin
karthiks
Posts: 5
Joined: Thu Jul 30, 2009 4:29 pm

Re: placement of figures and text

Post by karthiks »

Thank you Stefan. I ended up using \usepackage{float} as I couldn't figure out subfigure package and caption package. Am pressed for time too :(
karthiks
Posts: 5
Joined: Thu Jul 30, 2009 4:29 pm

placement of figures and text

Post by karthiks »

Same document as above only i've started using 'float' package and 'subfigure' package. This is a question for the subfigure :)

How do I remove the page numbers showing up in TOC for subfigure? I have a central caption for the figures

Code: Select all

\begin{figure}[H]
\centering
\subfigure[Average for 1.2]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilcldavg}
\label{fig:eilcldavg}
}
\subfigure[Average for 1.1 ]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilrapdavg}
\label{fig:eilrapdavg}
}
\end{figure}

\begin{figure}[H]
\centering
\subfigure[Average for 1]
{
\includegraphics[height=0.6\textwidth, width=\textwidth]{eilrockdavg}
\label{fig:eilrockdavg}
}
\caption{Plots of average values}
\end{figure}
all I want is for no page numbers to appear for the subfigures in the TOC. I want the captions but no page numbers. The only page number to appear should be for the main caption namely "Plots of average values".

Sorry for rambling. Thanks for your time and help
karthiks
Posts: 5
Joined: Thu Jul 30, 2009 4:29 pm

Re: placement of figures and text

Post by karthiks »

sorry for bumping it up :) any suggestions?
Post Reply