#Can we replace the label text with the count?

1 messages · Page 1 of 1 (latest)

gusty lava
#

Hi,

My use case involves linking to particular element. However, is it possible to display label text in place of the number.

For example,

If there's a element #table()<T:Table_> then rather than rendering shown in Table 1 , how can I render shown in Table T:Table_

Thanks

terse palm
#

?r

#show ref: r => {
  let el = r.element
  if el != none {
    link(el.location())[#el.supplement #str(r.target)]
  }
}

#figure[
  #table(columns: 2, "1", "2", "3", "4")
]<T:Table>

As shown in @T:Table.