Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image caption issue for .doxc document #36

Open
Lbramante opened this issue Mar 25, 2021 · 1 comment
Open

Image caption issue for .doxc document #36

Lbramante opened this issue Mar 25, 2021 · 1 comment

Comments

@Lbramante
Copy link

With reference to a .docx document generated with the execution of the command make html docx the image caption is not displayed under the image but it is displayed after the last text available before the image call.
For example, in the code reported below, the caption Image caption is reported after General Test. resulting in General Test.Image caption.

The same issue has been detected, during the generation of the .docx document, with the image reported in the example: https://github.com/mherkazandjian/docxsphinx/blob/master/examples/sample_1/source/index.rst

Also the numbered reference :numref:`` is not working despite the usage of numfig=True in the conf.py file

Could you please help me to solve this issue?

Kind regards

Code:

`General Test.

.. _First-figure:

.. figure:: _static/Life_cycle_of_the_product.png

Image caption

An example is shown in :ref:First-figure.

  • plain reference :ref:First-figure

  • named reference :ref:XXXXX <First-figure>

  • numbered reference :numref:First-figure
    `

@hugobuddel
Copy link
Collaborator

Thanks for the report. docxsphinx uses python-docx, and it seems that python-docx does not support image captions.

So this would probably take quite some work to add.

See https://python-docx.readthedocs.io/en/latest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants