前段时间写毕业论文,使用https://github.com/mohuangrui/ucasthesis提供的模板,但是插入的每张图片都显示在页面的最前位置,而且很容易出现一张图片占据整页的情况。搜索发现解决方法如下
用float宏包的H选项;用\centering,不要用center环境。示例代码如下:
\usepackage{float} \usepackage{graphix} \begin {figure}[H] \centering \includegraphics[width=7cm]{endpoint.eps} \caption{Endpoint detection} \end {figure}
参考网页 https://zhidao.baidu.com/question/356293407.html
Visits: 196