![我如何设置子图参数?](https://linux22.com/image/445496/%E6%88%91%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AE%E5%AD%90%E5%9B%BE%E5%8F%82%E6%95%B0%EF%BC%9F.png)
答案1
图像可以像字母一样定位,我tabular
在这里使用了。
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{figure}
\includegraphics[width=3cm,valign=c]{example-image-10x16}
\begin{tabular}{cc}
\includegraphics[width=3cm]{example-image-10x16} &
\includegraphics[width=3cm]{example-image-10x16}
\\
\includegraphics[width=3cm]{example-image-10x16} &
\includegraphics[width=3cm]{example-image-10x16}
\end{tabular}
\caption{5 images}
\end{figure}
\end{document}
答案2
由于卡莱尔没有解决这个问题,因此它使用相同的表格(或多或少)\subfloat
。
我喜欢\floatsep
在行间添加标题,但由于基线位于图像底部,所以\\[\floatsep]
不起作用。所以我添加了一个空行并进行了补偿。\subfloat
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{tabular}{c}
\subfloat[]{\includegraphics[width=3cm]{example-image-10x16}}
\end{tabular}% sapcing ame as one big tabular
\begin{tabular}{cc}
\subfloat[]{\includegraphics[width=3cm]{example-image-10x16}} &
\subfloat[]{\includegraphics[width=3cm]{example-image-10x16}}
\\
\\[\dimexpr \floatsep-\arraystretch\normalbaselineskip]% tricky
\subfloat[]{\includegraphics[width=3cm]{example-image-10x16}} &
\subfloat[]{\includegraphics[width=3cm]{example-image-10x16}}
\end{tabular}
\caption{5 images}
\end{figure}
\end{document}