I'm looking for a way to create a new theorem without numbering. I found Theorem without numbering and tried the accepted answer, but I get the error "Command * already defined".
This is the code I'm using:
\documentclass[11pt]{article}
\usepackage{mdframed}
\newtheorem*{hulprule}{Rule settings}
\newenvironment{drule}[3]
{\begin{mdframed}[backgroundcolor=lightgray]\begin{hulprule}\begin{enumerate}[-]
\item \textbf{Events}:{#1}
\item \textbf{Conditions}:{#2}
\item \textbf{Actions}:{#3}}
{\end{enumerate}\end{hulprule}\end{mdframed}}
\begin{document}
\begin{drule}
{test}
{test}
{test}
\end{drule}
\end{document}
Strangely enough, the drule environment works perfectly without the *
.
How can I solve this?
amsthm
for\newtheorem*