add custom environment

This commit is contained in:
EthanDeng
2019-04-14 19:40:52 +08:00
parent c1b4a2ad23
commit 75e407bd63
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ ElegantBook is designed for books. Just enjoy it! If you have any questions, sug
如果你有其他问题、建议或者报告 bug可以提交 issues 或者给我们发邮件elegantlatex2e@gmail.com。 如果你有其他问题、建议或者报告 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 # License

View File

@@ -420,7 +420,9 @@
\newenvironment{property}{\par\noindent\textbf{\color{main} \newenvironment{property}{\par\noindent\textbf{\color{main}
\ifdefstring{\ELEGANT@lang}{en}{Property:}{} \ifdefstring{\ELEGANT@lang}{en}{Property:}{}
}}{\par} }}{\par}
\newenvironment{property}[1]{\par\noindent\textbf{\color{main}
\ifdefstring{\ELEGANT@lang}{en}{#1:}{#1}
}}{\par}
% \ifdefstring{\ELEGANT@result}{answer}{ % \ifdefstring{\ELEGANT@result}{answer}{
% \AtBeginDocument{ % \AtBeginDocument{
% \includecomment{solution} % \includecomment{solution}