![额外的 \endgroup ... \begin{document} ... LaTeX 错误:缺少 \begin{document}](https://linux22.com/image/463618/%E9%A2%9D%E5%A4%96%E7%9A%84%20%5Cendgroup%20...%20%5Cbegin%7Bdocument%7D%20...%20LaTeX%20%E9%94%99%E8%AF%AF%EF%BC%9A%E7%BC%BA%E5%B0%91%20%5Cbegin%7Bdocument%7D.png)
我在 Windows 10 上安装了 basic-miktex-22.10-x。我在网上看到了关于类似错误的讨论,但没有找到一个明确的答案(我是一个对程序没有深入了解的普通用户)。我已经使用早期版本的 LaTeX 很多年了,但从未遇到过这样的问题。非常感谢您的帮助。
\documentclass[preprint,aps,amsmath,eqsecnum,fleqn]{revtex4}
\usepackage{bm}
\usepackage[dvips]{graphicx}
\newcommand{\arccosh}{\mbox{arccosh}}
\begin{document}
In $n$ region of the material there are charged donors and electrons excited from these donors
\end{document}
发短信
! 额外 \endgroup.\document ->\endgroup \init@documenthook \set@typesize@hook \normalsize \set... l.10 \begin{document} ? ! LaTeX 错误:缺少 \begin{document}
答案1
我认为您的错误是由于对newcommand
LaTeX 发行版或基本 MikTeX 的版本使用不当或未更新而造成的(您可能使用了基本版本中未包含的命令)。这里有您完整的可编译示例。
\documentclass[preprint,aps,amsmath,eqsecnum,fleqn]{revtex4}
\usepackage{bm}
\usepackage[dvips]{graphicx}
\DeclareMathOperator{\arccosh}{arccosh}
\begin{document}
In $n$ region of the material there are charged donors and electrons excited from these donors $\arccosh x=0.253$.
\end{document}
以下是屏幕截图:
另请参阅此链接\document ->\endgroup 错误