由于未处理的浮点数太多和其他错误消息,LaTeX 文件无法编译

由于未处理的浮点数太多和其他错误消息,LaTeX 文件无法编译

我正在尝试编译 LaTeX 文档。我有一个单独的.bib文件,正在使用 BiBTex。我输入了八个数字,通常使用htbp放置选项,这些数字编译得很好。

但是,当尝试使用以下命令进行编译以插入第 9 个数字时:

\begin{figure}[htbp] 
\centering 
\includegraphics[width=\textwidth]{figures/Fig9-retry.png} 
\caption[A representation of an injector block.]{A representation of an injector block.} 
\label{fig:9} 
\end{figure} 

它无法编译并且我收到以下错误消息:

<use figures/Fig8-storagemod.png> 
Package pdftex.def Info: figures/Fig8-storagemod.png used on input line 270. 
(pdftex.def) Requested size: 455.24411pt x 266.9888pt. 
[13 <C:/Users/jd7368/Documents/Lit review/figures/Fig8-storagemod.png>] [14] [ 
15] [16] [17] [18] 
! Undefined control sequence. 
<argument> ... \sf@size \z@ \selectfont \@currbox 
l.440 \begin{figure}[htbp] 
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 character: There is no ô in font cmr12! 
Missing character: There is no ó in font cmr12! 
Missing character: There is no ò in font cmr12! 
Missing character: There is no ñ in font cmr12! 
Missing character: There is no ð in font cmr12! 
Missing character: There is no ï in font cmr12! 
Missing character: There is no î in font cmr12! 
Missing character: There is no í in font cmr12! 
Missing character: There is no ì in font cmr12! 
Missing character: There is no ë in font cmr12! 
Missing character: There is no ü in font cmr12! 
Missing character: There is no û in font cmr12! 
Missing character: There is no ú in font cmr12! 
Missing character: There is no ù in font cmr12! 
Missing character: There is no ø in font cmr12! 
Missing character: There is no ÷ in font cmr12! 
Missing character: There is no ö in font cmr12! 
Missing character: There is no õ in font cmr12! 
! Undefined control sequence. 
\@xfloat ...a \@tempcntb \global \count \@currbox 
\@tempcnta }\@fltovf \fi \... 
l.440 \begin{figure}[htbp] 
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> 
} 
l.440 \begin{figure}[htbp] 
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.) 


! LaTeX Error: Too many unprocessed floats. 

See the LaTeX manual or LaTeX Companion for explanation. 
Type H <return> for immediate help. 
... 
l.440 \begin{figure}[htbp] 
You've lost some text. Try typing <return> to proceed. 
If that doesn't work, type X <return> to quit. 

! Undefined control sequence. 
\@xfloat ...@fltovf \fi \global \setbox \@currbox 
\color@vbox \normalcolor \... 
l.440 \begin{figure}[htbp] 
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> 
\color@vbox 
l.440 \begin{figure}[htbp] 
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.) 

<figures/Fig9-retry.png, id=518, 642.14906pt x 331.99031pt> 
File: figures/Fig9-retry.png Graphic file (type png) 

<use figures/Fig9-retry.png> 
Package pdftex.def Info: figures/Fig9-retry.png used on input line 442. 
(pdftex.def) Requested size: 455.24411pt x 235.36522pt. 

! Undefined control sequence. 
\@largefloatcheck ->\ifdim \ht \@currbox 
>\textheight \@tempdima -\textheigh... 
l.445 \end{figure} 
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> 
> 
l.445 \end{figure} 
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.) 

! Undefined control sequence. 
<argument> \@currbox 
l.445 \end{figure} 
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. 

! Improper \prevdepth. 
<recently read> \prevdepth 
l.445 \end{figure} 
You can refer to \spacefactor only in horizontal mode; 
you can refer to \prevdepth only in vertical mode; and 
neither of these is meaningful inside \write. So 
I'm forgetting what you said and using zero instead. 

! You can't use `\prevdepth' in horizontal mode. 
\end@float ...pdima \prevdepth \vbox {}\prevdepth 
\@tempdima \penalty \@floa... 
l.445 \end{figure} 
Sorry, but I'm not programmed to handle this case; 
I'll just pretend that you didn't ask for it. 
If you're in the wrong mode, you might be able to 
return to the right one by typing `I}' or `I$' or `I\par'. 

! Missing number, treated as zero. 
<to be read again> 
\penalty 
l.445 \end{figure} 
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.) 

! Illegal unit of measure (pt inserted). 
<to be read again> 
\penalty 
l.445 \end{figure} 
Dimensions can be in units of em, ex, in, pt, pc, 
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! 
I'll assume that you meant to say pt, for printer's points. 
To recover gracefully from this error, it's best to 
delete the erroneous units; e.g., type `2' to delete 
two letters. (See Chapter 27 of The TeXbook.) 

我查看了之前论坛上关于“未处理浮点数过多”问题的几个回答,并尝试\clearpage在每页底部插入命令,还尝试使用 morefloats 包。这些方法似乎都不起作用,而且仍然无法编译。问题似乎与第 9 个图插入有关。

有人能给我一些关于如何编译文件的建议吗?我将不胜感激。

我的序言如下:

\documentclass[a4paper,12pt]{report} 
\usepackage{graphicx} 
\usepackage[left=3.0cm, right=2.0cm, top=3.0cm, bottom=3.0cm]{geometry} 
\usepackage{amsmath} 
\usepackage{url} 
\usepackage[notlof, nottoc, notlot]{tocbibind} 
\usepackage{hyperref} 
\usepackage{siunitx} 
\usepackage{mathabx} 
\usepackage{morefloats} 
\usepackage{setspace} 
\linespread{1.6} 
\usepackage{cite} 

答案1

Missing character: There is no ô in font cmr12! 

您正在使用原始(7 位) TeX 编码中的重音字符

添加

\usepackage[T1]{fontenc}

并使用 8 位编码字体。您可能还想

\usepackage[latin1]{inputenc}

声明您正在使用 8 位输入。

您的另一个错误是\@currbox未定义。这是一个内部框寄存器,在图形/表格放置中起着核心作用。如果它未定义,则意味着您未显示的某些代码未定义它。除非您向我们展示代码,否则对此没有什么可说的。

相关内容