AndyClifton / accessibility

A CTAN-compliant version of the LaTeX `accessibility` package
39 stars 6 forks source link

Using captions on math figures (LaTeX) #50

Closed ErroneousBosch closed 2 years ago

ErroneousBosch commented 2 years ago

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.

ErroneousBosch commented 2 years ago

I... posted this in teh wrong github LOL sorry