I have an environment in my LaTeX code:
Code: Select all
\newenvironment{exercise}[1]
{\par \noindent \newline \newline \line(1,0){360} \\ \textbf{Exercise #1} \begin{itshape}\\}
{\\ \end{itshape} \line(1,0){360}}
Code: Select all
\begin{exercise}{exercise_number}Contents\end{exercise}
Code: Select all
\begin{exercise}Contents\end{exercise}

Thanks!