可能很简单,但我不知道怎么做。我想把 3 张图片放在左边,另 2 张图片放在右边。至于右边的 2 张图片,我希望它们一个在另一个上面
谢谢您的帮助
\begin{figure}[h!]
\begin{subfigure}{0.5\textwidth}
\includegraphics[width=0.9\columnwidth, height = 10 cm]{Images/Ch3/hwinct3.jpg}
\hspace{\fill}
\caption{}
\end{subfigure}
\begin{subfigure}{0.5\textwidth}
\hspace{\fill}
\begin{subfigure}{0.9\textwidth}
\includegraphics[width=1.1\columnwidth]{Images/Ch3/plane1.png}
\caption{}
\end{subfigure}
\begin{subfigure}{0.6\textwidth}
\includegraphics[width=1\columnwidth, height = 3 cm]{Images/Ch3/prova.png}
\hspace{\fill}
\caption{}
\end{subfigure}
\end{subfigure}
\caption{Plane 1 measurements slots}
\label{fig:pl1sl}
\end{figure}
答案1
将图像并排放置通常使用minipage
,而将它们放在彼此之上只需确保它们占据足够的空间以最终位于不同的行即可。从问题中不清楚是否应该有单独的标题。此解决方案在大多数情况下都有效。要使图片的间距正确,请尝试更改缩放因子。
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htb]
\begin{minipage}[b]{0.7\linewidth}
\centering
\includegraphics[width=0.89\linewidth]{example-image-a}
\caption{Picture A}
\end{minipage}%
\begin{minipage}[b]{0.3\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{example-image-b}
\caption{Picture B}
\vspace*{\baselineskip} %% Space between small pictures
\includegraphics[width=0.8\linewidth]{example-image-c}
\caption{Picture C}
\end{minipage}
\end{figure}
\begin{figure}[htb]
\begin{minipage}[b]{0.7\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{example-image-a}
\end{minipage}%
\begin{minipage}[b]{0.3\linewidth}
\centering
\includegraphics[width=0.85\linewidth]{example-image-b}
\hbox to \linewidth{} %% Space between small pictures
\includegraphics[width=0.85\linewidth]{example-image-c}
\end{minipage}
\caption{One caption for all pictures.}
\end{figure}
\end{document}
编辑
为所有图像设置一个共同的标题,同时让每个图像都有自己的标题subfloats
,可以使用数据包subfig
或。下面是使用环境替换先前使用的subcaption
示例。subcaption
minipage
subfigure
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[htb]
\begin{subfigure}[b]{0.7\linewidth}
\centering
\includegraphics[width=0.89\linewidth]{example-image-a}
\caption{Picture A}
\end{subfigure}%
\begin{subfigure}[b]{0.3\linewidth}
\centering
\includegraphics[width=0.84\linewidth]{example-image-b}
\caption{Picture B}
\vspace*{\baselineskip} %% Space between small pictures
\includegraphics[width=0.84\linewidth]{example-image-c}
\caption{Picture C}
\end{subfigure}
\caption{Common caption for all pictures}
\end{figure}
\end{document}