I would like to cross-reference a figure (PDF/PNG) with a custom link text in a report compiled with bookdown as LaTex/PDF output.
Figures can be easily referenced as numbers (i.e. see Figure 1) with see Figure \@ref(fig:FOO-Figure)
, assuming the chunk label was "FOO-Figure".
The syntax for custom link texts recommended in the bookdown book unfortunately only works for links and headlines for me, and not for included (external) figures:
Neither [custom link text](#fig:FOO-Figure)
nor [custom link text](#FOO-Figure)
work in LaTex/PDF output.
Interestingly, the former works if the output format is HTML and references to file:///Users/.../book/my-headline.html#fig:FOO-Figure
as expected.