如何解决背面:未定义的控制序列\begin{document}
出现问题是因为我在 Overleaf 上使用了“minted”包。没有它,问题就会消失(但我需要这个包)。
到目前为止,我已经尝试了以下方法,但似乎并没有解决问题:
- 将 [cache=false] 添加到 usepackage 行
- 使用不同的编译器
- 更改输入文件的语言
- 添加这两行,如背页文档所建议的
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
这是确切的错误信息
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.24 \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.
与问题相关的是文件仍然可以编译并且看起来像预期的那样。虽然没有任何错误会很好。
最小可重复的例子:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\begin{document}
\maketitle
\section{Introduction}
\end{document}
您可以将其粘贴到背页文档中。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。