-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: Support for Subfigure Package #3577
Comments
Pandoc's internal document model doesn't currently have a dedicated block element for figures. We use the hack of treating images that are by themselves in a paragraph, with a title beginning Going forward it would be good to have a dedicated Figure block element. See #3177. Without better support for figures in the AST, the best we could do with subfigures would be to parse them as a sequence of figures. |
Thanks for the clarification. Currently, a sequence of figures is sufficient for my needs. I assume, that you are already working on this? I'm trying to fix the caption problem. I think it has something to do with the |
Sorry, typo in commit. |
@schrieveslaach What currently happens with the above example when you run the code in your PR? |
@jgm, The outer caption will be used twice: <figure>
<img src="img1.jpg" alt="Subfigure with Subfloat" /><figcaption>Subfigure with Subfloat</figcaption>
</figure>
<figure>
<img src="img2.jpg" alt="Subfigure with Subfloat" /><figcaption>Subfigure with Subfloat</figcaption>
</figure> I would expect at least following output. <figure>
<img src="img1.jpg" alt="Subfigure with Subfloat" /><figcaption>Caption 1</figcaption>
</figure>
<figure>
<img src="img2.jpg" alt="Subfigure with Subfloat" /><figcaption>Caption 2</figcaption>
</figure> Ideally, the third caption should be placed below: <figure>
<img src="img1.jpg" alt="Subfigure with Subfloat" /><figcaption>Caption 1</figcaption>
</figure>
<figure>
<img src="img2.jpg" alt="Subfigure with Subfloat" /><figcaption>Caption 2</figcaption>
</figure>
<figcaption>Subfigure with Subfloat</figcaption> |
I found a solution. |
Many scientific papers include subfigures. For example:
Pandoc should produces two figures nested in a outer figure.
The text was updated successfully, but these errors were encountered: