我希望有这样的安排
我真的不知道子浮点数的格式,但我有这个想法
\documentclass{article}
\usepackage{float}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\subfloat[\centering ]{\includegraphics[height=.2\textheight]{example-image-a}
\includegraphics[height=.2\textheight]{example-image-b}}
\subfloat[\centering ]{\includegraphics[height=.4\textheight]{example-image-c} }
\caption{Caption}
\label{fig:wa_analysis}
\end{figure}
\end{document}
不完全确定如何实现这一点。
有一个更好的方法吗?
答案1
使用此代码:
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{minipage}{.65\textwidth}
\begin{center}
\includegraphics[width=\textwidth,height=5cm]{example-image-a}\\
\includegraphics[width=\textwidth,height=5cm]{example-image-b}
(a)
\end{center}
\end{minipage}
\hfill
\begin{minipage}{.33\textwidth}
\begin{center}
\includegraphics[width=\textwidth,height=10cm]{example-image-c}
(b)
\end{center}
\end{minipage}
\caption{Test fo 3 figure in one}
\end{figure}
\end{document}
你有这个输出:
答案2
通过使用该subcaption
包并手动调整subfigure
b 高度:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[ht]
\centering
\begin{subfigure}[b]{0.7\linewidth}
\includegraphics[width=\linewidth, height=.2\textheight]{example-image-a}\\
\includegraphics[width=\linewidth, height=.2\textheight]{example-image-b}
\caption{}
\end{subfigure}%
\hfil
\begin{subfigure}[b]{0.25\linewidth}
\includegraphics[width=\linewidth, height=.423\textheight]{example-image-c}
\caption{}
\end{subfigure}
\caption{Caption}
\label{fig:wa_analysis}
\end{figure}
\end{document}
答案3
我会用它minipage
来堆叠两个子图。为了避免猜测第三个图形的高度,你也可以使用一个盒子
\documentclass{article}
\usepackage{float}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[tbh]
\sbox0{%
\begin{minipage}[b]{0.75\textwidth}
\subcaptionbox*{}{\includegraphics[height=0.2\textheight,width=\linewidth]{example-image-a}}
\par
\subcaptionbox{}{\includegraphics[height=0.2\textheight,width=\linewidth]{example-image-b}}
\end{minipage}}
\usebox0
\hfill%
\subcaptionbox{}{\includegraphics[height=\ht0,width=.22\textwidth]{example-image-c}}
\caption{Caption}
\label{fig:wa_analysis}
\end{figure}
\end{document}
答案4
此版本使用\subfloat
来自 subcaption 包的。看来 subfloat 使用\hbox
而不是,因此\vbox
您需要minipage
、\parbox
或来处理多行。\vbox
tabular
\lineskip
\baselineskip
当不够大时才添加。
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\subfloat{\parbox{.65\textwidth}{%
\includegraphics[width=\hsize,height=5cm]{example-image-a}
\includegraphics[width=\hsize,height=5cm]{example-image-b}
}}
\hfill
\subfloat{%
\includegraphics[width=.33\textwidth,height={\dimexpr 10cm+\lineskip}]{example-image-c}
}
\caption{Test fo 3 figure in one}
\end{figure}
\end{document}