In my writing, I do a lot of examples, and these examples fall into different sections. I tried to make them numbered neatly with writing the example number and section number. I have done it in that way:
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{exmp}{Ex}[section]
and inside one of the sections I wrote the following:
\begin{exmp}
This is my first example
\end{exmp}
\begin{exmp}
This is my second example
\end{exmp}
The output was:
I need to make the numbering of these examples written as:
(5.1.1) This is my first example \label{1st}
(5.1.2) This is my second example \label{2nd}
(5.1.2-a) This is a sub of my second example \label{sub-2nd}
and not in bold



Ex? – Bernard Dec 08 '16 at 11:59