I want to make it so all proofs in my document are conditional using the ifthen package. So far I have
\usepackage{ifthen}
\newboolean{proofs}
\setboolean{proofs}{true}
...
\ifthenelse{\boolean{proofs}}{\begin{proof}
...any proof...
\end{proof}}{ }
but of course I have to keep putting the ifthenelse statement every time I create a proof. I wish to encapsulate this in an environment, say fproof
. How can I do this, since the ifthenelse
statement is incorporated into both the begin and end of the proof environment?
For example, I would like any proof to be as simple as:
\begin{fproof}
...any proof...
\end{fproof}
Then toggling proofs
would just hide all the fproof
's. Any ideas?
Update: attempt using multiaudience
package:
\newenvironment{fproof}
{\begin{shownto}{showProofs}\begin{proof}}{\end{proof}\end{shownto}}
Running into errors matching begins and ends.