0

I want to insert figures (9 row, 2 column size box) in such a way that in left side column, no. of figures should be 9 and it caption start from a, b ,c to i and on the same page in right side column, i can insert 9 figures and their caption should repeat from a to i. If anybody know the way. Plz help. I am using this code.

\begin{document}

\begin{figure*}[h!]
\begin{minipage}{0.5\linewidth}
 \begin{subfigure}{\linewidth}
 \includegraphics[width=\textwidth]{1}
 \includegraphics[width=\textwidth]{2}
\includegraphics[width=\textwidth]{3}
\includegraphics[width=\textwidth]{4}
\includegraphics[width=\textwidth]{5}
\includegraphics[width=\textwidth]{6}
\includegraphics[width=\textwidth]{7}
\includegraphics[width=\textwidth]{8}
\includegraphics[width=\textwidth]{9}
 \end{subfigure}
 \end{minipage}
  \begin{minipage}{0.5\linewidth}
 \begin{subfigure}{\linewidth}
 \includegraphics[width=\textwidth]{1}
 \includegraphics[width=\textwidth]{2}
\includegraphics[width=\textwidth]{3}
\includegraphics[width=\textwidth]{4}
\includegraphics[width=\textwidth]{5}
\includegraphics[width=\textwidth]{6}
\includegraphics[width=\textwidth]{7}
\includegraphics[width=\textwidth]{8}
\includegraphics[width=\textwidth]{9}
 \end{subfigure}
 \end{minipage}
 \caption{Steady base flow, $Re=100,\; Ar=1.0$}
 \label{Fig:Steady_flow_Re100}
 \end{figure*}
\end{document}

If you want to add captions for each figures, use the similar way of captioning. It will work.

10
  • 1
    Welcome to TeX.SX! Please post a MWE (minimal working example of code that you've got so far) or at least a graphical representation of what you want.
    – TeXnician
    Apr 15, 2017 at 10:29
  • \begin{figure*}\begin{minipage}{0.5\linewidth} ... 9 figures in \subfloat or in \begin{subfigure}{\linewidth}...\end{subfigure} ... \caption{...}\end{minipage}\begin{minipage}{0.5\linewidth} ... 9 figures ... \caption{...}\end{minipage}\end{figure*} ?For more specific solution (in form of answer) you need to show us what you try so far in form of small, complete document with \documentclass{...} on beginning and \end{document} on the end.
    – Zarko
    Apr 15, 2017 at 10:58
  • 1
    @DeepakKumar, not in comment! Please edit your question and add there what propose TeXnician and me in our comment. Let me repeat: MWE (Minimal Working Example) is small, complete document, which we can copy and as it is compile in our computers to see your problem. This document we can then more easy improve on the way that it will solve your problem. This solution can be value information to other users of TeX.SE, if they will experience the similar problem.
    – Zarko
    Apr 15, 2017 at 13:36
  • 1
    @DeepakKumar, also make sure that your minimal working example (MWE) is complete. In other words, that it begins with \documentclass[...] and ends with \end{document}. Anyone here should be able to just copy and paste your code to test it and then help you. As Zarko mentioned, edit your original post and add your code there.
    – Tina
    Apr 19, 2017 at 23:25
  • 1
    @DeepakKumar full minimal example please, there is no preamble here and no document class. BTW: you problably do not want to use \textwidth as the width arg here, rather \linewidth as that adapts to the minipages, \textwidth does not.
    – daleif
    Apr 20, 2017 at 12:01

1 Answer 1

2

As far as I can understand, this is what you're after. Some things to note:

  • Each image is followed by a \caption{}, which is what generates the number.
  • Here I used the demo option for the graphicx package, but you must remove that in your code. It replaces images with black rectangles.
  • I also set the height for image explicitly, but you probably don't want to do that in your document, so remove height=1cm from all the \includegraphics.

enter image description here

\documentclass{article}
\usepackage[demo]{graphicx} %remove demo in your document
\usepackage{subcaption}
\begin{document}
\begin{figure*}[h!]
\begin{minipage}[t]{0.48\textwidth}
\begin{subfigure}{\linewidth}
 \includegraphics[width=\textwidth,height=1cm]{1} %remove height=1cm in your document
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{2}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{3}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{4}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{5}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{6}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{7}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{8}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{9}
 \caption{}
\end{subfigure}
\caption{Steady base flow, $Re=100,\; Ar=1.0$}
\label{Fig:Steady_flow_Re100}
\end{minipage}
\begin{minipage}[t]{0.48\textwidth}
\begin{subfigure}{\linewidth}
 \includegraphics[width=\textwidth,height=1cm]{1} %remove height=1cm in your document
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{2}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{3}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{4}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{5}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{6}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{7}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{8}
 \caption{}

 \includegraphics[width=\textwidth,height=1cm]{9}
 \caption{}
\end{subfigure}
\caption{Something else}
\label{Fig:something}
\end{minipage}
\end{figure*}
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .