I am a novice in Latex. Recently I am trying to use minipage to show some figures. The code I am using is as following:
\begin{figure}[t]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=0.eps, width=7cm}
\caption{Extracting root node coordinates for calculating LEMBR}\label{fig1}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=1.eps, width=6cm}
\caption{Sending LEMBRs from client sites to Query Site,Calculating GEMBR at Query site and sending them back to client sites parallely}\label{fig2}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=2.eps, width=4.5cm}
\caption{Partitioning the copy of GEMBR at each client sites}\label{fig3}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=3.eps, width=6cm}
\caption{Mapping Leaf Level objects at each site on the partitioned GEMBR}\label{fig4}
\end{minipage}
\end{figure}
I am using the above code inside each sections of my paper. But problem is I don't find last 3 figures,it appears to me that those are invisible. What could be the problem? Also, those figures are not found when I am referencing them from my writing,it shows ?? instead.
This is the minimal code which has the same problem, just compile it with some random epsfiles. In this case it doesnt show first four figures and puts ?? in their references.
\documentclass{ssdbm}
\def\pdfshellescape{1}
\usepackage{epstopdf} %automatically converts eps->pdf for use in pdfLaTeX.
\usepackage{graphicx}
\begin{document}
\title{Test}
\numberofauthors{1}
\author{MiNdFrEaK}
\maketitle
\begin{abstract}
\end{abstract}
\terms{Test0,Test1,Test2}
%\keywords{} % NOT required for Proceedings
\section{Introduction}
\cite{VO11,GA84,SC03}
\section{Preliminaries}
1)This is shown in Figure \ref{fig1}.
2)This is shown in Figure \ref{fig2}.
3)This is shown in Figure \ref{fig2}.
4)This is shown in Figure \ref{fig3}.
5)This is depicted in \ref{fig4}.
\begin{figure}[t]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=0.eps, width=7cm}
\caption{Figure 1}\label{fig1}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=1.eps, width=6cm}
\caption{Figure 2}\label{fig2}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=2.eps, width=4.5cm}
\caption{Figure 3}\label{fig3}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=3.eps, width=6cm}
\caption{Figure 4}\label{fig4}
\end{minipage}
%%and repeat everything from \begin{minipage}... to \end{minipage} again for each image
\end{figure}
\section{Some Strategy Name1}
The PMSJ algorithm comprises of the following steps:
1)This is shown in Figure \ref{fig5}.
2)This is shown in Figure \ref{fig6}.
3)This is depicted in Figure \ref{fig7}.
\begin{figure}[t]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=P_1.eps, width=6cm}
\caption{Figure 5}\label{fig5}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=P_2.eps, width=6cm}
\caption{Figure 6}\label{fig6}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=P_3.eps, width=6cm}
\caption{Figure 7}\label{fig7}
\end{minipage}
%%and repeat everything from \begin{minipage}... to \end{minipage} again for each image
\end{figure}
\section{Some Strategy Name2}
The steps for BFSJ are as follows:
1)This is shown in Figure \ref{fig8}.
2)This is depicted in Figure \ref{fig9}.
3)This is shown in Figure \ref{fig10}.
\begin{figure}[t]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=B_1.eps, width=6cm}
\caption{Figure 8}\label{fig8}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=B_2.eps, width=6cm}
\caption{Figure 9}\label{fig9}
\end{minipage}
\\[1cm]
\begin{minipage}[t]{\linewidth}
\centering
\epsfig{file=B_3.eps, width=6cm}
\caption{figure 10}\label{fig10}
\end{minipage}
%%and repeat everything from \begin{minipage}... to \end{minipage} again for each image
\end{figure}
\section{Conclusions}
\section{Acknowledgments}
\balance
\bibliographystyle{abbrv}
\bibliography{ssdbm}
\end{document}
\epsfig? Nowadays you can include all images using\includegraphics[width=..]{filename}from thegraphicxpackage. – Martin Scharrer♦ Feb 3 at 9:46\def\pdfshellescape{1}– egreg Feb 3 at 12:16