I want to create an environment star Exercise, but I can not. Please help me.
\documentclass{book}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\newtheorem{ex}{Exercise}[chapter]
\begin{document}
\chapter{First Chapter}
\section{First section}
\begin{ex}
This is an Exercise
\end{ex}
\begin{ex}
This is an Exercise
\end{ex}
\end{document}
If next is a difficult Exercise, how to define new environment Exercise star, for example \textbf{Exercise} $1.3^\text{*}$
.
ex
environment so that it accepts an optional*
argument. That's easy with thexparse
package.