Please consider the very simple latex file below
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{equation}
\label{eq:somelabel}
e=mc^2
\end{equation}
The equation \ref{eq:somelabel} is a typical formula.
\end{document}
which is saved as test_latex.tex. When I try to convert this to a word document with
pandoc test_latex.tex -o -s test_word.docx
in the test_word.docx file the reference to the equation is not correct (instead of a number I see the label).
How can I fix this? Many thanks!
make4ht -f odt test_latexcompiles your file correctly. It creates ODT, not DOCX, but Word can open it too. – michal.h21 Jan 26 '21 at 21:28pandoc-eqnoswill need markdown input. Givemake4hta try! – DG' Jan 26 '21 at 22:07pandoc-crossrefand other filters, but you need to write in markdown to make the most of it – DG' Jan 27 '21 at 08:24