Images can be included from anywhere if you specify the path. Something like \includegraphics{./images/Chap1/figure-name}
should be fine, assuming that the images
folder is a subfolder of the one containing the TeX. Does that answer your question?
Since all four subfigure
s must appear on one row, the total width for the subfigure
s must not exceed \textwidth
; you could use .25\textwidth
(at most, if they all have to have the same width) for each subfigure
and make sure there's no spurious blank spaces between them (notice the %
characters after the three first \end{subfigure}
lines).
Below you find two possibilities using the maximum width for each subfigure
; in the first case, the width of the image equals the width of its container (and the images will appear without space in between); in the second case, the width of each image is a little smaller than the width of the container, so there's some air between the images.
Notice that in the first case, the subfigure
s are taken all the available width and each image takes all the available width inside its container too, so there's no need to use \centering
there.
\documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\begin{subfigure}[b]{0.25\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{A gull}
\label{fig:gull}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{A gull2}
\label{fig:gull2}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{A tiger}
\label{fig:tiger}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{A mouse}
\label{fig:mouse}
\end{subfigure}
\caption{Pictures of animals}\label{fig:animals}
\end{figure}
\begin{figure}
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=.85\linewidth]{example-image-a}
\caption{A gull}
\label{fig:gull}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=.85\linewidth]{example-image-a}
\caption{A gull2}
\label{fig:gull2}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=.85\linewidth]{example-image-a}
\caption{A tiger}
\label{fig:tiger}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=.85\linewidth]{example-image-a}
\caption{A mouse}
\label{fig:mouse}
\end{subfigure}
\caption{Pictures of animals}\label{fig:animals}
\end{figure}
\end{document}
Of course, you don't have to give each subfigure
a width of .25\textwidth
; you can use a smaller value (in this case, \centering will be needed) and you can use some space, (an explicit space, or \quad
, or, even better, \hfill
) to separate your figures:
\documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{0.22\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{A gull}
\label{fig:gull}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.22\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{A gull2}
\label{fig:gull2}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.22\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{A tiger}
\label{fig:tiger}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.22\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{A mouse}
\label{fig:mouse}
\end{subfigure}
\caption{Pictures of animals}\label{fig:animals}
\end{figure}
\end{document}
Best Answer
Here's how to position figures across the columns of
multicol
:Note that I'm using the starred version of the
figure
environment. The[ht]
tag specifies position, here indicating "at the top of this page." Google "LaTeX Floats" for how to change that and how to adjust thefigure
environment.Here: copy\paste only this part: