I want to reference multiple figures at once so that it displays as “(Figures 1 and 2)” or something along the lines. Is there a way to remove the automated prefix applied when I reference a figure?
1 Like
You can do this manually by setting the supplement, @fig1 @fig2[and]
You can also create a semi-automated solution:
#let multiref(..tags, default: ",", last: " and") = {
tags = tags.pos()
ref(tags.first())
for key in tags.slice(1, -1) {
ref(key, supplement: default)
}
if tags.len() >= 2 {
ref(tags.last(), supplement: default + last)
}
}
#multiref(<fig1>, <fig2>)