# Caption and figure reference to .docx (org-export)

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. Numeric references are replaced by “Illustration”.

Is there a way to export to .docx from org-mode and preserve these feature?

MWE:

#+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]].

Yes there is. The best way to achieve this is to export first to latex, and then use pandoc to convert the latex to Word. There is, luckily, a library that does this already: [ox-word][1]. You'll have to manually install it, since it's not in MELPA. It's part of an Emacs distribution called scimax.

(use-package ox-word