I would like to be able to do something like this
\begin{exo}[Name][\Star\Star]
Content
\end{exo}
which would print something like
**Exercise 7 (Name). Content
I want exo's counter to share the counter with other theorems and be able to reference it with cref. If possible, I would like to use amsthm to minimize the changes in my files.
An example of code that I would like to work
\documentclass{article}
\usepackage{amsthm}
\begin{document}
\newtheorem{eDef}{Def}
\newtheorem{eExo}[eDef]{Exo}
\begin{eDef}[Name]
Content
\end{eDef}
\begin{eExo}[Name][**]
Content
\end{eExo}
\begin{eExo}[Name][*]
Content
\end{eExo}
\begin{eExo}[Name][***]
Content
\end{eExo}
\end{document}
Resulting in
Def 1 (Name). Content
**Exercise 2 (Name). Content
*Exercise 3 (Name). Content
***Exercise 4 (Name). Content

\newtheorem{eExo}[eDef]{**Exercise}is sufficent? – Jun 26 '19 at 10:54Exercisepackage. – user5402 Jun 26 '19 at 11:14