🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #9625

Own Counters with Labels/Ref

#9625
From: Ivo Welch
Date: Fri, 01 Jan 1993 02:57
22 lines
940 bytes
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



	
Technical Details
Message-ID: <1992Dec31.185751.28407@mic.ucla.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!agsm!iwelch

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!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