因此,还有其他几个问题存在同样的问题,但我尝试了每一个解决方案(我能理解的),问题仍然存在。似乎 LaTeX 想要将我的图形放在页面底部,而不是紧跟在文本之后。到目前为止,我只设法通过添加 % 删除了文本和图形之间的空格,但这会在标题和文本之间产生一个空格。并且在标题后添加 % 不起作用。请帮忙。我已经尝试使用浮动和图形放置选项,但它们都没有任何作用。
\documentclass{scrbook}
\begin{document}
\begin{center}
\subsection{Determination of saliva concentration}
Using a BCA test, the protein concentration of unstimulated saliva was assessed. The results showed saliva protein concentrations of 1.2 - 1.4mg/ml.\\\\%
\includegraphics[scale=0.6]{figures/bcasaliva1.png}
\captionof{figure}[Determination of saliva protein concentration]{Determination of saliva protein concentration via a BCA assay}
\end{document}
答案1
以下对我有用(带有有关未知.png
文件的警告)。
% figprob.tex
\documentclass{scrbook}
\usepackage{lipsum}
\usepackage{graphicx}
\begin{document}
\begin{center}
\subsection{Determination of saliva concentration}
Using a BCA test, the protein concentration of unstimulated saliva was assessed. The results showed saliva protein concentrations of 1.2 - 1.4mg/ml. % \\\\%
\includegraphics[scale=0.6]{figures/bcasaliva1.png}
\captionof{figure}[Determination of saliva protein concentration]{Determination of saliva protein concentration via a BCA assay}
\end{center}
\lipsum[1]
\end{document}