On the internet I found a possibility to create an example environment that is helpful for linguistic research papers, because it provides all examples with numbers:
\newcounter{exa}
\newenvironment{example}
{\stepcounter{exa}
\begin{enumerate}\item[\arabic{exa}.]\linespread{1}\em}
{\end{enumerate}}
Does anyone know how to add the possibility to reference to this environment? I searched the web, but the suggestions I found didnt meet the problem or I didnt get them.
If there would be a possibility to add a reference the outcome could look like that:
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
(53) EXAMPLE.
text text text text text text text text text text text text text text text text text text text text text text text text In (53) we provide ... text text text text text text text text text text text text text text text text text text text text text text text text
I hope that there is a way to label the example and cross-reference with the number back (or forth) to the EXAMPLE and that the number in the reference is able to adjusts the number as soon as the number of EXAMPLE changes (for example when you delete a preceding example or when you add an example in the preceding text). Is there a way?
