// Test references. --- ref-basic --- #set heading(numbering: "1.") = Introduction See @setup. == Setup As seen in @intro, we proceed. --- ref-label-missing --- // Error: 1-5 label `` does not exist in the document @foo --- ref-label-duplicate --- = First = Second // Error: 1-5 label `` occurs multiple times in the document @foo --- ref-supplements --- #set heading(numbering: "1.", supplement: [Chapter]) #set math.equation(numbering: "(1)", supplement: [Eq.]) = Intro #figure( image("/assets/images/cylinder.svg", height: 1cm), caption: [A cylinder.], supplement: "Fig", ) #figure( image("/assets/images/tiger.jpg", height: 1cm), caption: [A tiger.], supplement: "Tig", ) $ A = 1 $ #set math.equation(supplement: none) $ A = 1 $ @fig1, @fig2, @eq1, (@eq2) #set ref(supplement: none) @fig1, @fig2, @eq1, @eq2 --- ref-ambiguous --- // Test ambiguous reference. = Introduction // Error: 1-7 label occurs in the document and its bibliography @arrgh #bibliography("/assets/bib/works.bib") --- issue-4536-non-whitespace-before-ref --- // Test reference with non-whitespace before it. #figure[] <1> #test([(#ref(<1>))], [(@1)])