I have the following problem: using the tcolorbox
package I get inconsistent results for the labelling: in this example I get that the boxes are both referred to as 1.1 :
The code for this is:
\documentclass{memoir}
\usepackage[breakable]{tcolorbox}
\newenvironment{Mijnbox}[1]
{\stepcounter{table}%
\tcbset{breakable,coltitle=blue!20!black,colback=black!1!white,colframe=black!10! white,title=Box ~\thetable: #1}
\begin{tcolorbox}}
{\end{tcolorbox}}
\begin{document}
\ref{Boxone} and \ref{Boxtwo}
\section{A try}
\begin{Mijnbox}{This one is called one}\label{Boxone}
I try to refer to this box
\end{Mijnbox}
\begin{Mijnbox}{ge}\label{Boxtwo}
This is yet another box
\end{Mijnbox}
end{document}
What am I doing wrong?