Elemtag and elemref advice for Scribble documents

I am trying to figure out if I can use, and how to use, elemtag and elemref to create hyperlinks to equations. I would like to do something like:

@elemtag{eqn1 @($$ "1 + 1 = 2")}

and later be able to create a link with,

And we can see in @elemref{eqn1 "equation 1"} that ...

Any advice whether these commands can work for that use and a minimal example?

1 Like

May be something like this


#lang scribble/base

@elemtag{eqn1} $$ "1 + 1 = 2") @(linebreak)

and later be able to create a link with,

And we can see in @elemref["eqn1"]{equation 1}

Works great. Here is my specific use for reference. Thanks.

@elemtag{eqn1}
@$$["\\frac{d^2 s}{dt^2} = -P~s"]{\tag{1}}
@(linebreak)

...

How do we know the formula for acceleration? We were given it in @elemref["eqn1"]{Equation 1} above.