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 3.1.7 adds 2 labels to LaTeX floats #9045

Closed
jpcirrus opened this issue Sep 1, 2023 · 0 comments
Closed

pandoc 3.1.7 adds 2 labels to LaTeX floats #9045

jpcirrus opened this issue Sep 1, 2023 · 0 comments
Labels

Comments

@jpcirrus
Copy link
Contributor

jpcirrus commented Sep 1, 2023

The fix for #9022 now adds 2 labels to LaTeX floats i.e.

\begin{figure}
\phantomsection\label{fig:figure-01}
\centering
\includegraphics{chart-01}
\caption{The caption.}\label{fig:figure-01}
\end{figure}

which causes warnings in the log (e.g. LaTeX Warning: Label 'fig:figure-01' multiply defined.). And, when using the pandoc-crossref filter with its codelisting equation floats, compilation terminates with an error raised by the amsmath package for the same issue.

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

1 participant