将数字排成一排乳胶

时间:2015-05-26 20:46:38

标签: graphics latex subfigure

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*}

1 个答案:

答案 0 :(得分:0)

将所有三个图像作为小型图放在一个图形环境中,不带空行。

\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}