I recently learned about \begin{proof} ... \end{proof}
, which is a good environment to work in. My question is whether there exists a similar environment to state a problem, or whether I can write some commands for something like that myself. Ideally, I would want something like this:
\begin{problem} Prove that $2+2 = 4$. \end{\problem}
And then it should output something like:
\\\\\noindent\textem{Problem.} Prove that $2+2 = 4$.\\\\
Best Answer
The following provides a MWE:
To further customize the look of the
problem
environment, we can resort to theamsthm
package and the\newtheoremstyle
command. A MWE is given below: