I use my own version of subsections for definitions:
\newcommand{\definition}[2]{\addtocounter{subsection}{1} \subsection*{\thesubsection ~ Definition (#1) \text{\normalfont{#2}}}}
I use them as:
\definition{DefinedThing}{\cite{Book}[Page 64]}
\label{def:DefinedThing}
This works great, the only problem I have is that the references do no longer work now:
\ref{def:DefinedThing}
This reference does only refer to the section in which the definition is used, not to the actual subsection it represents (for example it refers to "2" instead of to "2.5"). Is there a way to fix this? Maybe by increasing the counter for the \label{}.
\refstepcounter– daleif Nov 13 '15 at 13:20\textdoing there?\textis for textual comments in displayed math, not for constructions like this. – daleif Nov 13 '15 at 14:11\addtocounter{subsection}{1}by\refstepcounter{subsection}but better would be to use\subsectioninstead of\subsection*– David Carlisle Nov 13 '15 at 14:11