I use LaTex to do my assignments at uni, and want to make a if-statement that will either activate or de-activate a paragraph. I have used \newtheorem to make a {problem} environment which shows the problem as given in the assignment, but want to be able to hide this when I print out the assignment.
My plan is to create a counter:
Code: Select all
\newcounter{ShowProblem}
\addtocounter{ShowProblem}{1} %Show problems if value == 1
Pseudocode:
Code: Select all
if ShowProblem == 1
\begin{problem}
bla..bla..bla
\end{problem}
end if