繁体   English   中英

如何在子图乳胶环境的图形之间留出空间?

[英]How to give an space between figures on subfigure latex ambient?

我正在使用命令\\ begin {subfigure} ... \\ end {subfigure}并排插入三张图片。 但是我想知道如何在此之间留出空间,因为它们彼此之间太近了。

\begin{figure}
    \begin{subfigure}
       here's the first image
    \end{subfigure}
    \begin{subfigure}
       here's the second image
    \end{subfigure}
    \begin{subfigure}
       here's the third image
    \end{subfigure}
\end{figure}

我建议使用子subcaption并在图像之间添加一些\\hspace

在此处输入图片说明

\documentclass{article}

\usepackage{subcaption,graphicx}

\begin{document}

\begin{figure}
  \centering
  \begin{subfigure}{.3\linewidth}
    \centering
    \includegraphics[width = \linewidth]{example-image-a}
    \caption{First image}
  \end{subfigure}%
  \hspace{1em}% Space between image A and B
  \begin{subfigure}{.3\linewidth}
    \centering
    \includegraphics[width = \linewidth]{example-image-b}
    \caption{Second image}
  \end{subfigure}%
  \hspace{2em}% Space between image B and C
  \begin{subfigure}{.3\linewidth}
    \centering
    \includegraphics[width = \linewidth]{example-image-c}
    \caption{Third image}
  \end{subfigure}
  \caption{A number of images}
\end{figure}

\end{document}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM