Context: I have several environments with custom counters. As usual, I'm referencing them along to my document but I get only the corresponding counter value as reference.
Example:
\newcounter{myenvcounter}[section]\setcounter{myenvcounter}{0}
\def\theenv{\arabic{chapter}.\arabic{section}.\arabic{myenvcounter}}
\newenvironment{myenv}{
\refstepcounter{myenvcounter}%
\\
\noindent\textbf{Env. \theenv{}.}%
}{%
\\
}
An instance of this environment:
\chapter{Chapter one} \label{ch:one}
...
\section{Section one} \label{sec:one}
...
\begin{myenv} \label{env:one}
Bla bla bla.
\end{myenv}
... \\
As shown in Env. \ref{env:one} ... etc.
And this produces:
1 Chapter one
...
1.1 Section one
...
Env. 1.1.1. Bla bla bla.
...
As shown in Env. 1 ... etc.
Question: How to customize the cross-reference numbering to get for example: "As shown in Env. 1.1.1" ?
