comment 패키지가 있어서 \usepackage{comment}하면 될 것 같지만... 잘 안 됩니다. memoir의 comment와 다르기 때문인데요, (verbatim을 다루는 것은 아무튼 쉽지 않습니다)
comment 패키지를 쓰지 말고, 다음처럼 하면 대략 원하는 결과를 얻을 수 있을지 모르겠습니다. xparse는 필요합니다.
\newif\ifhidesol \NewDocumentCommand\IgnoreSol{+m}{} \NewDocumentEnvironment{solhide}{+b}{\IgnoreSol{#1}}{} \NewDocumentEnvironment{sol}{} {\ifhidesol \let\solst\solhide \let\endsolst\endsolhide \else \let\solst\soldef \let\endsolst\endsoldef \fi \solst }{\endsolst}
KTUG 한국 텍 사용자 그룹
comment 패키지가 있어서 \usepackage{comment}하면 될 것 같지만... 잘 안 됩니다. memoir의 comment와 다르기 때문인데요, (verbatim을 다루는 것은 아무튼 쉽지 않습니다)
comment 패키지를 쓰지 말고, 다음처럼 하면 대략 원하는 결과를 얻을 수 있을지 모르겠습니다. xparse는 필요합니다.