我正在写这篇文章,我有一些想放在文本中的图片。我正在使用
\usepackage{subfig}
\usepackage{float}
在我的序言中,这样我就可以强制图形停留在我想要的位置,而不是飞起来。现在,我试图同时放置三张图片,但它们都停留在一页上,浪费了前一页的好空间。将所有内容分成两个环境figure
会使标签(a)
, (b)
,(c)
消失。我想保留这个标签。此外,删除 也[H]
无济于事。我该怎么办?
代码:
\begin{figure}[H]
\centering
\subfloat[A aplicação de Gauss no
$R^3$.]{\includegraphics[scale =
0.7]{Imagens_L3/Capitulo_7/Mapa_de_Gauss_R3}}
\subfloat[A aplicação de Gauss de uma superfície tipo
espaço]{\includegraphics[scale =
0.7]{Imagens_L3/Capitulo_7/Mapa_de_Gauss_Sitter}}
\subfloat[A aplicação de Gauss de uma superfície tipo
tempo.]{\includegraphics[scale =
0.7]{Imagens_L3/Capitulo_7/Mapa_de_Gauss_PH}}
\end{figure}
现在的情况:
答案1
您可以\ContinuedFloat
从caption
包中使用,对于子图,请使用subcaption
包。
\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\DeclareCaptionLabelFormat{continued}{#1~#2 (Cont.)}
\captionsetup[ContinuedFloat]{labelformat=continued}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{}
\end{subfigure}
\caption{Some figure and its caption}
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth]{example-image-c}
\caption{}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth]{example-image}
\caption{}
\end{subfigure}
\caption{Some figure and its caption}
\end{figure}
\end{document}