I'm trying to do the following: I'd like to say "as shown in $(18)$ below", where $(18)$ is a certain equation that (which I shall label norm-split), as per the 'below', I have not yet written. Is there a way (or, rather, what is the way) that I can do this with \eqref? At the moment, if I just replace "$(18)$" with "\eqref{norm-split}", then it just puts $(5.2)$, which is the (sub)section number.
Any advice would be most appreciated.
I'm using TeXstudio under MiKTeX. Also, this is the first day that I've been using TeX - I have always previously used MathJax - so I'm a bit of a noob at it in some ways, but in others I know a reasonable amount!
Here's my code (with the intermediary bits taken out):
as shown in \eqref{norm-split} below. We keep the $u \ge 0$ constraint
in the primal objective, however. This is because we can still do
backwards primal step explicitly and ... we may write
\label{norm-split}
\begin{align}
\begin{split}
\| (v,w) - (v',w') \| &= \|v-v'\|_q^q + \|w-w'\|_2^2 \\
& = \sum_{i=1}^n \|v^i - v'^i\|_q^q + \|w - w'\|_2^2,
\end{split}
\end{align}
the backwards dual step ...
todonotes, which will let you write reminders in the margin, at the places where you want to insert cross-references. – Bernard Jul 14 '15 at 11:44\eqref{norm-split}should never produce the section number but it is hard to debug code you have not shown. Either it should give the equation number (if\label{norm-split}is in the equation) or it should give an undefined label warning and print ?? (if the equation is not yet in the document). – David Carlisle Jul 14 '15 at 11:47\labelis not in the equation, but as I say it is hard if you do not give any clues as to what the input looks like. – David Carlisle Jul 14 '15 at 11:50\labeldoesn't print anything. It is just used to store the value of the currently active counter. This is not the equation counter if\labelwas placed outside an equation environment. – AlexG Jul 14 '15 at 12:19\labelout of the math environment, there's nothing to refer but the section command. You need to put it inside. In any case, what's the point of using{align}and{split}? Either use{align}or{equation}with{split}. – Manuel Jul 14 '15 at 12:33texdoc amsldoc). Equations (single ones, aligned ones, multiline ones etc.) are automatically numbered. The cited doc is full of examples that make sense. – AlexG Jul 14 '15 at 12:51\label-\refsystem. As generic reference, consider reading up on Understanding how references and labels work. – Werner Dec 18 '15 at 06:57