I'm trying to get four figures (centered on a page in a 2x2 grid) to show up on the same page as the section heading ("Appendix").
The following puts the word "Appendix" on one page (all by itself) and then the four figures on their own page.
I've messed with \nopagebreak
, \begin{samepage}...\end{samepage}
, \begin{minipage}...\end{minipage}
with no luck.
\bibliographystyle{plain}
\bibliography{sid}
\vfill\eject
\appendix
\label{sec:ads}
\begin{figure*}
\centering
\subfigure[]{
\includegraphics[height=150pt]{./figs/jjj.png}
\label{fig:jjj}
} \quad
\subfigure[]{
\includegraphics[height=150pt]{./figs/xxx.png}
\label{fig:xxx}
} \quad
\subfigure[]{
\includegraphics[height=150pt]{./figs/nnn.png}
\label{fig:nnn}
} \quad
\subfigure[]{
\includegraphics[height=150pt]{./figs/aaaa.png}
\label{fig:aaa}
} \quad
\caption{blah }
\label{fig:aaaa}
\end{figure*}
The \vfill\eject
business is to get the word "Appendix" to appear at the top of a new page, not right after the bibliography. BTW, \appendix
has this entry in the cls
file:
\def\appendix{\par
\section*{APPENDIX}
\setcounter{section}{0}
\setcounter{subsection}{0}
\def\thesection{\Alph{section}} }
\vfill\eject
, just use\newpage
. LaTeX will only put afigure*
at the top of a page. Try theH
option as Ian suggested. In general, if you tell a figure to float, it will float. If you don't want that, try any of the solutions you can find by searching this site for floating graphics. – TH. Apr 6 '11 at 0:32