尝试编译 Latex 文档时出错。在哪里可以找到文件“报告输出*”?

发布于 2024-09-06 19:52:09 字数 951 浏览 3 评论 0原文

帮助!!!

我正在尝试编译一个以前已经编译过的 LaTeX 文档,但现在由于某种原因它无法通过。我收到的错误消息信息不多,我什至找不到它指向的文件。

详细信息:我正在使用 Aquamacs,当我尝试编译文档时,迷你缓冲区显示以下消息:

alt text

当我按抄送`时,我得到的是:

--- TeX 说 --- \Hy@AtBeginDocument ->\ltx@LocalAppendToMacro
\Hy@AtBeginDocumentHook l.735
...r\Hy@AtBeginDocument\expandafter{\Hy@temp
}
--- 帮助 --- TeX 遇到未知的命令名。你可能 名字拼错了。如果这条消息 当执行 LaTeX 命令时发生 已处理,该命令可能位于 错误的地方——例如 错误可能由 \item 产生 不在 a 内的命令 清单制作环境。错误可以 也可能是由于缺失造成的 \documentclass 命令。

问题是,我什至找不到迷你缓冲区(报告输出*)中引用的这个文件 - 相信我,它不在他们所说的目录中。我的 LaTeX 文档只有 191 行,错误应该是在第 735 行。

我检查了整个文档,寻找可能有问题的地方,但我没能找到任何东西。

它可能与此无关,但今天早些时候我正在重新排列整个 .emacs 文件,我可能做了一些干扰 auctex 或 Latex 的事情,但我尝试编译另一个文件并且它有效。

谢谢 :)

Help!!!

I am trying to compile a LaTeX document that has been compiled before, but now for some reason it just won't go through. The error message I am getting is not very informative, and I can't even find the file it is pointing to.

The details: I am using Aquamacs, and when I try to compile the document the mini-buffer displays the following message:

alt text

When I press C-c ` this is what I get:

--- TeX said --- \Hy@AtBeginDocument ->\ltx@LocalAppendToMacro
\Hy@AtBeginDocumentHook l.735
...r\Hy@AtBeginDocument\expandafter{\Hy@temp
}
--- HELP --- TeX encountered an unknown command name. You probably
misspelled the name. If this message
occurs when a LaTeX command is being
processed, the command is probably in
the wrong place---for example, the
error can be produced by an \item
command that's not inside a
list-making environment. The error can
also be caused by a missing
\documentclass command.

The problem is, I can't even find this file referred to in the mini-buffer (report output*) - believe me, it is not in the directory they say it is. My LaTeX document has only 191 lines, and the error supposedly is on line 735.

I have checked the whole document looking for something that could be wrong, but I haven't been able to find anything.

It might not have anything to do with this, but earlier today I was rearranging my whole .emacs file and I might have done something which interferes with auctex or latex, but I tried compiling another file and it worked.

Thanks :)

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

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

发布评论

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

评论(1

々眼睛长脚气 2024-09-13 19:52:09

尝试在 emacs 之外对文档进行干净编译(即,只需从终端运行 Latex 命令),看看会发生什么。日志文件将位于当前目录中。此外,它还会以交互模式运行 Latex,因此您可以更好地了解出了什么问题。

Try making a clean compile of the document outside of emacs (i.e., just run the latex command from a terminal) and see what happens. The log file will be in the current directory. Also, it will run latex in interactive mode, so you'll have a better idea of what went wrong.

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