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

Using captions on math figures (LaTeX) #8145

Open
ErroneousBosch opened this issue Jun 23, 2022 · 2 comments
Open

Using captions on math figures (LaTeX) #8145

ErroneousBosch opened this issue Jun 23, 2022 · 2 comments

Comments

@ErroneousBosch
Copy link

Describe the bug
Using the Captions package in LaTeX, captions may be added to math figures using the folloing kinds of syntax:

\[ F9X=x\int_{t=0}^\infty g(x) dx \]
\captionof{figure}{Equation one}
\begin{figure}
  \[ F9X=x\int_{t=0}^\infty g(x) dx \]
  \caption{Equation three}
\end{figure}

PanDoc discards this information completely:

Screenshot from 2022-06-22 14-26-28

Which in other utilities is rendered below the figure in a PDF (source: OverLeaf):

Screenshot from 2022-06-22 14-24-55

Using a caption here is very useful in PDF, and could be used as alt text for MarkDown and HTML instead of just the equation in LaTeX as is seen now.

  • PanDoc 2.5 for Linux
@mb21
Copy link
Collaborator

mb21 commented Jun 24, 2022

This might have to wait until we have native figure elements in pandoc's AST: #3177

btw. if you're going from LaTeX to PDF, no need to use pandoc, just use pdflatex directly...

@ErroneousBosch
Copy link
Author

I'm actually looking at LaTeX -> ePub/HTML, but Kindle support for MathML is terrible. In any case, the loss of this caption information is not great.

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

No branches or pull requests

3 participants