home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / text / tex / 14549 < prev    next >
Encoding:
Text File  |  1992-12-31  |  908 b   |  33 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!usc!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!agsm!iwelch
  3. From: iwelch@agsm.ucla.edu (Ivo Welch)
  4. Subject: Own Counters with Labels/Ref
  5. Message-ID: <1992Dec31.185751.28407@mic.ucla.edu>
  6. Nntp-Posting-Host: risc.agsm.ucla.edu
  7. Organization: UCLA, Anderson Graduate School Of Management
  8. Date: 31 Dec 92 18:57:51 PST
  9. Lines: 22
  10.  
  11. I would like to use \ref on a counter that I define myself. That is, I want to
  12. be able to say somewhere,
  13.  
  14.     This refers to \ref{hi}.
  15.  
  16.     <some text>
  17.     setcounter{myctr}{20}
  18.     \newlabel{hi}{{\arabic{myctr}}}
  19.  
  20. it would print the contents of myctr where the label was processed, i.e.
  21.  
  22.     This refers to 20.
  23.  
  24. It  works if the label  comes before the reference,  not thereafter.  That is,
  25. the information is not written to the aux  file. This is probably very simple,
  26. but I have tried many variations and didn't get it.
  27.  
  28. /ivo welch
  29.  
  30.  
  31.  
  32.     
  33.