Por favor considere el siguiente .org
archivo MVE, que espero que se explique por sí mismo:
#+OPTIONS: toc:nil
Figure [[captions-work-for-src-blocks]] shows that captions are correctly exported
for SRC blocks. The second figure, in an EXAMPLE block, does not receive an
exported caption. Furthermore, cross references to figure
[[captions-dont-work-for-example-blocks]] incorrectly resolve to figure
[[captions-work-for-src-blocks]].
-----
#+NAME: captions-work-for-src-blocks
#+CAPTION: Captions work for SRC blocks
#+BEGIN_SRC
foo(bar) == baz(qux);
#+END_SRC
-----
-----
#+NAME: captions-dont-work-for-example-blocks
#+CAPTION: Captions don't work for EXAMPLE blocks
#+BEGIN_EXAMPLE
foo(bar) == baz(qux);
#+END_EXAMPLE
-----
Encendido org-latex-export-to-pdf
, produce el siguiente resultado:
Estoy usando las siguientes versiones del software:
: Emacs version: GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))
: of 2016-09-17
: org version: 9.0.7
Miré la documentación oficial del modo org, pero no pude encontrar información relacionada con este problema.