如何在插入多行图片时将标题移到左侧

如何在插入多行图片时将标题移到左侧

我想要如下图片和标题的布局 在此处输入图片描述

我尝试使用 subfigure 和 minpage 来实现它,但是失败了,希望有人能帮助我。这是我的代码(我使用 ieee_conference 模板)(学习

\begin{figure*}[!htb]
    \begin{minipage}[b]{0.3\textwidth}
                \caption{The quick brown fox jumps over the lazy}
                \label{fig:dummy}
    \end{minipage}
    \hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{First}
        \label{subfig-1:dummy}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Second}
        \label{subfig-2:dummy}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Third}
        \label{subfig-3:dummy}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Fourth}
        \label{subfig-4:dummy}
    \end{subfigure} 

    \begin{subfigure}[b]{0.6\textwidth}
        \includegraphics[width=\linewidth,height = 0.15\textwidth]{example-image}
        \caption{Fifth}
        \label{subfig-5:dummy}
    \end{subfigure}

\end{figure*}

我的代码生成

我的理想结果与上面的绘图类似,即标题位于左侧大小并与第一行平行,第二行的矩形图片与第一行的四个小图片对齐。

答案1

您可以minipage在最后一张图片前添加一个空白:

\begin{minipage}[b]{0.3\textwidth}
\end{minipage}

结果是:

在此处输入图片描述

完整 MWE:

\documentclass{article}

\usepackage{graphicx,subcaption}

\begin{document}
\begin{figure*}[!htb]
    \begin{minipage}[b]{0.3\textwidth}
                \caption{The quick brown fox jumps over the lazy}
                \label{fig:dummy}
    \end{minipage}\hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{First}
        \label{subfig-1:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Second}
        \label{subfig-2:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Third}
        \label{subfig-3:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.15\textwidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Fourth}
        \label{subfig-4:dummy}
    \end{subfigure}

    \begin{minipage}[b]{0.3\textwidth}
    \end{minipage}\hfill
    \begin{subfigure}[b]{0.675\textwidth}
        \includegraphics[width=\linewidth,height = 0.15\textwidth]{example-image}
        \caption{Fifth}
        \label{subfig-5:dummy}
    \end{subfigure}
\end{figure*}
\end{document} 

编辑

为了回应你的评论,你可能想要这样的东西:

在此处输入图片描述

代码:

\documentclass{article}

\usepackage{graphicx,subcaption}

\begin{document}
\begin{figure*}[!htb]
    \begin{minipage}[c]{0.35\linewidth}
                \caption{The quick brown fox jumps over the lazy}
                \label{fig:dummy}
    \end{minipage}\hfill
    \begin{minipage}[c]{0.6\linewidth}
    \begin{subfigure}[b]{0.22\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{First}
        \label{subfig-1:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.22\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Second}
        \label{subfig-2:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.22\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Third}
        \label{subfig-3:dummy}
    \end{subfigure}\hfill
    \begin{subfigure}[b]{0.22\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{Fourth}
        \label{subfig-4:dummy}
    \end{subfigure}
    \begin{subfigure}[b]{\linewidth}
        \includegraphics[width=\linewidth,height = 0.15\textwidth]{example-image}
        \caption{Fifth}
        \label{subfig-5:dummy}
    \end{subfigure}
    \end{minipage}
\end{figure*}
\end{document}

相关内容