I have the following code:
\documentclass{article}\usepackage{tcolorbox}\tcbuselibrary{theorems}\newtcbtheorem{solution}{Solution}{colback=orange!10, colframe=orange!40!black, fonttitle=\bfseries}{sn}% Hides the solution environment\usepackage{environ}\NewEnviron{hide}{}\let\solution\hide\let\endsolution\endhide\begin{document}% Changing from a solution* to solution% correctly hides the environment\begin{solution*}{} Some solution\end{solution*}\end{document}
In this case, I'm trying to hide the solution theorem, which works correctly when using \begin{solution}
/\end{solution}
. However, when changing to the \begin{solution*}
/\end{solution*}
variants, it stops working.
Does anyone know why this happens? Is there any way to work around it?