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 doesn't parse TeX figures unless they contain an image #8165

Closed
jech opened this issue Jul 5, 2022 · 1 comment
Closed

Pandoc doesn't parse TeX figures unless they contain an image #8165

jech opened this issue Jul 5, 2022 · 1 comment
Labels

Comments

@jech
Copy link

jech commented Jul 5, 2022

Consider the following TeX document:

\documentclass{article}
\begin{document}
\begin{figure}[htb]
\begin{center}
Figure body
\end{center}
\caption{Figure caption}\label{fig1}
\end{figure}
See Figure~\ref{fig1} for details.
\end{document}

When converted to HTML, this gives:

<div class="center">
<p>Figure body</p>
</div>
<p>See Figure <a href="#fig1" data-reference-type="ref"
data-reference="fig1">[fig1]</a> for details.</p>

Two issues:

  • the caption has disappeared;
  • the link points at a label that no longer exists.
@jech jech added the bug label Jul 5, 2022
@tarleb
Copy link
Collaborator

tarleb commented Jul 5, 2022

Thanks for the report. This is related to, and a direct consequence of, #3177; closing in favor of that issue. See the end of that thread for current progress.

@tarleb tarleb closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants