警告是
T
e
X
TeX
TeX的另外一种提示信息的方式,当编译程序发现文档中有处理的不合适的地方,就会在编译的时候发出警告,并写入.log日志文件。
警告不会使编译终止,只是指出一些可能产生问题的信息。一篇完全正确的文章在排版时也可能发出警告,因而大部分的警告可以简单忽略。
1. T e X TeX TeX警告
T e X TeX TeX警告并不输出?、!等标记,最常见的 T e X TeX TeX警告就是盒子的溢出。
警告类型 | 警告说明 |
---|---|
Overfull \hbox (… too wide) in … | 水平盒子溢出(太宽),其中\hbox 为 T e X TeX TeX中原始的水平盒子命令,通常出现在糟糕的断行时。 |
Overfull \vbox (… too high) has occurred … | 垂直盒子溢出(太高),其中\vbox 为 T e X TeX TeX中原始的垂直盒子命令,通常出现在糟糕的分页时,例如过高的公式或者表格。 |
Underfull \hbox (badness …) in paragraph … | 水平盒子下溢出(太松散),通常出现在不良的断行处。 |
Undervull \vbox (badness …) while… | 垂直盒子下溢出(太松散)。 |
2. L a T e X LaTeX LaTeX警告
L a T e X LaTeX LaTeX警告一般会以LaTeX Warning、LaTeX Font Warning等字样开始。其内容比原始的 T e X TeX TeX更加丰富,需要引起一定的注意。
警告类型 | 警告说明 |
---|---|
Citation ‘…’ on page … undefined. | 引用的文献标签未定义。 |
Float too large for page by … | 浮动体太大,可能本身已经超过一页的版心。 |
Font shape ‘…’ in size … not available. | 某种字体形状不存在。 |
h float specifier changed to ht !h float specifier changed to !ht | 在浮动体中,不能只使用一个h位置说明符。 |
Label ‘…’ multiply defined. | 引用标签重复定义了。 |
Marginpar on page … moved. | 编注被移动,不在所标注文字的位置。 |
No \author given. | 使用了\maketitle 却没有使用\author 指定作者。 |
Optional argument of \twocolumn too tall on page. | 双栏命令的可选参数(单栏的内容)超过一页高度。 |
Reference ‘…’ on page … undefined. | 引用标签未定义。 |
Some font shapes were not available,defaults substituted. | 文档中有某种字体形状不存在,文档末尾会产生这条警告。 |
There were multiply-defined labels. | 文档中有重复定义的标签。 |
There were undefined references or citations. | 文档中有未定义的交叉引用或文献。 |
Unused global option(s) :[…] | 文档类中使用了全局的选项,但是这个选项没有在在任何宏包中发挥作用。 |