Rob*_*man 130
您可以在一个图形环境中放置两个数字.例如:
\begin{figure}[p]
\centering
\includegraphics{fig1}
\caption{Caption 1}
\includegraphics{fig2}
\caption{Caption 2}
\end{figure}
Run Code Online (Sandbox Code Playgroud)
每个标题将生成一个单独的图号.
Cro*_*ley 20
如果您想拥有相同主题的图像,可以使用subfigure包和构造:
\begin{figure}
\subfigure[first image]{\includegraphics{image}\label{first}}
\subfigure[second image]{\includegraphics{image}\label{second}}
\caption{main caption}\label{main_label}
\end{figure}
Run Code Online (Sandbox Code Playgroud)
如果您希望彼此相邻,例如两个不同的图像,您可以使用:
\begin{figure}
\begin{minipage}{.5\textwidth}
\includegraphics{image}
\caption{first}
\end{minipage}
\begin{minipage}{.5\textwidth}
\includegraphics{image}
\caption{second}
\end{minipage}
\end{figure}
Run Code Online (Sandbox Code Playgroud)
对于列中的图像,源中会有[1] [2] [3] [4],但它看起来像
[1] [3]
[2] [4].
如果你想要它们在同一页面上并且它们基本上都占据了整个页面,那么最好的想法就是告诉LaTeX将它们放在他们自己的页面上!
\begin{figure}[p]
Run Code Online (Sandbox Code Playgroud)
在页面上只有几行文字的上面或下面有两个数字可能会违反声音排版原则(例如丑陋).
顺便说一下,之所以[!h]有效,是因为它告诉LaTeX要覆盖通常的限制,即应该在带有文本的页面上花多少空间.如上所述,存在限制的原因.这并不是说它们可以稍微放松一下; 请参阅常见问题解答.