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

pandoc could not pick up the figure which pandoc-crossref specifies using "<figure" #434

Closed
jiucenglou opened this issue May 3, 2024 · 1 comment

Comments

@jiucenglou
Copy link

Explain the problem.

I have a folder tree of

user@localhost:/mnt/d/mwe3$ tree .
.
├── Ch3
│   ├── Ch3.md
│   ├── Ch3_tmp.docx
│   ├── Ch3_tmp.md
│   └── img
│       └── mech.jpg
├── pandoc
└── pandoc-crossref

Ch3.md is

# title

## results

![mech scheme.](Ch3/./img/mech.jpg){#fig:mech height=12.09cm }

and I am using the following two runs to get docx

./pandoc  -F pandoc-crossref Ch3/Ch3.md --resource-path=Ch3 -o Ch3/Ch3_tmp.md
./pandoc  Ch3/Ch3_tmp.md -o Ch3/Ch3_tmp.docx

As shown below for the intermediate Ch3_tmp.md, the latest pandoc & pandoc-crossref starts to specify the figure using <figure.
However, now the second run above generates a docx file without the figure in it...
With pandoc 2.19 and the compatible pandoc-crossref, <figure is not yet used and docx file resulted contains the figure.
Could you suggest what I could do to use the latest pandoc to generate a docx file with the figure in it ?
Many thanks !

# title

## results

<figure id="fig:mech">
<img src="Ch3/./img/mech.jpg" style="height:12.09cm"
alt="mech scheme." />
<figcaption>Figure 1: mech scheme.</figcaption>
</figure>

Pandoc version?
latest 3.13

Pandoc-crossref version?
latest 0.3.17

@jiucenglou
Copy link
Author

Closed as suggested by jgm in jgm/pandoc#9720

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

1 participant