lierdakil/pandoc-crossref

LaTeX to DOCX, \eqref{label} to be Eq.[label] not Eq.(number)? How to DO!

pbpf opened this issue · 1 comments

pbpf commented

I'm no expert, but often need to convert latex to docx, where formula references can't be converted to the correct number, although -M autoEqnLabels can generate numbers for the formula itself.

\documentclass{article}
 

\begin{document}

This is a test for Eq.~\eqref{eq:test}
\begin{equation}
    x=1\label{eq:test}
\end{equation}

\end{document}

Let us do

pandoc a.tex    -M autoEqnLabels    --filter pandoc-crossref -o output.docx

Then, you got!
image

Latex is not officially supported as an input format, but see #250.