图插入麻烦

图插入麻烦

我想插入图形(9 行、2 列大小的框),在左侧列中,图形数量应为 9,其标题从 a、b、c 到 i 开始,在右侧列的同一页中,我可以插入 9 个图形,其标题应从 a 到 i 重复。如果有人知道方法。请帮忙。我正在使用此代码。

\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}

如果你想给每幅图添加标题,使用类似的方法即可。它会起作用。

答案1

据我所知,这就是你想要的。需要注意以下几点:

  • 每个图像后面都有一个\caption{},这就是生成数字的原因。
  • 这里我使用了包demo的选项graphicx,但你必须在代码中删除它。它会用黑色矩形替换图像。
  • 我还height明确设置了图像,但您可能不想在文档中这样做,因此height=1cm从所有中删除\includegraphics

在此处输入图片描述

\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}

相关内容