The code I'm using is the below, repeated 4 times, for 4 figures.
Code: Select all
\begin{figure}[h]
\caption{}
\begin{center}
\includegraphics[scale=.7]{f.pdf}
\end{center}
\end{figure}
Code: Select all
\begin{figure}[h]
\caption{}
\begin{center}
\includegraphics[scale=.7]{f.pdf}
\end{center}
\end{figure}
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
Code: Select all
\begin{figure}[htb]
\begin{center}
\subfigure[$sin(x)$]{\includegraphics[width=0.45\textwidth]{sine.eps}}
\subfigure[$cos(x)$]{\includegraphics[width=0.45\textwidth]{cosine.eps}}\\
\subfigure[$sin^2(x)$]{\includegraphics[width=0.45\textwidth]{ss.eps}}\hfill
\subfigure[$cos^2(x)$]{\includegraphics[width=0.45\textwidth]{cs.eps}}
\caption{An example of subfigures, either normally separated, or forced as far apart as possible.}
\end{center}
\end{figure}
subfigure is an obsolete package and shouldn't be used anymore. In its stead, you can use the subfig package or, better yet, the subcaption package.php1ic wrote:...Include the subfigure package at the start of your document...
Code: Select all
\documentclass{article}
\usepackage{caption}
\usepackage[demo]{graphicx}% demo option to make the example compilable
% for every one. Delete the option in your actual
% document
\usepackage{lipsum}% just to automatically generate some text
\begin{document}
\lipsum[1-6]
\clearpage
\noindent\begin{minipage}{\linewidth}
\centering
\includegraphics[height=.20\textheight]{image1}
\captionof{figure}{first figure.}
\label{fig:fig1}
\end{minipage}
\begin{minipage}{\linewidth}
\centering
\includegraphics[height=.20\textheight]{image2}
\captionof{figure}{second figure.}
\label{fig:fig2}
\end{minipage}
\begin{minipage}{\linewidth}
\centering
\includegraphics[height=.20\textheight]{image3}
\captionof{figure}{third figure.}
\label{fig:fig3}
\end{minipage}
\begin{minipage}{\linewidth}
\centering
\includegraphics[height=.20\textheight]{image4}
\captionof{figure}{fourth figure.}
\label{fig:fig4}
\end{minipage}
\clearpage
\lipsum[1-4]
\end{document}
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