LaTeX关于高度、\hbox、和\vbox以及ht的警告

我正在Ubuntu上编译一个LaTeX文档,我得到了这些警告、错误或其他什么。对它们有什么想法吗?

Package hyperref Warning: Height of page (\paperheight) is invalid (0.0pt),
(hyperref)                using 11in.
Underfull \hbox (badness 10000) has occurred while \output is active
Underfull \vbox (badness 10000) has occurred while \output is active []
LaTeX Warning: `h' float specifier changed to `ht'.
解决办法

Package hyperref 警告。页面的高度(\paperheight)无效(0.0pt)。 (hyperref)使用11英寸。

很明显,你的类没有定义\paperheight,所以你必须自己做,或者依靠默认值。

例如,要获得A4纸,请使用。

\setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm}

对于字母纸

\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}

Underfull /hbox (badness 10000) has occurred while `output is active.

Underfull \vbox (badness 10000) has occurred while \output is active [] 。

请看一下。[什么是Underfull hboxes和vboxes,我怎样才能摆脱它们?

LaTeX警告:'h'浮动指定器改为'ht'。

你对一个浮动体(表格或数字)使用了一个放置选项h。如果LaTeX因为空间太小而不能把它放在那里,它会把它移到下一页的顶部,并发出这个警告。

通常h是太严格了。这样就不允许在顶部、底部或页面放置。至少用ht代替,或者放宽到htbp,甚至!htbp,如果你喜欢。如果你真的需要它正好在"这里",请使用H选项和float包。还有更多的方法。但添加放置选项通常是可以的。

评论(2)