When I customize the numbering with the following codes, although the caption is fine, the reference is not correct.
#import "@preview/subpar:0.1.1"
#show figure.caption: it => (
context box(
inset: (left: 1em, right: 1em),
align(left)[
*#it.supplement~#it.counter.display()#it.separator*#it.body
],
)
)
#set figure(numbering: n => [R#n])
#subpar.grid(
figure(
box(stroke: 1pt, inset: 5pt)[This is a figure],
caption: [This is a caption]
), <fig11>,
figure(
box(stroke: 1pt, inset: 5pt)[This is a figure],
caption: [This is a caption]
),<fig12>,
columns: (1fr, 1fr),
caption: [These are two subfigures.],
placement: auto,
// label: <fig12>,
)
#figure(
box(stroke: 1pt, inset: 5pt)[This is a figure],
caption: [This is a caption],
) <fig2>
see @fig11, @fig12, @fig2
The “R” is missed when I use the references of subplots: