当前位置 : 主页 > 手机开发 > 无线 >

LaTex:大数字移动到章节末尾

来源:互联网 收集:自由互联 发布时间:2021-06-10
我有一个使用该类的LaTex文档 \documentclass[12pt,a4paper]{scrbook} 并且我更改了一些用于定位浮动的参数: \renewcommand{\topfraction}{1} %default: 0.7\renewcommand{\bottomfraction}{1} %default: 0.3\renewcommand{\te
我有一个使用该类的LaTex文档

\documentclass[12pt,a4paper]{scrbook}

并且我更改了一些用于定位浮动的参数:

\renewcommand{\topfraction}{1} %default: 0.7
\renewcommand{\bottomfraction}{1} %default: 0.3
\renewcommand{\textfraction}{0.1} %default: 0.2
\renewcommand{\floatpagefraction}{1} %default: 0.6
\setcounter{topnumber}{3}
\setcounter{bottomnumber}{3}

我有两个应该在彼此之间的图形并填充一个页面.我不知道为什么,但是因为LaTex总是将两个图形分成两页,所以我将两个图形放在一个图形环境中.无论我是否使用[ht]或[p]这两个图形移动到本章末尾都是无关紧要的.我没有得到任何过分的警告.所以我认为这可能不是数字太大的原因.

\begin{figure}[p]
\centering
\includegraphics{graphic1.pdf}
\newcaption{caption 1} % <-- using \usepackage{picins}
\label{fig:pic1}

\vspace{5mm}

\includegraphics{graphic2.pdf}
\newcaption{caption 2}
\label{fig:pic2}
\end{figure}

可能有人可以解释LaTex的行为,并可以推荐一个解决方案.

提前致谢!

如果您想将图像放在您想要的位置,请使用

/ {usepackage浮}

并编辑您的图像代码如下.

\begin{figure}[H]
\centering
\includegraphics{graphic1.pdf}
\newcaption{caption 1} % <-- using \usepackage{picins}
\label{fig:pic1}
\end{figure}

\vspace{5mm}

\begin{figure}
\includegraphics{graphic2.pdf}
\newcaption{caption 2}
\label{fig:pic2}
\end{figure}
网友评论