我正在尝试添加带有标题的图像,即总共 23 张。有趣的是,最多显示 5 张后它就会消失。
\begin{figure}[p]
\centering
\includegraphics[width=1\textwidth]{q1}
\caption{Question 1 :Job Position}
\includegraphics[width=1\textwidth]{q2}\\
\caption{Question 1 :Experience Process Management}
\includegraphics[width=1\textwidth]{q3}
\caption{Question 1 :Experience Process Management}
\includegraphics[width=1\textwidth]{q4}\\
\caption{Question 1 :Experience Process Management}
\includegraphics[width=1\textwidth]{q5}
\caption{Question 1 :Experience Process Management}
\includegraphics[width=1\textwidth]{q7}\\
\caption{Question 1 :Experience Procss Management}
\includegraphics[width=1\textwidth]{q8}
\caption{Question 1 :Experience Process Management}
\includegraphics[width=1\textwidth]{q9}\\
\caption{Question 1 :Experience Process Management}
.
.
.
.
.
.
.
.
\end{figure}
我做错了什么?或者我应该怎么做
答案1
环境figure
不会跨页面中断;示例代码给出的是一个非常满的页面。如果检查日志文件,您肯定会找到对相当满的页面的引用。
figure
我建议您不要使用环境,而是加载caption
包并用语句替换所有\caption{...}
语句\captionof{figure}{...}
。使用\noindent
确保没有段落缩进影响图像文件的位置,并使用\bigskip
(或\medskip
,如果您愿意)在标题和后面的图像之间创建一点分隔。
下面的截图显示了下面显示的示例生成的第一个页面。
\documentclass{article}
\usepackage[demo]{graphicx} % omit 'demo' option in real document
\usepackage{caption}
\begin{document}
\noindent
\includegraphics[width=1\textwidth]{q1}
\captionof{figure}{Question 1 :Job Position}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q2}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q3}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q4}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q5}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q7}
\captionof{figure}{Question 1 :Experience Procss Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q8}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
\includegraphics[width=1\textwidth]{q9}
\captionof{figure}{Question 1 :Experience Process Management}
\bigskip\noindent
etc.\ etc.
\end{document}