You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain the problem.
When converting LaTeX input to HTML output with mathML, \ref{label} commands within the text get converted to in-page hyperlinks. These hyperlinks work correctly for sections and figures, as the corresponding HTML objects are given the marker id="label", but not for equations, which just end up with dead hyperlinks.
Sample input file "label.tex":
\documentclass{article}
\begin{document}
\section{Section} \label{section}
\begin{equation}
\label{eq:sample}
y^2 = a x^3 + bx + c
\end{equation}
This is Equation~\ref{eq:sample}, in Section~\ref{section}, with Figure~\ref{fig:sample}
\begin{figure}
\centering
\begin{tabular}{c|c}
1 & 0 \
0 & 1
\end{tabular}
\label{fig:sample}
\caption{A figure}
\end{figure}
\end{document}
Expected vs Actual Result
The html file which is produced contains three internal hyperlinks; the links to the section and the figure work correctly, but the link to the figure leads to a nonexistent location in the page.
Thanks for the suggestion! I downloaded the filter, and it seems to make the equation linking work, but it also strips out semantically important spaces, such as turning the valid LaTeX $\omega t$ into the nonsensical $\omegat$. I can look for a minimal example and submit a bug report to your repository if that will be helpful.
Explain the problem.
When converting LaTeX input to HTML output with mathML, \ref{label} commands within the text get converted to in-page hyperlinks. These hyperlinks work correctly for sections and figures, as the corresponding HTML objects are given the marker id="label", but not for equations, which just end up with dead hyperlinks.
Sample input file "label.tex":
Pandoc Command
pandoc -f latex -t -html --mathml label.tex -o label.html
Expected vs Actual Result
The html file which is produced contains three internal hyperlinks; the links to the section and the figure work correctly, but the link to the figure leads to a nonexistent location in the page.
Pandoc version?
Pandoc 3.4 (Windows x86_64)
Pandoc 2.5 (Ubuntu on WSL)
The text was updated successfully, but these errors were encountered: