Skip to content

Docx --> LaTeX: --extract-media omits certain figures #11053

@jesperolsson-se

Description

@jesperolsson-se

Explain the problem.

Example.docx

pandoc Example.docx --extract-media=. --standalone -o Example.tex

The LaTeX file contains no reference to the figure. The media folder is not created. If other figures would generate a media folder, the submitted figure is still missing.

I expect the figure to be extracted.

Image

When analyzing the docx file, we can find the image in the word/media folder. It's also listed in word/_rels/document.xml.rels (rId11) and referenced in word/document.xml.

The figure's XML structure (containing <w:pict> and <v:shape> tags) is different compared to newly inserted figures.

Pandoc version?

Windows 11 Pro
Pandoc 3.7.0.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions