是否有可能获得类似
其中的方框是子图吗?理想情况下,右下角的图形大小应该与标题的长度相符,但我很乐意手动调整它。我考虑过使用三个迷你页面,其中一个包含主标题,但不确定这是否是最好的方法。有什么想法吗?
我的尝试:在单个小页面上使用\caption{}
似乎可以解决问题,尽管必须手动调整格式。我可以将标题移到小页面的顶部吗?
\begin{figure}[h!]
\centering
\begin{minipage}{\linewidth}
\begin{subfigure}[t]{.32\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\begin{subfigure}[t]{.32\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\begin{subfigure}[t]{.32\textwidth}
\addtocounter{subfigure}{3}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\end{minipage}
\quad\par\medskip\par\medskip
\begin{minipage}{.5\linewidth}
\caption{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum tincidunt vulputate dolor eget volutpat. Interdum et malesuada fames ac ante ipsum primis in faucibus. Sed mi felis, finibus consectetur laoreet vitae, tincidunt vel nunc. Aenean purus ante, interdum egestas nisi ac, dictum ultricies augue. Ut mollis sapien ut ipsum feugiat, ac convallis nisl dapibus. Proin in mi ut odio ornare scelerisque ac in lorem. Integer non enim accumsan, porta neque ac, euismod elit. Maecenas accumsan velit vitae urna sagittis, vel tincidunt magna pretium.}
\end{minipage}
\begin{minipage}{.4\linewidth}
\centering
\begin{subfigure}[t]{\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\end{minipage}
\end{figure}
答案1
您可以正常设置顶部的三个子图,不需要minipage
。minipage
标题需要。
\documentclass{article}
\usepackage{graphicx,subcaption}
\usepackage[export]{adjustbox}
\begin{document}
\begin{figure}[!htp]
\centering
\captionsetup{aboveskip=0pt}
\begin{subfigure}[t]{.32\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}\hfil
\begin{subfigure}[t]{.32\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}\hfil
\begin{subfigure}[t]{.32\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\bigskip
\begin{minipage}[t]{.5\linewidth}
\caption{Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vestibulum tincidunt vulputate dolor eget volutpat. Interdum et
malesuada fames ac ante ipsum primis in faucibus. Sed mi felis,
finibus consectetur laoreet vitae, tincidunt vel nunc. Aenean
purus ante, interdum egestas nisi ac, dictum ultricies augue.
Ut mollis sapien ut ipsum feugiat, ac convallis nisl dapibus.
Proin in mi ut odio ornare scelerisque ac in lorem. Integer non
enim accumsan, porta neque ac, euismod elit. Maecenas accumsan
velit vitae urna sagittis, vel tincidunt magna pretium.}
\end{minipage}\hfil
\begin{subfigure}[t]{0.4\textwidth}
\includegraphics[width=\linewidth,valign=T]{example-image}
\caption{}
\end{subfigure}
\end{figure}
\end{document}