I want to be able to reference a captionless figure (e.g. \ref{figure1}). Based on this answer, it appears that labeling a figure (e.g. \label{figure1}) actually labels the caption. How do I reference my captionless figure? I tried adding an empty caption (e.g. \caption{}) but this create an undesired Figure 1.
Asked
Active
Viewed 24 times
0
Rylan Schaeffer
- 113
\labelmechanism latches on to the most recently incremented counter variable. It so happens that\captiondirectives do increment a counter variable (calledfigureortable, resp., depending on whether the\captiondirective is encountered [pun intended] in afigureortableenvironment). But that's not the same as saying that the caption is labelled. Please clarify what you intend a cross-reference to a captionless figure to look like/consist of. – Mico Nov 09 '20 at 06:06