diff --git a/README.md b/README.md index 65bf9d4..9aa0ce3 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ElegantBook is designed for books. Just enjoy it! If you have any questions, sug 如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。 -**由于 3.x 版本进行了重构,3.x 版本并不兼容 2.x 版本,如果你想把 2.x 版本的文件转为 3.x 版本兼容,可以查看[Wiki:跨版本转换](https://github.com/ElegantLaTeX/ElegantBook/wiki/%E8%BD%AC%E6%8D%A2)**。 +**版本兼容** 由于 3.x 版本进行了重构,3.x 版本并不兼容 2.x 版本,如果你想把 2.x 版本的文件转为 3.x 版本,可以查看[跨版本转换](https://github.com/ElegantLaTeX/ElegantBook/wiki/%E8%BD%AC%E6%8D%A2)。 # License diff --git a/elegantbook.cls b/elegantbook.cls index bf06b44..41c89ea 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -420,7 +420,9 @@ \newenvironment{property}{\par\noindent\textbf{\color{main} \ifdefstring{\ELEGANT@lang}{en}{Property:}{性质:} }}{\par} - +\newenvironment{property}[1]{\par\noindent\textbf{\color{main} + \ifdefstring{\ELEGANT@lang}{en}{#1:}{#1:} +}}{\par} % \ifdefstring{\ELEGANT@result}{answer}{ % \AtBeginDocument{ % \includecomment{solution}