This question is part of the How to get the entire title when referencing headings?, which was already answered.
Consider this:
#set heading(numbering: "1.")
#let refName(
label
) = {
ref(label, supplement: it => {
if it != none and it.func() == heading {
link(it.location(), it.body)
}
}
)
}
= Introduction
== Introduction Title <intro>
This is the introduction.
= Background
== Background
This is the background. And intro is #refName(<intro>).
This gives me an output as
But the referenced title also shows the number, is it possible to just get the title and not it’s number?