LaTeX 日志中的方括号是什么意思?

发布于 2024-08-31 05:53:27 字数 660 浏览 10 评论 0原文

我目前正在开发一个可以读取完整 LaTeX 日志的解析器。大多数日志格式虽然很奇怪,但很容易弄清楚,但这些方括号让我感到困惑。这是我的一篇日志末尾附近的一个示例:

Overfull \hbox (10.88788pt too wide) in paragraph at lines 40--40
[]$[]$ 
 []

[102]) [103]
Kapitel 14.
(./Thermo-141-GrenzenFundamentalpostulat.tex [104

])
(./Thermo-142-Mastergleichung.tex [105]) (./Thermo-143-HTheorem.tex [106pdfTeX 
warning (ext4): destination with the same identifier (name{equation.14.3.3}) ha
s been already used, duplicate ignored

任何人都可以给我提示这些方括号的含义吗?我看不到它们有任何结构。

我怀疑上面的 2/3 行是某种代表盒子布局的 ASCII 艺术,尽管我对 badbox 知之甚少,无法证明这一点或识别单个字符的含义。

然后,“[104”等似乎对应于页码,但我仍然没有看到为什么方括号之间有时有一些东西(如上面的 pdfTeX 警告),有时没有。

I'm currently working on a parser that reads complete LaTeX logs. Most of the log format is, though weird, easy to figure out, but these square brackets are puzzling me. Here's an example from near the end of one of my logs:

Overfull \hbox (10.88788pt too wide) in paragraph at lines 40--40
[]$[]$ 
 []

[102]) [103]
Kapitel 14.
(./Thermo-141-GrenzenFundamentalpostulat.tex [104

])
(./Thermo-142-Mastergleichung.tex [105]) (./Thermo-143-HTheorem.tex [106pdfTeX 
warning (ext4): destination with the same identifier (name{equation.14.3.3}) ha
s been already used, duplicate ignored

Can anybody give me a hint what these square brackets mean? I can't see any structure in them.

I have the suspicion that lines 2/3 above are some kind of ASCII art representing the box layout, though I know too less about badboxes to justify this or identify the meaning of the single characters.

Then, the "[104" etc. seem to correspond to the page numbers, but I am still not seeing the reason why there is sometimes something inbetween the square brackets (like the pdfTeX warning above), and sometimes not.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伴梦长久 2024-09-07 05:53:27

正如注释中所说的 []$[]$ 意味着 Tex 想告诉您某些东西占用了太多的水平空间(Overfull \hbox)。它尝试打印有问题的框,但失败了,因为这些似乎是公式,无法以普通文本打印。如果普通文本也会出现同样的错误,您会将该文本放在方括号内作为提示,Tex 认为它可能会破坏您的文本。

至于方括号内的数字,则是页码。在你的例子中,Tex 将你的文本设置到第 102 页,在那里它遇到了公式太宽的问题。

有关阅读 Tex 日志文件的更多信息,请尝试以下网站

As told in the comments []$[]$ means that Tex want to tell you that something takes too much horizontal space (Overfull \hbox). It tries to print the offending boxes, but fails, as those seem to be formulas, which can't be printed in normal text. If the same error would occur with normal text, you would get that text inside square brackets as a hint, where Tex thinks it can break your text.

As for the numbers inside square brackets, those are the page numbers. In your example Tex got your text set until page 102, where it got problems with a too wide formula.

For more information about reading the log files of Tex try the following website.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文