我刚刚将 Lyx 文件从一台计算机复制到另一台计算机,遇到了上述问题。完整日志如下。
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2012.12.19) 8 JAN 2013 21:37
entering extended mode
**chapter-1.tex
...
LaTeX Info: Redefining \ref on input line 87.
LaTeX Info: Redefining \pageref on input line 87.
LaTeX Info: Redefining \nameref on input line 87.
(C:\Users\Mani\AppData\Local\Temp\lyx_tmpdir.p11848\lyx_tmpbuf2\chapter-1.out)
(C:\Users\Mani\AppData\Local\Temp\lyx_tmpdir.p11848\lyx_tmpbuf2\chapter-1.out)
\@outlinefile=\write3
! Undefined control sequence.
\@begindocumenthook ...ox {\autoref {##1}}}\addto
\extrasenglish { \renewcom...
l.87 \begin{document}
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.
! Undefined control sequence.
\@begindocumenthook ...#1}}}\addto \extrasenglish
{ \renewcommand {\equation...
l.87 \begin{document}
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.
...
答案1
您需要添加
\usepackage[english]{babel}
(根据您的需要,可能还有其他语言)添加到您的文档中。或者删除您正在加载的依赖于 babel 的任何文件。\extrasenglish
是用于自定义英语使用文档设置的 babel 命令。
Torbjørn T. 在评论中给出了 lynx GUI 中 babel 的界面
文档-->设置-->语言:设置语言包。