我的图片和一些文字有问题。我有这个代码:
Some text...\\
\begin{figure}[ht]
\centering
\includegraphics[scale=0.75]{picture.jpg}
\caption{The caption}
\label{fig:picture}
\end{figure}
Some more text...
基本上,我想要这个:
Some text. (Above image in the code)
[end of page / new page]
image
Some more text. (Below the image in the code)
[start of new section]
但是,上面的代码给我的是:
Some text. (Above image in the code)
Some more text. (Below the image in the code)
[end of page / new page]
image
[start of new section]
Latex 坚持将所有内容都放在图像上方,即使它位于代码中的图像下方。可能是因为图像浮在顶部 - 但我的替代方案是什么?第一页上没有足够的空间来显示图像,我不能使用 [h] 作为浮动对齐。
我可以通过创建一个空的新部分来“破解它”,例如\section*{}
,但这会产生一些空白,这看起来很奇怪。有什么建议么?