add custom environment

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

View File

@@ -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}