Skip to Content.
Sympa Menu

texmacs-users - labeling/referencing user defined variables

Subject: mailing-list for TeXmacs Users

List archive

labeling/referencing user defined variables


Chronological Thread 
  • From: Vasily Golyshev <address@hidden>
  • To: address@hidden
  • Subject: labeling/referencing user defined variables
  • Date: Thu, 5 Feb 2004 17:09:57 +0300 (MSK)



In Latex, labels seem to label the last changed
counter, so when I write

\refstepcounter{mycounter}

\mysection{\themycounter . Myheading.} \label{here}
.....


\ref{here}

evrything works just fine, and the ref refers to the value of mycounter
that numbered my section. This is a flexible way of creating one's own
layout for someone who does not want to modify the standard
section/subsection definitions.

Now, in Texmacs, the literal translation of this trick might be something
like

assign mycounter + value mycounter 1

(I omit bracketing)

and then

My heading. assign thislabel value mycounter
......
text
......
as we saw in section value|thislabel
.....

which would work fine only if the 'reference' comes after the
'label', not before.

What would you do instead? Or, is there a way to label/ref
user-introduced values?


Best, Vasily.



Archive powered by MHonArc 2.6.19.

Top of Page