I am having some problems using sub-floats. I am trying to put two images side by side in the same row to avoid wasting space, for which I used sub-floats. However, they touch each other that it is hard to read their captions at first. See this output:
Any idea how to solve this problem?! Moreover, those figures are not really related to each other (although they are illustrating the same problem), so I think they should be figure 2.2 and 2.3 rather than 2.2a and 2.2b, right? If yes, how can I do that?!
EDIT: Here is the code I used to produce this:
\usepackage{graphicx}
\usepackage{cite}
\usepackage{subfig}
\begin{figure}
\centering
\subfloat
[
Halper et al. \cite{HHS01} pointed out that in a configuration like this, the
hemicube method of Philips et al. \cite{PBG92} would fail to find the position
P to avoid occlusion while shooting the target. Image taken from \cite{HHS01}.
]
{
\label{fig:halper1}
\includegraphics[width=0.45\textwidth]{halper1}
}
\subfloat
[
Volumes of partial and total occlusion. Image taken from \cite{CN05}.
]
{
\label{fig:occlusion_cones}
\includegraphics[width=0.45\textwidth]{occlusion_cones}
}
\caption{}
\label{fig:halper1}
\end{figure}
subfig
package, but it was more a general comment. Having a complete example helps those who want to help you, as we can just copy-paste the entire code and compile it. To nitpick a little more, your example is still not complete, as there is no\documentclass
and nodocument
environment.