Captions and figure references by label are lost when converting .odt to .docx with Open Office. Captions get hidden under the image and truncated by a box
#+ATTR_ODT: :width 10
#+CAPTION: Caption text get hidden by image
#+LABEL: fig:label_image [[file:./Carl_Spitzweg.jpg]]
See in figure [[fig:label_image]].
I don't have access to Microsoft Office
. And I am unable to confirm or reject what the original poster says.
I can confirm that I did experience problems when I imported the ODT file created by org-9.5.3
in to Google Docs
. The image doesn't appear and there appears some stray text in figure number. See screenshot below for details.
What worked for me was to use the The enhanced ODT exporter together with the #+ODT_APP: docx
keyword. You can install the enhanced ODT exporter using instructions at Getting Started with ODT export (OpenDocument Text Exporter for Emacs’ Org Mode).
It looks like the #+ODT_APP: docx
is a way to generate a Microsoft Word
-compatible or Google Docs
-compatible ODT output.
Down below, first I show the working org
snippet and how it renders when imported in to Google Docs, and next I show the org
snippets that do not render well when imported in to Google Docs
.
With Enhanced ODT exporter ox-odt-9.5.3.436
and with #+ODT_APP: docx
#+title: With Enhanced ODT exporter and ODT_APP keyword
#+ODT_APP: docx
This file is exported with /enhanced ~ox-odt~/:
https://github.com/kjambunathan/org-mode-ox-odt
and with
#+begin_src org
,#+ODT_APP: docx
#+end_src
#+ATTR_ODT: :width 10
#+CAPTION: Caption text get hidden by image
#+LABEL: fig:label_image
[[file:./org-mode-unicorn.png]]
See in figure [[fig:label_image]].

With Enhanced ODT exporter ox-odt-9.5.3.436
#+title: With Enhanced ODT exporter
This file is exported with /enhanced ~ox-odt~/:
https://github.com/kjambunathan/org-mode-ox-odt
#+ATTR_ODT: :width 10
#+CAPTION: Caption text get hidden by image
#+LABEL: fig:label_image
[[file:./org-mode-unicorn.png]]
See in figure [[fig:label_image]].

On Vanilla Emacs Org-9.5.3
#+title: on-vanilla-emacs
This file is exported with ~ox-odt~ that comes with ~org-9.5.3~.
#+ATTR_ODT: :width 10
#+CAPTION: Caption text get hidden by image
#+LABEL: fig:label_image
[[file:./org-mode-unicorn.png]]
See in figure [[fig:label_image]].
