Quantcast
Channel: Active questions tagged starred-version - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 63

`\let\solution\hide` not hiding theorem if * version of theorem is used

$
0
0

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?


Viewing all articles
Browse latest Browse all 63

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>