行距 文档 类别 文章

行距 文档 类别 文章

我希望使用 documentclass 的文档中的行间有更多空间article。但如果我使用类似这个博客说,它导致以下错误:

! LaTeX Error: Too many unprocessed floats.
See the LaTeX manual or LaTeX Companion for explanation.
   Type  H <return>  for immediate help.
 ...                                              
                                              
l.539 \begin{figure}[h]
                   
You've lost some text.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

! Undefined control sequence.
\latex@xfloat ...vf \fi \global \setbox \@currbox 
                                              \color@vbox \normalcolor \...
l.539 \begin{figure}[h]
                   
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing number, treated as zero.
<to be read again> 
               \vbox 
l.539 \begin{figure}[h]
                   
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
...

如何修复?

编辑:使用 XeLaTeX

答案1

除了它会影响垂直空间之外,的使用\setspace与显示的错误并没有真正的关系,因此任何这样的变化都会影响分页,进而影响浮动位置。

您已使用

\begin{图}[h]

使用 [h] means that LaTeX is prevented from putting the float in all the places that it normally puts the floats, top, bottom and page floats are all disallowed. This would make this error almost inevitable so LaTeX typically issues a warning and converts[h] to[ht]` 给自己一个机会,但不允许页面浮动,仍然很难定位浮动,因此它们都会被搁置,直到用完分配的浮动寄存器。

[htp]如果必须使用可选参数,请使用。

相关内容