I want to make the reference of equations like this:
It seems that I can only remove the “Equation” in reference by:
#set math.equation(numbering: "(R1)", supplement: none)
How can I add the parenthesis?
I want to make the reference of equations like this:
#set math.equation(numbering: "(R1)", supplement: none)
How can I add the parenthesis?
Here it’s the reference you want to customize, so you need a show rule on ref
. I think there’s an example in the documentation that does what you want:
#set heading(numbering: "1.")
#set math.equation(numbering: "(1)")
#show ref: it => {
let eq = math.equation
let el = it.element
if el != none and el.func() == eq {
// Override equation references.
numbering(
el.numbering,
..counter(eq).at(el.location())
)
} else {
// Other references as usual.
it
}
}
= Beginnings <beginning>
In @beginning we prove @pythagoras.
$ a^2 + b^2 = c^2 $ <pythagoras>
Thanks! I will read the documentation later.