1
I have 3 figures that I want to place in a row. I trim the figures as original figures  

有很多空白。这两个人物排成一排,但一个人物移动到下一行。他们是一种修改代码以将所有三个数字放在同一行的方法吗?代码如下。

\usepackage{graphicx}
\usepackage{subfig}
    \begin{figure*}[ht!]
        \subfloat[\label{genworkflow}]{%
                \includegraphics[trim=20 40 50 30,clip, height=2.8 in]{./figures/fig1.png}}
    \quad
        \subfloat[\label{pyramidprocess} ]{%
        \includegraphics[trim=10 40 10 30,clip, height=2.8 in]{./figures/fig2.png}}
    \quad
        \subfloat[\label{mt-simtask}]{%
        \includegraphics[trim=30 40 30 30,clip, height=2.8 in]{./figures/fig3.png}}\\
        \caption{\label{workflow}The overall approach. (a) figa; (b) Workflow for figb; (c) Workflow for figc.}
    \end{figure*}
4

1 回答 1

1

将所有三个图像作为 minipages 放在一个图形环境中,没有空行。

\begin{figure}[!htb]
\minipage{0.32\textwidth}
\includegraphics[width=\linewidth]{./figures/fig1.png}
\caption{genworkflow}\label{fig:awesome_image1}
\endminipage\hfill
\minipage{0.32\textwidth}
\includegraphics[width=\linewidth]{./figures/fig2.png}
\caption{pyramidprocess}\label{fig:awesome_image2}
\endminipage\hfill
\minipage{0.32\textwidth}%
\includegraphics[width=\linewidth]{./figures/fig3.png}
\caption{mt-simtask}\label{fig:awesome_image3}
\endminipage
\end{figure}
于 2015-05-26T21:21:58.387 回答