I have a figure declared like this:
#+CAPTION: Google NGrams Viewer Search
#+NAME: fig:ngrams
[[file:ngrams.png]]
And I'd like to reference it, so that I can write, e.g. Please refer to Figure [[some magic thing here]]
and have it output Please refer to Figure 1
. I'm using pandoc to convert from .org to .pdf.
I've been trying writing [[fig:ngrams]]
, as in Please refer to Figure [[fig:ngrams]]
, but neither Pandoc nor pandoc-citeproc seem to understand that kind of link, and they transform it to Please refer to Figure fig:ngrams
.
Figure [[fig:ngrams]]
. This works withox.el
, e.g.ox-latex.el
. If you must usepandoc
instead ofox-latex.el
for your PDFs needs, perhaps the right approach would be to file a bug to the Pandoc org-parser maintainers to let them know that it does not support the links syntax fully.