Cross referencing a user defined counter.
Gabor Urban <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <CAL=1hhxE4ag5G7BiQ4duVUkEWfBsAL9bfCRzijwrxjfFxEJe0g@mail.gmail.com> |
Hi guys,
I am writing a LaTeX paper where I have a self defined counter:
\newcounter {abra}
\setcounter{abra}{0}
\newcommand{\incabra}{\addtocounter{abra}{1}}
\newcommand{\theabra}{\arabic{abra}}
The paper uses the igo package
I use the counter :
\incabra
.......
\begin{center}
\shortstack{\showfullgoban\\\theabra. \'abra}
\end{center}
(Non relevant parts are removed from the source.)
\label{fig:atack}
\ref{fig:atack}
The problem is that this last reference gets the section number generated
before the label command.
So, what I have to do to have a cross reference to my own defined counter?
Thans in advance,
Gabor
--
Linux is like a wigwam: no Gates, no Windows and an Apache inside.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev