我试图在左侧放置一张高大图像,并在其旁边放置两张较小的图像,一张在另一张之上。这是我目前的代码:
\begin{figure}[h]
\subcaptionbox*{First subfigure}[.45\linewidth]
{%
\includegraphics[width=\linewidth,]{figure 1/figure1b.png}
}
\hfill
\subcaptionbox*{Second subfigure}[.45\linewidth]{%
\includegraphics[width=\linewidth]{figure 1/figure1.png}}
\hfill
\subcaptionbox* {Third subfigure}[.45\linewidth]{
\includegraphics[width=\linewidth, right]{figure 1/Lumo of 2 unpaired e- carbene.png}}%
但它产生了这样的结果:
答案1
最简单的方法是使用原始命令\valign
:
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{lipsum}
\begin{document}
\lipsum[1][1-4]
\begin{figure}[htp]
\centering
\valign{%
#\cr
\hbox{\subcaptionbox*{First subfigure}[.45\linewidth]{%
\includegraphics[width=\linewidth,height=1.8\linewidth]{example-image}%
}}\cr\noalign{\hfill}
\hbox{\subcaptionbox*{Second subfigure}[.45\linewidth]{%
\includegraphics[width=\linewidth]{example-image}%
}}
\vfill
\hbox{\subcaptionbox* {Third subfigure}[.45\linewidth]{%
\includegraphics[width=\linewidth]{example-image}%
}}\cr
}
\caption{Three images}
\end{figure}
\lipsum[2]
\end{document}
对于左边的图,我用它height
来模仿您的图像,当然您不会指定它。
只要右侧的图像适合左侧图像的垂直尺寸,就可以实现。
答案2
一种方法是在表中插入图像。使用tabularray
包可能的 MWE 是:
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{tabularray}
\UseTblrLibrary{counter,varwidth}
\usepackage{subcaption}
\captionsetup[subfigure]{labelformat=simple}
\renewcommand\thesubfigure{}
\usepackage{lipsum}
\begin{document}
\lipsum[66]
\begin{figure}[ht]
%
\begin{tblr}{colspec = {X[c] X[c]},
measure = vbox,
vspan=even
}
\SetCell[r=2]{c}
\subfloat[First sub figure]%
{
\includegraphics[width=\linewidth, height=1.65\linewidth] {example-image-a}
}
& \subfloat[Second sub figure]%
{
\includegraphics[width=\linewidth]{example-image-b}
}\\
& \subfloat[Second sub figure]%
{
\includegraphics[width=\linewidth]{example-image-c}
}
\end{tblr}
\caption{Three images}
\end{figure}
\lipsum[1-4]
\end{document}