我终其一生都搞不清楚为什么会出现这个错误。我仔细阅读了该mdframed
软件包的文档,但还是搞不清楚。
以下是 MWE:
\RequirePackage{luatex85}
\documentclass{standalone}
\usepackage{mdframed}
\begin{document}
Prior text
\begin{mdframed}[]
Some Text
\end{mdframed}
El fin.
\end{document}
我在编译时遇到了一系列错误。我认为输出的相关部分如下:
This is LuaTeX, Version 1.0.4 (MiKTeX 2.9.6350) system commands enabled.
(test3.tex
.... {skipped lines}
[Loading MPS to PDF converter (version 2006.09.02).]
)
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Missing } inserted.
<inserted text>
}
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Extra \endgroup.
\needspace ...p -\dimen@ \vskip \z@skip \endgroup
l.6 \begin{mdframed}[]
Some Text\end{mdframed}
! Extra \endgroup.
\color@endgroup ->\endgraf \endgroup
l.6 \begin{mdframed}[]Some Text\end{mdframed}
! LaTeX Error: \begin{document} ended by \end{mdframed}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \begin{mdframed}[]Some Text\end{mdframed}
! Extra \endgroup.
<recently read> \endgroup
l.6 \begin{mdframed}[]Some Text\end{mdframed}
! Extra \endgroup.
\color@endgroup ->\endgraf \endgroup
l.8 \end{document}
! Too many }'s.
\endsa@boxit ...dvarwidth \color@endgroup \egroup
l.8 \end{document}
我已尝试使用 xelatex 和 pdflatex(删除 MWE 的第一行),但出现了同样的错误。
这是最近出现的错误mdframed
还是我遗漏了什么?