New answers tagged

1

The trailing optional argument to \newtheorem is expanded immediately in order to add the right counter name. You can defer the definition of theorem-like environments at begin document, when the toggle's value will be known. Skeleton for the .sty file \RequirePackage{etoolbox,amsthm} \newtoggle{sub} \AtBeginDocument{ \newtheorem{theorem}{Theorem}[\...


Top 50 recent answers are included