-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
定义环境没有标题和标签时结果有问题 #36
Comments
由于定理类环境都用了 tcolorbox 宏包定理设置,所以写法是 |
如果不修改 |
使用 elegantbook v3.08 编译下面的例子,我没有得到报错 \documentclass[lang=cn]{elegantbook}
\begin{document}
\begin{definition}{}{}
content
\end{definition}
\end{document} |
我现在也没办法重现。记得当时是提示缺少参数。
\ifstrempty{#1} 进入了 \edefinition[#1]}\ifstrempty{#2}{}{\label{def:#2} 然后提示缺少参数了。 |
最小例子
结果
期待结果
目前只能使用如下代码实现
修改
elegantbook.cls
中的\newenvironment{definition}[2]
为仍需要使用
\begin{definition}{}{}
才能达到效果。期望能直接使用\begin{definition}
达到期望的效果。The text was updated successfully, but these errors were encountered: