-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
LaTeX figure captions and labels lost as RST output #8930
Labels
Comments
This appears to have been working better under pandoc 2.14.1 and 2.19.2, here run under macOS:
It was noted in the comments on #8743 that the loss of the |
Thank you - I'll retest as soon as I can easily install this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explain the problem.
I am converting LaTeX to reStructuredText (RST) using pandoc, but am having trouble with figures (images with captions and usually citable labels).
Sample from larger LaTeX document,
Save this as
snippet.tex
and then convert to markdown (as an example):Notice the figure labels and caption text is preserved. But not for RST output:
Notice the figures are missing their captions and name (so the references fail).
I was expecting the figure caption to be used as the caption, with the label used for
:name:
as per:https://docutils.sourceforge.io/docs/ref/rst/directives.html#figure
https://docutils.sourceforge.io/docs/ref/rst/directives.html#common-options
Note #8743 covers the
:alt:
field, fixed in pandoc 3.1.4.Issue #8871 is somewhat related (mixing the alt-text and caption)
Pandoc version?
This is using the latest pandoc available via conda for Linux (so a revision behind the current release 3.1.4), run under Ubuntu on WSL under Windows 11:
The text was updated successfully, but these errors were encountered: