Re: Cross referencing a user defined counter.
"Alex Degtyarev" <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <[email protected]> |
\refstepcounter > -----Original Message----- > From: Gabor Urban [mailto:[email protected]] > Sent: Saturday, March 09, 2013 10:28 PM > To: [email protected] > Subject: [MiKTeX] Cross referencing a user defined counter. > > 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 > _______________________________________________ > MiKTeX-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/miktex-users ------------------------------------------------------------------------------ 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