home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!usc!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!agsm!iwelch
- From: iwelch@agsm.ucla.edu (Ivo Welch)
- Subject: Own Counters with Labels/Ref
- Message-ID: <1992Dec31.185751.28407@mic.ucla.edu>
- Nntp-Posting-Host: risc.agsm.ucla.edu
- Organization: UCLA, Anderson Graduate School Of Management
- Date: 31 Dec 92 18:57:51 PST
- Lines: 22
-
- I would like to use \ref on a counter that I define myself. That is, I want to
- be able to say somewhere,
-
- This refers to \ref{hi}.
-
- <some text>
- setcounter{myctr}{20}
- \newlabel{hi}{{\arabic{myctr}}}
-
- it would print the contents of myctr where the label was processed, i.e.
-
- This refers to 20.
-
- It works if the label comes before the reference, not thereafter. That is,
- the information is not written to the aux file. This is probably very simple,
- but I have tried many variations and didn't get it.
-
- /ivo welch
-
-
-
-
-